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/Nord/nord.css | 28 +++++++++++++++++++++++----- p/themes/Nord/nord.rtl.css | 28 +++++++++++++++++++++++----- 2 files changed, 46 insertions(+), 10 deletions(-) (limited to 'p/themes/Nord') diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css index 3a6fc12af..8ce9727a3 100644 --- a/p/themes/Nord/nord.css +++ b/p/themes/Nord/nord.css @@ -198,7 +198,7 @@ a.btn { .dropdown-menu { margin: 5px 0 0; - padding: 5px 0; + padding: 0.5rem 0 0.25rem 0; background: var(--accent-bg); font-size: 0.8rem; border: 1px solid var(--border); @@ -206,21 +206,38 @@ a.btn { text-align: left; } -.dropdown-header { +.dropdown-header, +.dropdown-section .dropdown-section-title { padding: 0 5px 5px; font-weight: bold; text-align: left; } -.dropdown-menu > .item > a, -.dropdown-menu > .item > span, -.dropdown-menu > .item > .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 22px; color: var(--text); line-height: 2.5em; min-width: 200px; } +.dropdown-menu .dropdown-section .item > a, +.dropdown-menu .dropdown-section .item > span, +.dropdown-menu .dropdown-section .item > .as-link { + padding-left: 2rem; +} + +.dropdown-menu .dropdown-section .item:last-child { + margin-bottom: 0.5rem; +} + +.dropdown-menu .item > a:hover, +.dropdown-menu .item > button:hover, +.dropdown-menu .item > label:hover:not(.noHover) { + /* no hover color */ +} + .dropdown-menu > .item[aria-checked="true"] > a::before { font-weight: bold; margin: 0 0 0 -14px; @@ -276,6 +293,7 @@ a.btn { } .item ~ .dropdown-header, +.dropdown-section ~ .dropdown-section, .item.separator { border-top-color: var(--border); } diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css index e3b3a7d78..f7b0c4a64 100644 --- a/p/themes/Nord/nord.rtl.css +++ b/p/themes/Nord/nord.rtl.css @@ -198,7 +198,7 @@ a.btn { .dropdown-menu { margin: 5px 0 0; - padding: 5px 0; + padding: 0.5rem 0 0.25rem 0; background: var(--accent-bg); font-size: 0.8rem; border: 1px solid var(--border); @@ -206,21 +206,38 @@ a.btn { text-align: right; } -.dropdown-header { +.dropdown-header, +.dropdown-section .dropdown-section-title { padding: 0 5px 5px; font-weight: bold; text-align: right; } -.dropdown-menu > .item > a, -.dropdown-menu > .item > span, -.dropdown-menu > .item > .as-link { +.dropdown-menu .item > a, +.dropdown-menu .item > span, +.dropdown-menu .item > .as-link { padding: 0 22px; color: var(--text); line-height: 2.5em; min-width: 200px; } +.dropdown-menu .dropdown-section .item > a, +.dropdown-menu .dropdown-section .item > span, +.dropdown-menu .dropdown-section .item > .as-link { + padding-right: 2rem; +} + +.dropdown-menu .dropdown-section .item:last-child { + margin-bottom: 0.5rem; +} + +.dropdown-menu .item > a:hover, +.dropdown-menu .item > button:hover, +.dropdown-menu .item > label:hover:not(.noHover) { + /* no hover color */ +} + .dropdown-menu > .item[aria-checked="true"] > a::before { font-weight: bold; margin: 0 -14px 0 0; @@ -276,6 +293,7 @@ a.btn { } .item ~ .dropdown-header, +.dropdown-section ~ .dropdown-section, .item.separator { border-top-color: var(--border); } -- cgit v1.2.3