diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-10-09 09:01:10 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2020-10-22 06:45:55 +0000 |
| commit | a8c4ca8a942d94557db5b95f42344fee71faf6e2 (patch) | |
| tree | b060f627469f3f828587ee91cb83534ba8404067 | |
| parent | cf34f10a54390d2ecd86d47de90c221d79ed5873 (diff) | |
[FIX] website, portal: fix language selector inline
This commit align vertically the copyright text and the inline
language switcher items. This commit also add a padding on
list-inline-item in the language selector. Because before this commit,
there was no space between lines if the list was to be displayed on
multiple lines.
Part of #59581
task-2312878
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
| -rw-r--r-- | addons/portal/static/src/scss/portal.scss | 4 | ||||
| -rw-r--r-- | addons/website/static/src/scss/website.scss | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 9a3d4560e6e..c18a0e1a0b6 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -544,7 +544,9 @@ form label { // Copyright .o_footer_copyright { - + .o_footer_copyright_name { + vertical-align: middle; + } .js_language_selector { display: inline-block; } diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index ab35a17e4fd..d5fdaafa24b 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -1230,15 +1230,23 @@ header { } // Language selector -.js_language_selector .dropdown-menu { - min-width: 0; +.js_language_selector { + .dropdown-menu { + min-width: 0; + } + a.list-inline-item { + padding: 3px 0; + + > * { + vertical-align: middle; + } + } } .o_lang_flag { width: 1.5em; height: 1.5em; margin-right: 0.2em; border-radius: $rounded-pill; - vertical-align: top; } span.list-inline-item.o_add_language:last-child { display: none !important; // Hide the separator if it is the last list item |
