From 280efabd02dd386f0a680cc3555f1b4d9875fa60 Mon Sep 17 00:00:00 2001 From: Reorx Date: Wed, 13 Apr 2022 17:23:43 +0800 Subject: tune link styles, add color to menu, content, footer links --- assets/css/common/post-single.css | 49 ++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 13 deletions(-) (limited to 'assets/css/common/post-single.css') 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); -- cgit v1.2.3