From ef5483490cf42beeec8f77ed1669ab9a05b9cbc0 Mon Sep 17 00:00:00 2001 From: maTh Date: Wed, 23 Nov 2022 22:40:23 +0100 Subject: 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 --- p/themes/Swage/swage.css | 15 +++++++++++++-- p/themes/Swage/swage.rtl.css | 15 +++++++++++++-- p/themes/Swage/swage.scss | 22 ++++++++++++++++++++-- 3 files changed, 46 insertions(+), 6 deletions(-) (limited to 'p/themes/Swage') 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, -- cgit v1.2.3