diff options
| author | 2023-01-17 15:52:29 +0100 | |
|---|---|---|
| committer | 2023-01-17 15:52:29 +0100 | |
| commit | 33468def4a5fc0e3af92e5759f463d4d4872fd84 (patch) | |
| tree | 2bb4ad26afc307628c46a308f526d816f8e27b61 /p/themes/Pafat | |
| parent | 0ab130eb9c3df3227a70624bcd5e8133afb00ae5 (diff) | |
Improved: navigation menu structure (#4937)
Diffstat (limited to 'p/themes/Pafat')
| -rw-r--r-- | p/themes/Pafat/pafat.css | 15 | ||||
| -rw-r--r-- | p/themes/Pafat/pafat.rtl.css | 15 |
2 files changed, 18 insertions, 12 deletions
diff --git a/p/themes/Pafat/pafat.css b/p/themes/Pafat/pafat.css index 5a7fb876f..8c5b7a9f4 100644 --- a/p/themes/Pafat/pafat.css +++ b/p/themes/Pafat/pafat.css @@ -294,13 +294,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { color: var(--font-color-link-general-hover); background-color: var(--background-color-grey-hover); @@ -317,7 +320,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -325,7 +328,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color-grey-light); diff --git a/p/themes/Pafat/pafat.rtl.css b/p/themes/Pafat/pafat.rtl.css index 0181e60ed..1ff2ea70e 100644 --- a/p/themes/Pafat/pafat.rtl.css +++ b/p/themes/Pafat/pafat.rtl.css @@ -294,13 +294,16 @@ a.btn { } /*=== Navigation */ -.nav-list .nav-header, -.nav-list .item { - height: 2.5em; - line-height: 2.5; +.nav-list { font-size: 0.9rem; } +.nav-list .item, +.nav-list .item.nav-header { + min-height: 2.5em; + line-height: 2.5; +} + .nav-list .item a:hover { color: var(--font-color-link-general-hover); background-color: var(--background-color-grey-hover); @@ -317,7 +320,7 @@ a.btn { } .nav-list .item > a { - padding: 0 10px; + padding: 0 1rem; } .nav-list a:hover { @@ -325,7 +328,7 @@ a.btn { } .nav-list .nav-header { - padding: 0 10px; + padding: 0 1rem; background-color: var(--background-color-grey); color: var(--font-color-grey); border-bottom: 1px solid var(--border-color-grey-light); |
