summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/less/themes/theme_default.less
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-05-16 17:09:17 +0200
committerOlivier Dony <odo@openerp.com>2017-05-16 17:09:45 +0200
commit5afe894f440eff3b58134d14fa7c9b43b19fe88b (patch)
tree2b89e105c3389187dc9f1707e88a0acdc531a1a1 /addons/mass_mailing/static/src/less/themes/theme_default.less
parent8dac9cfc93cb4196007bd08dd8b1304cd522e615 (diff)
parent878fbc75ff9ebade92f43748500e64350367a824 (diff)
[MERGE] Forward-port saas-15 up to 878fbc75ff9ebade92f43748500e64350367a824
Diffstat (limited to 'addons/mass_mailing/static/src/less/themes/theme_default.less')
-rw-r--r--addons/mass_mailing/static/src/less/themes/theme_default.less39
1 files changed, 28 insertions, 11 deletions
diff --git a/addons/mass_mailing/static/src/less/themes/theme_default.less b/addons/mass_mailing/static/src/less/themes/theme_default.less
index 98f86421000..74f71191db2 100644
--- a/addons/mass_mailing/static/src/less/themes/theme_default.less
+++ b/addons/mass_mailing/static/src/less/themes/theme_default.less
@@ -49,27 +49,36 @@
// ===== Layout =====
.o_layout {
- font-family: @o_mm_def_font;
- color: lighten(@o_mm_def_text_color, 20%);
overflow: hidden;
- width: 100%;
+ width: 94%;
min-height: 100%;
background-color: @o_mm_def_color_alpha;
- padding: 24px 0;
+ padding: 24px 3%;
+
+ // Forces on <p/> elements as several mail clients does not correctly
+ // inherit font properties
+ &, p {
+ font-family: @o_mm_def_font;
+ color: lighten(@o_mm_def_text_color, 20%);
+ }
> .o_mail_wrapper {
width: 100%;
- max-width: @o_mm_def_body_width;
- margin: auto;
- border: 1px solid darken(@o_mm_def_color_alpha, 2%);
- background-color: @o_mm_def_color_beta;
+ border-collapse: separate; // Allow the first and last td to have the
+ // same width
+
+ .o_mail_wrapper_td {
+ width: @o_mm_def_body_width;
+ border: 1px solid darken(@o_mm_def_color_alpha, 2%);
+ background-color: @o_mm_def_color_beta;
+ }
}
}
// ===== Snippets (general) =====
.o_mail_snippet_general {
width: 100%;
- max-width: @o_mm_def_body_width;
+ max-width: @o_mm_def_body_width; // should not be necessary thanks to mail wrapper
margin: 0 auto;
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
@@ -157,7 +166,11 @@
}
.o_mail_block_two_cols, .o_mail_block_three_cols {
- font-size: small;
+ // Forces on <p/> elements as several mail clients does not correctly
+ // inherit font properties
+ &, p {
+ font-size: small;
+ }
.o_mail_col_container {
padding: 10px 20px;
@@ -169,7 +182,11 @@
}
.o_mail_block_image_text, .o_mail_block_text_image {
- font-size: small;
+ // Forces on <p/> elements as several mail clients does not correctly
+ // inherit font properties
+ &, p {
+ font-size: small;
+ }
}
.o_mail_block_event {