summaryrefslogtreecommitdiff
path: root/assets/css/common/post-single.css
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-09-06 00:32:41 +0800
committerReorx <novoreorx@gmail.com>2022-09-06 00:32:41 +0800
commita316c983a6e3118a5278b0522381217f31c7b47c (patch)
tree56a522d5269694af53b9ec231bd73a6529e62405 /assets/css/common/post-single.css
parent51d922a535efa103206ab3657e4e9b3b1a8feb9b (diff)
enhance footnotes and sup style
- smaller footnotes in a colored box - highlight anchor of both footnote links and sups - sups are surrounded with brackets, imitate wikipedia
Diffstat (limited to 'assets/css/common/post-single.css')
-rw-r--r--assets/css/common/post-single.css54
1 files changed, 54 insertions, 0 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index b6d2c9f..432e0d1 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -269,6 +269,24 @@ h6:hover .anchor {
.post-content sup {
line-height: 1;
}
+.post-content sup a {
+ box-shadow: none;
+ font-family: Helvetica, Arial, sans-serif;
+ color: var(--link-hover-color);
+}
+.post-content sup a:hover {
+ box-shadow: none;
+ text-decoration: underline;
+}
+.post-content sup a:before {
+ content: "[";
+}
+.post-content sup a:after {
+ content: "]";
+}
+.post-content sup:target {
+ background-color: var(--link-background-color);
+}
.post-content hr {
margin: 30px 0;
@@ -573,3 +591,39 @@ h6:hover .anchor {
font-weight: bold;
vertical-align: super;
}
+
+.footnotes {
+ font-size: .8em;
+ color: var(--primary-dim);
+ font-weight: 400;
+ padding: 1em;
+ background-color: var(--code-bg);
+}
+
+.footnotes a {
+ color: var(--primary-dim);
+ font-weight: 400;
+}
+
+.footnotes hr {
+ display: none;
+}
+.footnotes ol {
+ margin: 0;
+}
+.footnotes ol li {
+ margin: 0 0 6px 0;
+}
+.footnotes ol li p {
+ line-height: 1.5em;
+ margin: 0;
+}
+.footnotes ol li:target p {
+ background-color: var(--link-background-color);
+}
+.footnotes ol:before {
+ content: "Footnotes";
+ font-size: 1.5em;
+ margin-left: -1em;
+ font-weight: 200;
+}