diff options
author | Henk Verlinde <henk@ventizo.com> | 2022-02-01 11:57:11 +0300 |
---|---|---|
committer | Henk Verlinde <henk@ventizo.com> | 2022-02-01 11:57:11 +0300 |
commit | ab228b2643cc92c5f9d200efa870304355eeca2b (patch) | |
tree | e3036eb4ade47e1ebe773832b66bf6547186601f /assets | |
parent | 0fad0abb882fe783e5a9bf62c3f6e3ee6fc81da1 (diff) |
feat: add support for sub navigation main menu
Diffstat (limited to 'assets')
-rw-r--r-- | assets/scss/common/_dark.scss | 16 | ||||
-rw-r--r-- | assets/scss/components/_buttons.scss | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/assets/scss/common/_dark.scss b/assets/scss/common/_dark.scss index f958836..c312215 100644 --- a/assets/scss/common/_dark.scss +++ b/assets/scss/common/_dark.scss @@ -527,3 +527,19 @@ $navbar-dark-active-color: $link-color-dark; border-color: $border-dark; } } + +[data-dark-mode] .dropdown-menu.dropdown-menu-main { + background: $body-overlay-dark; +} + +[data-dark-mode] .dropdown-menu-main .dropdown-item { + color: $body-color-dark; +} + +[data-dark-mode] .dropdown-menu-main .dropdown-item:hover { + color: $link-color-dark; +} + +[data-dark-mode] .dropdown-menu-main .dropdown-item.active { + color: $link-color-dark; +} diff --git a/assets/scss/components/_buttons.scss b/assets/scss/components/_buttons.scss index 7e22328..9cb51e5 100644 --- a/assets/scss/components/_buttons.scss +++ b/assets/scss/components/_buttons.scss @@ -218,3 +218,30 @@ pre { margin-left: -0.1875rem; margin-right: -0.3125rem; } + +.dropdown-menu.dropdown-menu-main { + width: 100%; +} + +.dropdown-menu-main .dropdown-item { + color: inherit; + font-size: $font-size-base; + font-weight: 400; + text-decoration: none; +} + +.dropdown-menu-main .dropdown-item:hover { + background-color: transparent; + color: $primary; +} + +.dropdown-menu-main .dropdown-item.active { + color: $primary; + font-weight: 400; + text-decoration: none; + background-color: inherit; +} + +.dropdown-menu-main .dropdown-item.active:hover { + background-color: transparent; +} |