mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Optimize header-anchor style
This commit is contained in:
parent
701f628b9a
commit
6bd195a9b1
@ -189,7 +189,7 @@ social_icons:
|
||||
|
||||
# Blog rolls
|
||||
links_settings:
|
||||
icon: fa fa-link
|
||||
icon: fa fa-globe
|
||||
title: Links
|
||||
# Available values: block | inline
|
||||
layout: block
|
||||
|
||||
@ -42,12 +42,11 @@
|
||||
&::before {
|
||||
animation: dot-flash 1s alternate infinite ease-in-out;
|
||||
color: white;
|
||||
content: '\f111';
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
margin-right: 25px;
|
||||
vertical-align: middle;
|
||||
font-family-icons();
|
||||
font-family-icons('\f111');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -14,20 +14,28 @@
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
padding-top: 10px;
|
||||
|
||||
.header-anchor {
|
||||
// Supported plugins: hexo-renderer-markdown-it hexo-renderer-marked
|
||||
.header-anchor, .headerlink {
|
||||
border-bottom-style: none;
|
||||
color: $grey-light;
|
||||
color: inherit;
|
||||
float: right;
|
||||
font-size: $font-size-small;
|
||||
margin-left: 10px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
&:hover {
|
||||
color: inherit;
|
||||
&::before {
|
||||
font-family-icons('\f0c1');
|
||||
}
|
||||
}
|
||||
|
||||
&:hover .header-anchor {
|
||||
visibility: visible;
|
||||
&:hover {
|
||||
.header-anchor, .headerlink {
|
||||
opacity: .5;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -12,10 +12,9 @@
|
||||
|
||||
&::before {
|
||||
color: unquote(hexo-config('bookmark.color'));
|
||||
content: '\f02e';
|
||||
font-size: 32px;
|
||||
line-height: 1;
|
||||
font-family-icons();
|
||||
font-family-icons('\f02e');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -108,7 +108,10 @@ flex-column() {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
font-family-icons() {
|
||||
font-family-icons($icon = '') {
|
||||
if ($icon) {
|
||||
content: $icon;
|
||||
}
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user