aboutsummaryrefslogtreecommitdiff
path: root/styles
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-26 22:40:52 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-26 22:40:52 +0100
commitedba91f524455dcbb108da56d893290013816087 (patch)
treefc75bf00c3b17f8eb45df16664930f496b184580 /styles
parent6682690a1c8a05bcffc24bcef3c89a14c1762d85 (diff)
chapter hierarchy thingy working
Diffstat (limited to 'styles')
-rw-r--r--styles/navbar.css55
-rw-r--r--styles/navbarItem.css31
2 files changed, 55 insertions, 31 deletions
diff --git a/styles/navbar.css b/styles/navbar.css
new file mode 100644
index 0000000..456c2c3
--- /dev/null
+++ b/styles/navbar.css
@@ -0,0 +1,55 @@
+.navbarItem .inner {
+ background-color: var(--oxford-blue);
+ color: var(--almond);
+
+ padding: 8px;
+ border-radius: 8px;
+
+ transition-property: background-color, color;
+ transition-duration: .15s;
+
+ position: relative;
+}
+
+.navbarItem {
+ text-decoration: none;
+ display: block;
+}
+
+.navbarItem.indentLevel0 { margin-bottom: 12px; }
+
+.navbarItem.active .inner,
+.navbarItem:hover .inner {
+ background-color: var(--heliotrope-gray);
+ color: var(--oxford-blue);
+}
+
+.navbarItem.chapter .inner {
+ background-color: transparent;
+ color: var(--fg);
+ /* box-shadow: inset 0 0 0 1px #ff00ff; */
+ padding: 4px 0;
+ overflow: visible;
+}
+
+.navbarItem span {
+ vertical-align: top;
+ margin-left: 8px;
+ margin-top: 3px;
+ display: inline-block;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ width: calc(100% - 32px);
+}
+.navbarItem.chapter span {
+ margin-top: 1px;
+}
+
+.navbarItem .inner {
+ height: 24px;
+}
+
+.navbarItem > div > svg {
+ vertical-align: super;
+}
diff --git a/styles/navbarItem.css b/styles/navbarItem.css
deleted file mode 100644
index 9c042a9..0000000
--- a/styles/navbarItem.css
+++ /dev/null
@@ -1,31 +0,0 @@
-.navbarItem {
- display: block;
-
- background-color: var(--oxford-blue);
- color: var(--almond);
-
- text-decoration: none;
-
- padding: 8px;
- border-radius: 8px;
- margin-bottom: 12px;
-
- transition-property: background-color, color;
- transition-duration: .15s;
-}
-
-.navbarItem.active,
-.navbarItem:hover {
- background-color: var(--heliotrope-gray);
- color: var(--oxford-blue);
-}
-
-.navbarItem span {
- vertical-align: super;
- line-height: 0;
- margin-left: 8px;
-}
-
-.navbarItem > div {
- height: 24px;
-}