diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 17:17:06 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 17:17:06 +0800 |
| commit | 140f7c94927242b5ad44fcef46879b43b89262dd (patch) | |
| tree | cf7f3b99483490488872a90a3979f5aaa20db0cf /assets/css/common/post-single.css | |
| parent | b8592bd443f255dc9d6c8a0bbb0b5b1cbaa87050 (diff) | |
refine toc link active color
Diffstat (limited to 'assets/css/common/post-single.css')
| -rw-r--r-- | assets/css/common/post-single.css | 14 |
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; } |
