summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/dropdown_extra.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/dropdown_extra.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/dropdown_extra.scss')
-rw-r--r--addons/web/static/src/scss/dropdown_extra.scss60
1 files changed, 60 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/dropdown_extra.scss b/addons/web/static/src/scss/dropdown_extra.scss
new file mode 100644
index 00000000..e4f68ec0
--- /dev/null
+++ b/addons/web/static/src/scss/dropdown_extra.scss
@@ -0,0 +1,60 @@
+.ui-autocomplete .ui-menu-item {
+ > a.ui-state-active {
+ background-color: $o-brand-odoo;
+ color: white;
+ }
+ &.o_m2o_dropdown_option > a {
+ color: $o-brand-odoo;
+ &.ui-state-active {
+ color: white;
+ }
+ }
+ &.o_m2o_start_typing > a.ui-state-active {
+ color: $dropdown-link-color;
+ }
+}
+
+.oe_dropdown, .oe_dropdown_toggle {
+ position: relative;
+ cursor: pointer;
+}
+.oe_dropdown_toggle {
+ color: #2B2B2B;
+ font-weight: normal;
+}
+.oe_dropdown_menu {
+ display: none;
+ position: absolute;
+ z-index: 3;
+ margin: 0;
+ border: 1px solid #afafb6;
+ background: white;
+ padding: 4px 0;
+ min-width: 140px;
+ text-align: left;
+ box-shadow: 0 1px 4px rgba(0,0,0,0.3);
+ &.oe_opened {
+ display: block;
+ }
+ > li {
+ list-style-type: none;
+ float: none;
+ display: block;
+ position: relative;
+ margin: 0;
+ padding: 2px 8px;
+ &:hover {
+ background-image: linear-gradient(to bottom, #f0f0fa, #eeeef6);
+ box-shadow: none;
+ }
+ > a {
+ white-space: nowrap;
+ display: block;
+ color: #4c4c4c;
+ text-decoration: none;
+ &:hover {
+ text-decoration: none;
+ }
+ }
+ }
+}