summaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-12-16 17:00:28 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-12-16 17:22:09 +0100
commita743872d30d72dfdc230cd72a1f529edd82e691e (patch)
tree2fa549efc379e7749ad3ecb6fdfea2b3c8275fcd /src/main/resources/META-INF
parent533e6d4ca0764c3d74329cbe8c470957a51a278b (diff)
Make navigation in portrait mode more finger-friendly again.
Change-Id: I30c20e67c61259d6029055800db3131eeeeb0e46
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r--src/main/resources/META-INF/resources/cms2/base.css34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css
index 920e5a0..3855486 100644
--- a/src/main/resources/META-INF/resources/cms2/base.css
+++ b/src/main/resources/META-INF/resources/cms2/base.css
@@ -77,16 +77,12 @@ body {
border-top: 1px solid lightgray
}
- .landscape-only, body > nav ol > li.landscape-only {
- display: none;
- }
-
- .login-box > * {
- display: inline;
+ .landscape-only {
+ display: none !important;
}
li.submenu > a {
- display: inline !important;
+ display: inline-block !important;
padding-left: 0.5em;
padding-right: 0.5em;
}
@@ -96,16 +92,21 @@ body {
padding-right: 0.5em !important;
}
+ body > nav ol.submenu > li {
+ text-indent: 0 !important;
+ }
+
ol.submenu > li {
display: inline;
}
ol.submenu > li > a {
- display: inline;
+ display: inline-block;
padding-left: 0.2em;
padding-right: 0.2em;
margin-left: 0.2em;
margin-right: 0.2em;
+ z-index: 2 !important;
}
ol.submenu > li:first-child > a {
@@ -149,12 +150,17 @@ body {
"footer footer";
}
+ .portrait-only {
+ display: none !important;
+ }
+
body > nav ol > li.this-page {
width: calc(100% + 3px);
}
body > nav ol > li.this-page > a {
- border-right: 1px solid var(--main-bg-color);
+ border-right: 1px solid var(--main-bg-color) !important;
+ margin-right: -1px;
}
}
@@ -198,8 +204,18 @@ body > nav ol > li {
flex: auto;
}
+body > nav > ol > li {
+ position: relative;
+}
+
body > nav ol.submenu > li {
text-indent: 1em;
+ z-index: 2;
+ position: relative;
+}
+
+body > nav > ol > li > a {
+ background: var(--nav-bg-color);
}
body > nav ol > li.this-page > a {