aboutsummaryrefslogtreecommitdiff
path: root/src/css
diff options
context:
space:
mode:
Diffstat (limited to 'src/css')
-rw-r--r--src/css/_iconfont.scss3
-rw-r--r--src/css/_partial/_post/_content.scss26
2 files changed, 29 insertions, 0 deletions
diff --git a/src/css/_iconfont.scss b/src/css/_iconfont.scss
index 786be46..f4fa791 100644
--- a/src/css/_iconfont.scss
+++ b/src/css/_iconfont.scss
@@ -137,6 +137,9 @@
.icon-close:before {
content: "\e60f";
}
+.icon-link:before {
+ content: "\e909";
+}
/* Admonition Icon */
/*
diff --git a/src/css/_partial/_post/_content.scss b/src/css/_partial/_post/_content.scss
index 5628664..9e48177 100644
--- a/src/css/_partial/_post/_content.scss
+++ b/src/css/_partial/_post/_content.scss
@@ -9,6 +9,32 @@
h#{$i} {
font-weight: 400;
font-family: $global-serif-font-family;
+
+ .anchor {
+ float: left;
+ line-height: 1;
+ margin-left: -20px;
+ padding-right: 4px;
+
+ &:hover {
+ border-bottom: initial;
+ }
+
+ .icon-link {
+ visibility: hidden;
+ font-size: 16px;
+
+ &:before {
+ vertical-align: middle;
+ }
+ }
+ }
+
+ &:hover {
+ .icon-link {
+ visibility: visible;
+ }
+ }
}
}