summaryrefslogtreecommitdiffhomepage
path: root/services/blog/static
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-04 19:14:54 +0900
committernsfisis <nsfisis@gmail.com>2025-07-04 19:14:54 +0900
commit80f0ab31aceec35c9fd04a6387b14349b806f713 (patch)
tree6d9c3e47fe988f211e8598cbedd2031c09ca54cb /services/blog/static
parent98db243a59fb6a409b3677f2195e96da6fd39564 (diff)
downloadnsfisis.dev-80f0ab31aceec35c9fd04a6387b14349b806f713.tar.gz
nsfisis.dev-80f0ab31aceec35c9fd04a6387b14349b806f713.tar.zst
nsfisis.dev-80f0ab31aceec35c9fd04a6387b14349b806f713.zip
feat(blog/nuldoc): implement TOC
Diffstat (limited to 'services/blog/static')
-rw-r--r--services/blog/static/style.css50
1 files changed, 45 insertions, 5 deletions
diff --git a/services/blog/static/style.css b/services/blog/static/style.css
index a1f2370b..ccbcb685 100644
--- a/services/blog/static/style.css
+++ b/services/blog/static/style.css
@@ -50,13 +50,13 @@ body > footer {
color: #fff;
}
-nav {
+.nav {
padding: 0;
margin: 0.5rem 0 0;
width: 100%;
}
-nav ul {
+.nav ul {
list-style-type: none;
padding: 0;
margin: 0;
@@ -65,7 +65,7 @@ nav ul {
justify-content: center;
}
-nav ul li {
+.nav ul li {
text-transform: uppercase;
font-size: 1.1rem;
margin: 0 1rem;
@@ -73,7 +73,7 @@ nav ul li {
align-items: center;
}
-nav ul li a {
+.nav ul li a {
border: none;
color: #fff;
}
@@ -305,7 +305,7 @@ img {
padding: 1rem 0;
}
- nav ul {
+ .nav ul {
display: none;
}
}
@@ -378,3 +378,43 @@ img {
min-width: 0;
}
}
+
+/* Table of Contents */
+.toc {
+ background-color: #f5f5f5;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ padding: 1.5rem;
+ margin: 2rem 0;
+}
+
+.toc h2 {
+ font-size: 1.2rem;
+ margin: 0 0 1rem 0;
+}
+
+.toc ul {
+ list-style: none;
+ padding-left: 0;
+ margin: 0;
+}
+
+.toc ul ul {
+ padding-left: 1.5rem;
+ margin-top: 0.25rem;
+}
+
+.toc li {
+ margin: 0.25rem 0;
+}
+
+.toc a {
+ color: #333;
+ text-decoration: none;
+ border-bottom: 1px dotted #999;
+}
+
+.toc a:hover {
+ color: #000;
+ border-bottom-color: #000;
+}