diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-11-05 22:46:34 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-11-05 22:46:34 +0800 |
commit | 8d390991f895e079e21f5d1c550e0736a29e8cea (patch) | |
tree | 521760f1911c019c0bbde13c9ad10a1a1736418c /src/css | |
parent | f4bcf93d0ea8bde5a68da52554499f5e8dd1d91d (diff) |
feat(title): add anchor
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/_iconfont.scss | 3 | ||||
-rw-r--r-- | src/css/_partial/_post/_content.scss | 26 |
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; + } + } } } |