summaryrefslogtreecommitdiff
path: root/assets/css/common/post-single.css
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-22 00:28:30 +0800
committerReorx <novoreorx@gmail.com>2022-04-22 00:28:30 +0800
commit98b512fe646b5de3e3b4173f2f3c38e4f67e559b (patch)
treeed4ca91f598a7e38e47738a3a37cf729266dff31 /assets/css/common/post-single.css
parent48cba7f5aedec28e24b427cd0a3b00ded924de63 (diff)
move tags to the top; use ¶ for anchor symbol
Diffstat (limited to 'assets/css/common/post-single.css')
-rw-r--r--assets/css/common/post-single.css43
1 files changed, 22 insertions, 21 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index e5f85d5..61bdb66 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -18,11 +18,13 @@
.post-meta,
.breadcrumbs {
- color: var(--secondary);
- font-size: 14px;
+ font-size: 15px;
display: flex;
flex-wrap: wrap;
}
+.post-meta * {
+ color: var(--secondary);
+}
.post-meta ul {
margin: 0;
@@ -39,6 +41,20 @@
margin-inline-end: .5em;
}
+.post-tags a:hover {
+ color: var(--primary);
+}
+.post-tags a:not(:last-of-type) {
+ margin-inline-end: .3em;
+}
+.post-tags a:not(:last-of-type):after {
+ content: ",";
+}
+.post-tags a:before {
+ content: "#";
+ margin-inline-end: 2px;
+}
+
.breadcrumbs a {
font-size: 16px;
}
@@ -92,7 +108,7 @@
}
.post-content a.anchor:hover {
color: var(--primary);
- box-shadow: 0 -2px 0 var(--secondary) inset;
+ box-shadow: 0 2px 0 var(--secondary);
}
.post-content a code {
@@ -112,6 +128,9 @@ h5 .anchor,
h6 .anchor {
box-shadow: none;
user-select: none;
+ font-size: .8em;
+ position: relative;
+ top: -2px;
}
h1:hover .anchor,
@@ -374,13 +393,6 @@ h6:hover .anchor {
margin-top: 56px;
}
-.post-tags li {
- display: inline-block;
- margin-inline-end: 3px;
- margin-bottom: 5px;
-}
-
-.post-tags a,
.share-buttons,
.paginav {
border-radius: var(--radius);
@@ -388,17 +400,6 @@ h6:hover .anchor {
border: 1px solid var(--border);
}
-.post-tags a {
- display: block;
- padding-inline-start: 14px;
- padding-inline-end: 14px;
- color: var(--secondary);
- font-size: 14px;
- line-height: 34px;
- background: var(--code-bg);
-}
-
-.post-tags a:hover,
.paginav a:hover {
background: var(--border);
}