aboutsummaryrefslogtreecommitdiff
path: root/p/themes/Screwdriver
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-11-23 22:40:23 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-23 22:40:23 +0100
commitef5483490cf42beeec8f77ed1669ab9a05b9cbc0 (patch)
tree99211facb10f2da8cbfb58fd0081fc4a4eba1f3f /p/themes/Screwdriver
parentc9f5012f102c5270d27206aca957b2ee16fe04f8 (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/Screwdriver')
-rw-r--r--p/themes/Screwdriver/screwdriver.css30
-rw-r--r--p/themes/Screwdriver/screwdriver.rtl.css30
2 files changed, 44 insertions, 16 deletions
diff --git a/p/themes/Screwdriver/screwdriver.css b/p/themes/Screwdriver/screwdriver.css
index eddbdd136..490381fb6 100644
--- a/p/themes/Screwdriver/screwdriver.css
+++ b/p/themes/Screwdriver/screwdriver.css
@@ -331,7 +331,7 @@ a.btn {
/*=== Dropdown */
.dropdown-menu {
margin: 5px 0 0;
- padding: 5px 0;
+ padding: 0.5rem 0 0.25rem 0;
background: #222;
font-size: 0.8rem;
border: 1px solid #171717;
@@ -344,30 +344,43 @@ a.btn {
border-color: #171717;
}
-.dropdown-header {
+.dropdown-header,
+.dropdown-section .dropdown-section-title {
padding: 0 5px 5px;
color: #ccc;
font-weight: bold;
}
-.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;
line-height: 2.5em;
color: #ccc;
font-size: 0.8rem;
}
-.dropdown-menu > .item > label {
- color: #ccc;
+.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:hover {
+.dropdown-menu .item > a:hover,
+.dropdown-menu .item > button:hover,
+.dropdown-menu .item > label:hover:not(.noHover) {
background: #171717;
color: #fff;
}
+.dropdown-menu > .item > label {
+ color: #ccc;
+}
+
.dropdown-menu > .item[aria-checked="true"] > a::before {
font-weight: bold;
margin: 0 0 0 -14px;
@@ -379,6 +392,7 @@ a.btn {
}
.item ~ .dropdown-header,
+.dropdown-section ~ .dropdown-section,
.item.separator {
border-top-color: rgba(255,255,255,0.08);
}
diff --git a/p/themes/Screwdriver/screwdriver.rtl.css b/p/themes/Screwdriver/screwdriver.rtl.css
index aef02ecdb..e8a30d326 100644
--- a/p/themes/Screwdriver/screwdriver.rtl.css
+++ b/p/themes/Screwdriver/screwdriver.rtl.css
@@ -331,7 +331,7 @@ a.btn {
/*=== Dropdown */
.dropdown-menu {
margin: 5px 0 0;
- padding: 5px 0;
+ padding: 0.5rem 0 0.25rem 0;
background: #222;
font-size: 0.8rem;
border: 1px solid #171717;
@@ -344,30 +344,43 @@ a.btn {
border-color: #171717;
}
-.dropdown-header {
+.dropdown-header,
+.dropdown-section .dropdown-section-title {
padding: 0 5px 5px;
color: #ccc;
font-weight: bold;
}
-.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;
line-height: 2.5em;
color: #ccc;
font-size: 0.8rem;
}
-.dropdown-menu > .item > label {
- color: #ccc;
+.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:hover {
+.dropdown-menu .item > a:hover,
+.dropdown-menu .item > button:hover,
+.dropdown-menu .item > label:hover:not(.noHover) {
background: #171717;
color: #fff;
}
+.dropdown-menu > .item > label {
+ color: #ccc;
+}
+
.dropdown-menu > .item[aria-checked="true"] > a::before {
font-weight: bold;
margin: 0 -14px 0 0;
@@ -379,6 +392,7 @@ a.btn {
}
.item ~ .dropdown-header,
+.dropdown-section ~ .dropdown-section,
.item.separator {
border-top-color: rgba(255,255,255,0.08);
}