默认隐藏头像光环
This commit is contained in:
parent
799ad9646e
commit
413d117cd6
|
@ -2,7 +2,7 @@
|
||||||
<% if (md_text(theme.sidebar.logo.avatar)) { %>
|
<% if (md_text(theme.sidebar.logo.avatar)) { %>
|
||||||
<a class='avatar' href='<%- url_for(md_link(theme.sidebar.logo.avatar) || "/") %>'>
|
<a class='avatar' href='<%- url_for(md_link(theme.sidebar.logo.avatar) || "/") %>'>
|
||||||
<% if (theme.style.animated_avatar.animate) { %>
|
<% if (theme.style.animated_avatar.animate) { %>
|
||||||
<img no-lazy class='bg' src='<%- theme.style.animated_avatar.background %>'/>
|
<img no-lazy class='bg' style='opacity:0' src='<%- theme.style.animated_avatar.background %>'/>
|
||||||
<% } %>
|
<% } %>
|
||||||
<img no-lazy class='avatar' src='<%- md_text(theme.sidebar.logo.avatar) %>'/>
|
<img no-lazy class='avatar' src='<%- md_text(theme.sidebar.logo.avatar) %>'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -34,9 +34,9 @@
|
||||||
border-radius: @width
|
border-radius: @width
|
||||||
if hexo-config('style.animated_avatar.animate')
|
if hexo-config('style.animated_avatar.animate')
|
||||||
img.bg
|
img.bg
|
||||||
trans1 opacity
|
trans1: opacity
|
||||||
position: absolute
|
position: absolute
|
||||||
opacity: 0
|
opacity: 0 !important
|
||||||
z-index: -1
|
z-index: -1
|
||||||
@keyframes spin
|
@keyframes spin
|
||||||
from
|
from
|
||||||
|
@ -45,13 +45,13 @@
|
||||||
transform:rotate(360deg)
|
transform:rotate(360deg)
|
||||||
if hexo-config('style.animated_avatar.animate') == 'always'
|
if hexo-config('style.animated_avatar.animate') == 'always'
|
||||||
img.bg
|
img.bg
|
||||||
opacity: 1
|
opacity: 1 !important
|
||||||
animation: spin infinite 1s
|
animation: spin infinite 1s
|
||||||
animation-timing-function: linear
|
animation-timing-function: linear
|
||||||
if hexo-config('style.animated_avatar.animate') == 'auto'
|
if hexo-config('style.animated_avatar.animate') == 'auto'
|
||||||
&:hover
|
&:hover
|
||||||
img.bg
|
img.bg
|
||||||
opacity: 1
|
opacity: 1 !important
|
||||||
animation: spin infinite 1s
|
animation: spin infinite 1s
|
||||||
animation-timing-function: linear
|
animation-timing-function: linear
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue