about summary refs log tree commit diff
path: root/static/css
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-15 13:46:47 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-15 13:46:47 -0700
commit474c50db3454dbe59a180e31f9b9e365ea76eaa5 (patch)
treeb1df5da790f3cc376c47ae70bb899a7739d6751a /static/css
parentCSS: use a class for the menu (diff)
downloadfcuny.net-474c50db3454dbe59a180e31f9b9e365ea76eaa5.tar.gz
CSS: support table of content
If an entry has the parameter `#+toc` set to `t`, we will enable the
table of content in the page.
Diffstat (limited to 'static/css')
-rw-r--r--static/css/custom.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/static/css/custom.css b/static/css/custom.css
index b4e37bc..8f776d7 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -140,3 +140,15 @@ nav.menu a.menu-active:hover {
 nav.menu a.menu-active {
     color: #007d9c;
 }
+
+.toc {
+    border: 1px solid black;
+    padding: 1rem;
+    margin-top: 1rem;
+    color: black;
+}
+
+.toc a,
+.toc a.visited {
+    color: black;
+}