diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/dropdown_menu.scss | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/dropdown_menu.scss')
| -rw-r--r-- | addons/web/static/src/scss/dropdown_menu.scss | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/dropdown_menu.scss b/addons/web/static/src/scss/dropdown_menu.scss new file mode 100644 index 00000000..d2da44a3 --- /dev/null +++ b/addons/web/static/src/scss/dropdown_menu.scss @@ -0,0 +1,46 @@ +.o_dropdown_menu { + > .dropdown-divider:first-child { + display: none; + } + + min-width: 150px; + max-height: calc(100vh - 140px); // FIXME + overflow: auto; + + .o_menu_item { + position: relative; + + > .dropdown-item { + color: $o-main-text-color; + + &:hover { + color: darken($o-main-text-color, 10%); + } + } + } +} + +.dropdown-item { + position: relative; + color: $o-main-text-color; + + &:hover { + color: darken($o-main-text-color, 10%); + } + + &.selected { // TODO why not using standard BS4 "active" class ? + color: darken($o-main-text-color, 10%); + font-weight: bold; + + &:before { + font-family: FontAwesome; + position: absolute; + left: 4px; + content: "\f00c"; + } + } + .o_trash_button { + padding-left: 8px; + @include o-position-absolute($right: $dropdown-item-padding-x * 0.5); + } +}
\ No newline at end of file |
