diff options
| author | stefanorigano (SRI) <sri@odoo.com> | 2020-09-10 14:18:56 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-09-22 17:20:03 +0000 |
| commit | e30f555770f22f91743c33b74615cea8ecdf983c (patch) | |
| tree | af8a3f3c730afff379825861b682fa6efb787b13 /addons/web_editor/static/src | |
| parent | 38ce0c20c6a82b75d77406419b25d90259b50293 (diff) | |
[FIX] web_editor: color-combination preview items alignment
task-2335267
part-of: #57942
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 13 | ||||
| -rw-r--r-- | addons/web_editor/static/src/xml/snippets.xml | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 26a86d89061..8634d732759 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -1259,24 +1259,25 @@ body.editor_enable.editor_has_snippets { .o_we_cc_preview_wrapper { @extend %o-preview-alpha-background; font-family: sans-serif !important; - font-size: 16px !important; - padding: $o-we-sidebar-content-field-spacing; + font-size: 15px !important; + padding: $o-we-sidebar-content-field-spacing $o-we-sidebar-content-field-spacing $o-we-sidebar-content-field-spacing*.8; } .o_we_cc_preview_wrapper > * { - margin-top: 0 !important; margin-bottom: 0 !important; - line-height: .8 !important; + line-height: 1 !important; } .o_we_color_combination_btn_text { color: inherit !important; font-family: inherit !important; font-size: 0.8em !important; + margin-top: .5em!important; } .o_we_color_combination_btn_title { - font-size: 1em !important; + margin-top: 0 !important; + font-size: 1.3em !important; } .o_we_color_combination_btn_btn { - padding: 3px 3px 2px !important; + padding: 0.2em 3px 0.3em !important; border-radius: 2px !important; font-size: 0.8em !important; } diff --git a/addons/web_editor/static/src/xml/snippets.xml b/addons/web_editor/static/src/xml/snippets.xml index aef96c3b981..0d833333850 100644 --- a/addons/web_editor/static/src/xml/snippets.xml +++ b/addons/web_editor/static/src/xml/snippets.xml @@ -75,7 +75,7 @@ </button> </t> <t t-name="web_editor.color.combination.preview"> - <div class="o_we_cc_preview_wrapper d-flex justify-content-between align-items-center"> + <div class="o_we_cc_preview_wrapper d-flex justify-content-between"> <h1 class="o_we_color_combination_btn_title">Title</h1> <p class="o_we_color_combination_btn_text flex-grow-1">Text</p> <span class="o_we_color_combination_btn_btn btn btn-sm btn-primary o_btn_preview mr-1"><small>Button</small></span> |
