aboutsummaryrefslogtreecommitdiff
path: root/p/themes/Ansum
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-01-17 15:52:29 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-17 15:52:29 +0100
commit33468def4a5fc0e3af92e5759f463d4d4872fd84 (patch)
tree2bb4ad26afc307628c46a308f526d816f8e27b61 /p/themes/Ansum
parent0ab130eb9c3df3227a70624bcd5e8133afb00ae5 (diff)
Improved: navigation menu structure (#4937)
Diffstat (limited to 'p/themes/Ansum')
-rw-r--r--p/themes/Ansum/_sidebar.scss24
-rw-r--r--p/themes/Ansum/ansum.css18
-rw-r--r--p/themes/Ansum/ansum.rtl.css18
3 files changed, 41 insertions, 19 deletions
diff --git a/p/themes/Ansum/_sidebar.scss b/p/themes/Ansum/_sidebar.scss
index d73cf7439..e92dd2ec4 100644
--- a/p/themes/Ansum/_sidebar.scss
+++ b/p/themes/Ansum/_sidebar.scss
@@ -135,15 +135,23 @@
/*=== Navigation */
.nav-list {
- .nav-header,
+ font-size: 1rem;
+
+ .item.nav-header,
.item {
- height: 2.5em;
+ min-height: 2.5em;
line-height: 2.5em;
- font-size: 1rem;
}
.item {
background: variables.$sid-bg;
+ min-height: 2.5em;
+ line-height: 2.5em;
+
+ &.nav-header {
+ min-height: 2.5em;
+ line-height: 2.5em;
+ }
a {
padding: 0 1rem;
@@ -152,11 +160,9 @@
@include mixins.transition(all, 0.15s, ease-in-out);
}
- &:hover {
- a {
- background: variables.$sid-bg-dark;
- text-decoration: none;
- }
+ a:hover {
+ background: variables.$sid-bg-dark;
+ text-decoration: none;
}
&.active {
@@ -172,7 +178,7 @@
}
.nav-header {
- padding: 0 10px;
+ padding: 0 1rem;
font-weight: bold;
color: variables.$grey-dark;
text-transform: uppercase;
diff --git a/p/themes/Ansum/ansum.css b/p/themes/Ansum/ansum.css
index 5c7433fce..6789320b5 100644
--- a/p/themes/Ansum/ansum.css
+++ b/p/themes/Ansum/ansum.css
@@ -552,21 +552,29 @@ form th {
/* Sidebar des pages de configuration */
/*=== Navigation */
-.nav-list .nav-header,
+.nav-list {
+ font-size: 1rem;
+}
+.nav-list .item.nav-header,
.nav-list .item {
- height: 2.5em;
+ min-height: 2.5em;
line-height: 2.5em;
- font-size: 1rem;
}
.nav-list .item {
background: #fbf9f6;
+ min-height: 2.5em;
+ line-height: 2.5em;
+}
+.nav-list .item.nav-header {
+ min-height: 2.5em;
+ line-height: 2.5em;
}
.nav-list .item a {
padding: 0 1rem;
color: #363330;
transition: all 0.15s ease-in-out;
}
-.nav-list .item:hover a {
+.nav-list .item a:hover {
background: #efe3d3;
text-decoration: none;
}
@@ -580,7 +588,7 @@ form th {
text-decoration: none;
}
.nav-list .nav-header {
- padding: 0 10px;
+ padding: 0 1rem;
font-weight: bold;
color: #766556;
text-transform: uppercase;
diff --git a/p/themes/Ansum/ansum.rtl.css b/p/themes/Ansum/ansum.rtl.css
index d8e6eaa99..82ea37a3c 100644
--- a/p/themes/Ansum/ansum.rtl.css
+++ b/p/themes/Ansum/ansum.rtl.css
@@ -552,21 +552,29 @@ form th {
/* Sidebar des pages de configuration */
/*=== Navigation */
-.nav-list .nav-header,
+.nav-list {
+ font-size: 1rem;
+}
+.nav-list .item.nav-header,
.nav-list .item {
- height: 2.5em;
+ min-height: 2.5em;
line-height: 2.5em;
- font-size: 1rem;
}
.nav-list .item {
background: #fbf9f6;
+ min-height: 2.5em;
+ line-height: 2.5em;
+}
+.nav-list .item.nav-header {
+ min-height: 2.5em;
+ line-height: 2.5em;
}
.nav-list .item a {
padding: 0 1rem;
color: #363330;
transition: all 0.15s ease-in-out;
}
-.nav-list .item:hover a {
+.nav-list .item a:hover {
background: #efe3d3;
text-decoration: none;
}
@@ -580,7 +588,7 @@ form th {
text-decoration: none;
}
.nav-list .nav-header {
- padding: 0 10px;
+ padding: 0 1rem;
font-weight: bold;
color: #766556;
text-transform: uppercase;