diff --git a/vista_backend_theme/static/src/scss/theme.scss b/vista_backend_theme/static/src/scss/theme.scss index 22923a40..a7555c7f 100644 --- a/vista_backend_theme/static/src/scss/theme.scss +++ b/vista_backend_theme/static/src/scss/theme.scss @@ -1029,4 +1029,61 @@ div.dropdown-menu.bootstrap-datetimepicker-widget { .o_searchview .o_searchview_icon { z-index: 9999 !important; margin-top: 12px; +} + + +// 自定义的下拉 +.o_menu_sections_fix{ + display: flex!important; + align-items: center; +} +.custom_dropdown { + position: relative; + .title { + color: #1f2631; + padding: 0 12px; + line-height: var(--o-navbar-height); + margin: 0; + cursor: pointer; + display: block; + } + .custom_dropdown_fixed { + position: absolute; + top: var(--o-navbar-height); + z-index: 1000; + padding: 0.5rem 0; + margin: 0; + font-size: 1.08333333rem; + color: #495057; + text-align: left; + background-color: #FFFFFF; + box-shadow: 0 1rem 1.1rem rgba(0, 0, 0, 0.1); + border-radius: 0.25rem; + display: none; + a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: 400; + color: #495057; + text-align: inherit; + white-space: nowrap; + background-color: transparent; + border: 0; + &:hover { + color: #00005A !important; + background-color: #ebf0fd; + transition: all 0.3s linear; + } + } + } + &:hover { + .title { + background-color: rgba(0, 0, 0, 0.08); + transition: all .3s; + } + .custom_dropdown_fixed{ + display: block; + } + } } \ No newline at end of file diff --git a/vista_backend_theme/static/src/xml/top_bar.xml b/vista_backend_theme/static/src/xml/top_bar.xml index ba29b398..05b399b6 100644 --- a/vista_backend_theme/static/src/xml/top_bar.xml +++ b/vista_backend_theme/static/src/xml/top_bar.xml @@ -24,10 +24,28 @@ -