mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
fix: 修復點擊toc後,滾動完toc的highlight在點擊的上一個元素 fix: 修復打賞按鈕Hover的bug close #473 improvement: 友情鏈接界面增加title顯示(top_img設為false時) improvement: 優化toc顯示,當向上滾動時,導航欄不會遮擋 toc close #472 improvement: 升級facebook comment sdk版本
78 lines
1.7 KiB
Stylus
78 lines
1.7 KiB
Stylus
#article-container
|
|
.flink
|
|
.flink-desc
|
|
margin: .2rem 0 .5rem
|
|
|
|
.flink-list
|
|
overflow: auto
|
|
padding: 10px 10px 0
|
|
text-align: center
|
|
|
|
& > .flink-list-item
|
|
position: relative
|
|
float: left
|
|
overflow: hidden
|
|
margin: 15px 7px
|
|
width: calc(100% / 3 - 15px)
|
|
height: 90px
|
|
border-radius: 8px
|
|
line-height: 17px
|
|
-webkit-transform: translateZ(0)
|
|
|
|
+maxWidth1024()
|
|
width: calc(50% - 15px) !important
|
|
|
|
+maxWidth600()
|
|
width: calc(100% - 15px) !important
|
|
|
|
&:hover
|
|
img
|
|
transform: rotate(360deg)
|
|
|
|
&:before
|
|
position: absolute
|
|
top: 0
|
|
right: 0
|
|
bottom: 0
|
|
left: 0
|
|
z-index: -1
|
|
background: var(--text-bg-hover)
|
|
content: ''
|
|
transition: transform .3s ease-out
|
|
transform: scale(0)
|
|
|
|
&:hover:before,
|
|
&:focus:before,
|
|
&:active:before
|
|
transform: scale(1)
|
|
|
|
a
|
|
color: var(--font-color)
|
|
text-decoration: none
|
|
|
|
img
|
|
float: left
|
|
margin: 15px 10px
|
|
width: 60px
|
|
height: 60px
|
|
border-radius: 35px
|
|
transition: all .3s
|
|
|
|
.img-alt
|
|
display: none
|
|
|
|
.flink-item-name
|
|
@extend .limit-one-line
|
|
display: block
|
|
padding: 16px 10px 0 0
|
|
height: 40px
|
|
font-weight: bold
|
|
font-size: 1.43em
|
|
|
|
.flink-item-desc
|
|
@extend .limit-one-line
|
|
display: block
|
|
padding: 16px 10px 16px 0
|
|
height: 50px
|
|
font-size: .93em
|