diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-13 17:23:43 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-13 17:24:01 +0800 |
| commit | 280efabd02dd386f0a680cc3555f1b4d9875fa60 (patch) | |
| tree | 763641c66fa7764f5a6873f8fde0d8314d135a49 /assets/css/common/post-single.css | |
| parent | b662cb28e3d80c03b6c94b4224050e7bbf098080 (diff) | |
tune link styles, add color to menu, content, footer links
Diffstat (limited to 'assets/css/common/post-single.css')
| -rw-r--r-- | assets/css/common/post-single.css | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 8730e88..cf6b5f5 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -70,7 +70,17 @@ } .post-content a { - box-shadow: 0 1px 0; + font-weight: 500; + color: var(--primary); + box-shadow: var(--link-underline-shadow); +} +.post-content a:hover { + color: var(--link-hover-color); + box-shadow: var(--link-hover-underline-shadow); +} +.post-content a.anchor:hover { + color: var(--primary); + box-shadow: 0 -2px 0 var(--secondary) inset; } .post-content a code { @@ -78,6 +88,31 @@ border-radius: 0; box-shadow: 0 -1px 0 var(--primary) inset; } +.post-content a:hover code { + box-shadow: 0 -1px 0 var(--link-hover-underline-color) inset, 0 1px 0 var(--link-hover-underline-color); +} + +h1 .anchor, +h2 .anchor, +h3 .anchor, +h4 .anchor, +h5 .anchor, +h6 .anchor { + box-shadow: none; + user-select: none; +} + +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + color: var(--secondary); + margin-inline-start: 8px; + font-weight: 500; + display: inline-flex; +} .post-content del { text-decoration: none; @@ -366,18 +401,6 @@ transform: scale(0.96); } -h1:hover .anchor, -h2:hover .anchor, -h3:hover .anchor, -h4:hover .anchor, -h5:hover .anchor, -h6:hover .anchor { - display: inline-flex; - color: var(--secondary); - margin-inline-start: 8px; - font-weight: 500; - user-select: none; -} .post-content :not(table) ::-webkit-scrollbar-thumb { border: 2px solid var(--hljs-bg); |
