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/Ansum | |
| 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/Ansum')
| -rw-r--r-- | p/themes/Ansum/_components.scss | 32 | ||||
| -rw-r--r-- | p/themes/Ansum/ansum.css | 22 | ||||
| -rw-r--r-- | p/themes/Ansum/ansum.rtl.css | 22 |
3 files changed, 48 insertions, 28 deletions
diff --git a/p/themes/Ansum/_components.scss b/p/themes/Ansum/_components.scss index 35298b4de..001d31578 100644 --- a/p/themes/Ansum/_components.scss +++ b/p/themes/Ansum/_components.scss @@ -37,15 +37,14 @@ right: 17px; } - .dropdown-header { - padding: 1rem 0.5rem 1rem 1rem; + .dropdown-header, + .dropdown-section .dropdown-section-title { + padding: 1rem 1.5rem; font-weight: bold; text-align: left; color: variables.$grey-dark; text-transform: uppercase; letter-spacing: 1px; - - } .item { @@ -57,19 +56,28 @@ color: variables.$main-font-color; font-size: 1rem; line-height: 2.5em; + + &:not(.addItem):hover { + background: variables.$main-first; + color: variables.$white; + + .icon { + filter: grayscale(100%) brightness(2.5); + } + } } - &:not(.addItem):hover { - background: variables.$main-first; - color: variables.$white; + &.dropdown-section { + margin-top: 0.75rem; - a, button, label { - text-decoration: none; - color: variables.$white; + ~ .dropdown-section { + border-top-color: variables.$grey-light; } - .icon { - filter: grayscale(100%) brightness(2.5); + .item { + a, span, .as-link { + padding-left: 2rem; + } } } diff --git a/p/themes/Ansum/ansum.css b/p/themes/Ansum/ansum.css index 07586f8fb..f07ba86ad 100644 --- a/p/themes/Ansum/ansum.css +++ b/p/themes/Ansum/ansum.css @@ -240,8 +240,9 @@ form th { border: none; right: 17px; } -.dropdown-menu .dropdown-header { - padding: 1rem 0.5rem 1rem 1rem; +.dropdown-menu .dropdown-header, +.dropdown-menu .dropdown-section .dropdown-section-title { + padding: 1rem 1.5rem; font-weight: bold; text-align: left; color: #766556; @@ -257,17 +258,22 @@ form th { font-size: 1rem; line-height: 2.5em; } -.dropdown-menu .item:not(.addItem):hover { +.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item span:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { background: #ca7227; color: #fff; } -.dropdown-menu .item:not(.addItem):hover a, .dropdown-menu .item:not(.addItem):hover button, .dropdown-menu .item:not(.addItem):hover label { - text-decoration: none; - color: #fff; -} -.dropdown-menu .item:not(.addItem):hover .icon { +.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item span:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { filter: grayscale(100%) brightness(2.5); } +.dropdown-menu .item.dropdown-section { + margin-top: 0.75rem; +} +.dropdown-menu .item.dropdown-section ~ .dropdown-section { + border-top-color: #f5f0ec; +} +.dropdown-menu .item.dropdown-section .item a, .dropdown-menu .item.dropdown-section .item span, .dropdown-menu .item.dropdown-section .item .as-link { + padding-left: 2rem; +} .dropdown-menu .item:not(.addItem) a:hover, .dropdown-menu .item:not(.addItem) button:hover { background: #ca7227; diff --git a/p/themes/Ansum/ansum.rtl.css b/p/themes/Ansum/ansum.rtl.css index 7ab296aa5..beb5de8a8 100644 --- a/p/themes/Ansum/ansum.rtl.css +++ b/p/themes/Ansum/ansum.rtl.css @@ -240,8 +240,9 @@ form th { border: none; left: 17px; } -.dropdown-menu .dropdown-header { - padding: 1rem 1rem 1rem 0.5rem; +.dropdown-menu .dropdown-header, +.dropdown-menu .dropdown-section .dropdown-section-title { + padding: 1rem 1.5rem; font-weight: bold; text-align: right; color: #766556; @@ -257,17 +258,22 @@ form th { font-size: 1rem; line-height: 2.5em; } -.dropdown-menu .item:not(.addItem):hover { +.dropdown-menu .item a:not(.addItem):hover, .dropdown-menu .item span:not(.addItem):hover, .dropdown-menu .item .as-link:not(.addItem):hover { background: #ca7227; color: #fff; } -.dropdown-menu .item:not(.addItem):hover a, .dropdown-menu .item:not(.addItem):hover button, .dropdown-menu .item:not(.addItem):hover label { - text-decoration: none; - color: #fff; -} -.dropdown-menu .item:not(.addItem):hover .icon { +.dropdown-menu .item a:not(.addItem):hover .icon, .dropdown-menu .item span:not(.addItem):hover .icon, .dropdown-menu .item .as-link:not(.addItem):hover .icon { filter: grayscale(100%) brightness(2.5); } +.dropdown-menu .item.dropdown-section { + margin-top: 0.75rem; +} +.dropdown-menu .item.dropdown-section ~ .dropdown-section { + border-top-color: #f5f0ec; +} +.dropdown-menu .item.dropdown-section .item a, .dropdown-menu .item.dropdown-section .item span, .dropdown-menu .item.dropdown-section .item .as-link { + padding-right: 2rem; +} .dropdown-menu .item:not(.addItem) a:hover, .dropdown-menu .item:not(.addItem) button:hover { background: #ca7227; |
