diff options
| author | 2022-11-23 22:40:23 +0100 | |
|---|---|---|
| committer | 2022-11-23 22:40:23 +0100 | |
| commit | ef5483490cf42beeec8f77ed1669ab9a05b9cbc0 (patch) | |
| tree | 99211facb10f2da8cbfb58fd0081fc4a4eba1f3f /p/themes/Swage | |
| parent | c9f5012f102c5270d27206aca957b2ee16fe04f8 (diff) | |
Improved: config dropdown structure (#4891)
* phtml and frss.css
* theme Origine
* theme adark
* theme Ansum
* theme Mapco
* theme BlueLagoon
* theme dark
* theme flat
* theme nord
* theme Screwdriver
* theme swage
* fix
* fix
* RTL
* fix nord theme
* fix SourceMap lines
Diffstat (limited to 'p/themes/Swage')
| -rw-r--r-- | p/themes/Swage/swage.css | 15 | ||||
| -rw-r--r-- | p/themes/Swage/swage.rtl.css | 15 | ||||
| -rw-r--r-- | p/themes/Swage/swage.scss | 22 |
3 files changed, 46 insertions, 6 deletions
diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css index 3a3202154..2397160b2 100644 --- a/p/themes/Swage/swage.css +++ b/p/themes/Swage/swage.css @@ -332,12 +332,23 @@ form th { .dropdown-menu .dropdown-header a:hover { background-color: var(--color-background-nav); } +.dropdown-menu .dropdown-section .dropdown-section-title { + cursor: default; + padding: 0.25rem 0.5rem 0.125rem 0.25rem; + font-weight: bold; + color: var(--color-text-light); +} +.dropdown-menu .dropdown-section .item a { + padding: 0 22px; +} +.dropdown-menu .dropdown-section .item a:hover { + background-color: var(--color-background-nav); +} .dropdown-menu::after { content: none; } .dropdown-menu > .item { - padding: 0; - margin-left: 10px; + padding: 0 0 0 0.5rem; } .dropdown-menu > .item > a { min-width: initial; diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css index 35cda9308..a021a70cd 100644 --- a/p/themes/Swage/swage.rtl.css +++ b/p/themes/Swage/swage.rtl.css @@ -332,12 +332,23 @@ form th { .dropdown-menu .dropdown-header a:hover { background-color: var(--color-background-nav); } +.dropdown-menu .dropdown-section .dropdown-section-title { + cursor: default; + padding: 0.25rem 0.25rem 0.125rem 0.5rem; + font-weight: bold; + color: var(--color-text-light); +} +.dropdown-menu .dropdown-section .item a { + padding: 0 22px; +} +.dropdown-menu .dropdown-section .item a:hover { + background-color: var(--color-background-nav); +} .dropdown-menu::after { content: none; } .dropdown-menu > .item { - padding: 0; - margin-right: 10px; + padding: 0 0.5rem 0 0; } .dropdown-menu > .item > a { min-width: initial; diff --git a/p/themes/Swage/swage.scss b/p/themes/Swage/swage.scss index fddb287be..9ca316aff 100644 --- a/p/themes/Swage/swage.scss +++ b/p/themes/Swage/swage.scss @@ -431,6 +431,25 @@ form { } } + .dropdown-section { + .dropdown-section-title { + cursor: default; + padding: 0.25rem 0.5rem 0.125rem 0.25rem; + font-weight: bold; + color: var(--color-text-light); + } + + .item { + a { + padding: 0 22px; + + &:hover { + background-color: var(--color-background-nav); + } + } + } + } + &::after { content: none; } @@ -439,8 +458,7 @@ form { .item { @extend %dropdown; - padding: 0; - margin-left: 10px; + padding: 0 0 0 0.5rem; > a, > span, |
