summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-03-14 16:21:14 +0100
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commit1c1c0897e8eca607c7f1b96b68a06c026c543e6a (patch)
tree1f667224be28146cbcbe602892094046052ea93b /addons/mail/static/src/scss
parent220e49f9d66f2e2ea875143c2da0c20919ec0b3e (diff)
[REF] *: BS4, adapt dropdowns and carets
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
Diffstat (limited to 'addons/mail/static/src/scss')
-rw-r--r--addons/mail/static/src/scss/abstract_thread_window.scss2
-rw-r--r--addons/mail/static/src/scss/composer.scss2
-rw-r--r--addons/mail/static/src/scss/discuss.scss2
-rw-r--r--addons/mail/static/src/scss/systray.scss2
4 files changed, 4 insertions, 4 deletions
diff --git a/addons/mail/static/src/scss/abstract_thread_window.scss b/addons/mail/static/src/scss/abstract_thread_window.scss
index 21fc4ebd7ad..39de4fc9c51 100644
--- a/addons/mail/static/src/scss/abstract_thread_window.scss
+++ b/addons/mail/static/src/scss/abstract_thread_window.scss
@@ -119,7 +119,7 @@ $o-mail-thread-window-zindex: $zindex-modal + 1 !default;
font-size: smaller;
}
}
- &.open .o_thread_window_dropdown_toggler .o_total_unread_counter, .o_thread_window_expand {
+ &.show .o_thread_window_dropdown_toggler .o_total_unread_counter, .o_thread_window_expand {
display: none;
}
diff --git a/addons/mail/static/src/scss/composer.scss b/addons/mail/static/src/scss/composer.scss
index 884ca88134e..1eb2de031d5 100644
--- a/addons/mail/static/src/scss/composer.scss
+++ b/addons/mail/static/src/scss/composer.scss
@@ -45,7 +45,7 @@
width: 100%;
resize: none;
}
- .o_composer_mention_dropdown .o_mention_proposition > a {
+ .o_composer_mention_dropdown .o_mention_proposition {
@include o-text-overflow;
width: 100%;
padding: 3px 15px;
diff --git a/addons/mail/static/src/scss/discuss.scss b/addons/mail/static/src/scss/discuss.scss
index 5995cab52e2..2c07068d9a9 100644
--- a/addons/mail/static/src/scss/discuss.scss
+++ b/addons/mail/static/src/scss/discuss.scss
@@ -401,7 +401,7 @@
@include media-breakpoint-down(sm) {
- .o_main_navbar > ul.o_menu_systray > li.open .dropdown-menu {
+ .o_main_navbar > ul.o_menu_systray > li .dropdown-menu.show {
border: none;
}
diff --git a/addons/mail/static/src/scss/systray.scss b/addons/mail/static/src/scss/systray.scss
index 4d774b2824a..d52add73ec4 100644
--- a/addons/mail/static/src/scss/systray.scss
+++ b/addons/mail/static/src/scss/systray.scss
@@ -15,7 +15,7 @@
display: none;
}
}
- &.open .o_mail_systray_dropdown {
+ &.show .o_mail_systray_dropdown {
display: flex;
flex-flow: column nowrap;
}