about summary refs log tree commit diff
path: root/assets
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-31 10:56:54 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-31 10:56:54 +0700
commitdcbadc3b6117f23107822d80e2d78a365b3970fe (patch)
tree752d8916bcac7ec727085cd86de4cd32f52378ee /assets
parentd49f5c58de9308af15aa1665276eab92fe22ac19 (diff)
downloadvictor-dcbadc3b6117f23107822d80e2d78a365b3970fe.tar.gz
Add recursive TOC and breadcrumbs navigation
Diffstat (limited to 'assets')
-rw-r--r--assets/css/theme.css31
1 files changed, 31 insertions, 0 deletions
diff --git a/assets/css/theme.css b/assets/css/theme.css
index e659a2d..1988b04 100644
--- a/assets/css/theme.css
+++ b/assets/css/theme.css
@@ -9,3 +9,34 @@ nav ul, nav ul li {
 footer {
 	padding-top: 1.5rem;
 }
+
+nav.breadcrumb {
+    padding: 0 .5rem;
+}
+
+.breadcrumb ol {
+    display: flex;
+    flex-wrap: wrap;
+    list-style: none;
+    text-transform: none !important;
+    margin: 0;
+    padding: 0;
+}
+
+.breadcrumb li:not(:last-child)::after {
+    display: inline-block;
+    margin: 0 .25rem;
+    content: "→";
+}
+
+a.nav-up::before {
+    content: "↑ ";
+}
+
+a.nav-prev::after {
+    content: " →"
+}
+
+a.nav-next::before {
+    content: "← "
+}