summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/less/themes/theme_default.less
AgeCommit message (Collapse)Author
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2018-02-15[MERGE] forward port branch saas-11.1 up to a277b585072Christophe Simonis
2018-02-13[FIX] web_editor, mass_mailing: better transcode alignment inheritanceqsm-odoo
Browsers' default alignement of <td/> is 'inherit'. Some mail clients do not set this value properly though and even if it is explicitely set, they do not compute the final value well. As a fix, this commit forces the 'inherit' value on <td/> and computes the real alignment for 'inherit' values when transcoding. opw-813688
2018-01-16[IMP] mass_mailing: make basic theme behave like gmailHiral Bhavsar
- Not any text by default - No padding in sent layout (add padding to the editor for readability) - Apply font size like gmail - Line spacing should behave like in gmail, so no margin on <p> tags - Ordered and unordered lists should have proper margin and bullets should have black color
2018-01-12[MERGE] forward port branch saas-11.1 up to 56974322f8cChristophe Simonis
2018-01-12[FIX] mass_mailing: width of main layout in editorqsm-odoo
Commit https://github.com/odoo/odoo/commit/bee3253b44850c0d563ee8973556ece33376781b changed the main layout width computation so that it is compatible with mail clients but broke the preview in the editor.
2018-01-08[IMP] web_editor, *: change height/margin system to padding systemqsm-odoo
* web, website, mass_mailing Before this commit, the editor allowed defining the margin of some elements and the height of some elements. There were three main problems with this system: 1) When an user dragged the arrow, he often expected to change the size of the element while he was in fact changing the margin 2) When changing the margin, you increase the space between two elements but with a white space (while most users want a space with the same color of the block they are resizing = padding) 3) When changing the height, the user was able to hide snippet parts and the height was not consistent accross screen sizes Now, the only thing you can edit is padding. There is only one arrow for each direction, which allows increasing spacing and consistent dimension at the same time. The only feature that is lost with this change is the ability to control vertical alignement of colored columns. This is not a problem as colored columns are rare in our current snippets and there still have the possibility to add margin classes by hand if necessary (there are also plans to control vertical alignement another way). Note: margin classes are kept for compatibility.
2017-05-17[FIX] mass_mailing, web_editor: increase mail clients compatibilityqsm-odoo
Following bee3253b44850c0d563ee8973556ece33376781b, this commit is made to increase the mail clients compatibility for the mails that are created with the odoo mail editor. Three new problems are handled: - Font family of titles had to be forced too as outlook was not inheriting parent font family on those either. - Default text font-size had to be forced as was not detected in transcoding correctly. - text-decoration rule was decomposed in text-decoration(-line, -style and -color) in transcoding. Outlook is ignoring those three rules for some reason. As the decomposition is useless, the transcoder now forces the recomposition of these three rules.
2017-05-15[FIX] mass_mailing: increase email clients compatibilityqsm-odoo
Creating a mail template which is complex and compatible with all mail clients is a very difficult task as each mail client supports a different subset of basic CSS rules. This commit fixes 3 problems which were occuring in outlook and/or thunderbird but not in gmail: - Main layout horizontal overflow -> change 24px horizontal padding of main layout to 3% and set the width to 94% (so that the sum is 100%) - Fixed 600px content was full width instead -> Change the .o_mail_wrapper to be a <table> element instead of a <div> element. The table is full-width and contains one row of 3 cells: an empty left one, a fixed 600px-width center one and an empty right one. This allows to have the same layout as before but without using the unsupported max-width css rule. - Texts were not using the right color and font-size -> <p> elements were not properly inheriting the color and font-size properties, so force the style on <p> elements. opw-743156
2016-11-07[FIX] mass_mailing: vertical alignments & multiline textstefanorigano
* vertical alignment: Keep ‘vertical-align: top’ as default, but define ‘middle’ exceptions for header and footer snippets. * ‘comparison_table’: multiline text. Remove inline style for inner <p/> elements and define default padding for parent <td/> instead. This will allow to create multiple line of text keeping a coherent margin between each <td/>. A css set of rules triggering any kind of elements allow to use multiline text for any kind of tag (p, h1, etc..) * Footer snippets padding, minor
2016-09-23[FIX] mass_mailing: force vertical align top on td/th elementqsm-odoo
2016-09-23[FIX] mass_mailing: fix layout issue of o_mail_header_social linksstefanorigano
Fix an issue causing a wrong icon alignment on save.
2016-09-23[FIX] mass_mailing: review colors in snippetsstefanorigano
* Trig default ".btn.btn-link" rather than custom ".o_mail_link" (not used anymore) * Define variations when a button is inside bg-beta or bg-delta
2016-09-20[IMP] mass_mailing: review theme style location and conventionqsm-odoo
* Use the theme class selector as root for the less file -> Allow to style the editor as applied to the body -> Split in editor/color/layout/snippets * Create an assets to contain all mm themes so that the compilation is made by the odoo system, and allow minification and variable sharing between themes -> Remove css files * Reformat the LESS files content