summaryrefslogtreecommitdiff
path: root/assets/css/common/post-single.css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/common/post-single.css')
-rw-r--r--assets/css/common/post-single.css25
1 files changed, 18 insertions, 7 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index b9b9709..8730e88 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -69,8 +69,7 @@
font-size: 12px;
}
-.post-content a,
-.toc a:hover {
+.post-content a {
box-shadow: 0 1px 0;
}
@@ -263,20 +262,26 @@
border-radius: var(--radius);
padding: 0.4em;
}
+@media screen and (min-width: 1000px) {
+ .toc.side {
+ position: fixed;
+ right: 30px;
+ top: 100px;
+ width: 300px;
+ font-size: .9em;
+ z-index: 1;
+ }
+}
.dark .toc {
background: var(--entry);
}
.toc details summary {
- cursor: zoom-in;
+ cursor: pointer;
margin-inline-start: 20px;
}
-.toc details[open] summary {
- cursor: zoom-out;
-}
-
.toc .details {
display: inline;
font-weight: 500;
@@ -290,6 +295,12 @@
.toc li ul {
margin-inline-start: var(--gap);
}
+.toc li a.active {
+ box-shadow: 0 2px 0 var(--secondary);
+}
+.toc a:hover {
+ text-decoration: underline;
+}
.toc summary:focus {
outline: 0;