summaryrefslogtreecommitdiff
path: root/assets/css/common/post-single.css
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-05 17:17:06 +0800
committerReorx <novoreorx@gmail.com>2022-05-05 17:17:06 +0800
commit140f7c94927242b5ad44fcef46879b43b89262dd (patch)
treecf7f3b99483490488872a90a3979f5aaa20db0cf /assets/css/common/post-single.css
parentb8592bd443f255dc9d6c8a0bbb0b5b1cbaa87050 (diff)
refine toc link active color
Diffstat (limited to 'assets/css/common/post-single.css')
-rw-r--r--assets/css/common/post-single.css14
1 files changed, 11 insertions, 3 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index aa13c3d..4bdb50e 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -308,11 +308,13 @@ h6:hover .anchor {
border-radius: var(--radius);
padding: 0.4em 0;
}
+.toc.side {
+ font-size: .8em;
+}
@media screen and (min-width: 1440px) {
.toc.side {
position: fixed;
top: 118px;
- font-size: .8em;
z-index: 1;
max-height: calc(100% - 150px);
overflow: auto;
@@ -351,10 +353,16 @@ h6:hover .anchor {
.toc li ul {
margin-inline-start: 20px;
}
+.toc li a {
+ line-height: 1.5em;
+ padding: .1em .4em;
+ border-radius: 5px;
+ display: block;
+}
.toc li a.active {
- box-shadow: 0 2px 0 var(--secondary);
+ background-color: var(--link-background-color);
}
-.toc a:hover {
+.toc li a:hover {
text-decoration: underline;
}