mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
2. Feature: 可設置夜間模式作爲默認樣式 3. Feature: 可設置是否顯示code language名稱 4. Feature: 可設置是否展開或關閉代碼框 5. Feature: 可設置背景圖片/顔色 6. Feature: 可設置是否顯示footer背景 7. Feature: 增加 canvas-nest.js 8. Feature: 頭像可設置效果(轉圈圈) 9. Feature: menu可設置分組 9. Fix: 優化打賞和搜索打開特效 10. Fix: 優化sidebar的打開特效,避免與文章頁特效不同步 11. Fix: 適配**hexo-blog-encrypt**,現在可以顯示toc 12. Fix: 修復設置不顯示評論時,直達評論按鈕沒有消失的bug 13. Fix: 修復post頁底欄,當沒有顯示評論,不顯示TOC,評論和toc都不顯示 這三種狀態下按鈕的bug 14. Fix: 修復代碼框左右滑動時,代碼名字跟著滑動的bug 15. Fix: 其他page頁標題的字體顯示 16. Fix: 修復當設置開啓canvas_ribbons,進入網站會先顯示canvas_ribbons的bug 17. Fix: 完善夜間模式下,字體顯示問題 18. Fix: 修復代碼框 複製 和 代碼名 z-index bug #25 19. Fix: 完善阅读模式
313 lines
6.0 KiB
Stylus
313 lines
6.0 KiB
Stylus
#aside_content
|
|
width: 25%
|
|
|
|
.card_widget
|
|
-webkit-box-shadow: 0 4px 8px 6px rgba(7,17,27,.06)
|
|
box-shadow: 0 4px 8px 6px rgba(7,17,27,.06)
|
|
border-radius: 8px
|
|
-webkit-transition: all .3s
|
|
-moz-transition: all .3s
|
|
-o-transition: all .3s
|
|
-ms-transition: all .3s
|
|
transition: all .3s
|
|
background: #fff
|
|
margin-top: 20px
|
|
overflow: hidden
|
|
|
|
&:hover
|
|
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
|
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
|
|
|
.card-author
|
|
img
|
|
height: 128px
|
|
width: 128px
|
|
display: inline-block
|
|
vertical-align: top
|
|
border-radius: 70px
|
|
transition: all .3s
|
|
|
|
&:hover
|
|
-moz-transform: rotate(540deg)
|
|
-o-transform: rotate(540deg)
|
|
-webkit-transform: rotate(540deg)
|
|
transform: rotate(540deg)
|
|
.author-info
|
|
&__name
|
|
font-size: 1.1rem
|
|
display: block
|
|
margin: -0.1rem auto
|
|
font-weight: 500
|
|
|
|
&__description
|
|
display: block
|
|
margin: -0.1rem auto
|
|
|
|
.data_link
|
|
a
|
|
text-decoration: none
|
|
|
|
.length_num
|
|
font-size: 1rem
|
|
color: #000
|
|
|
|
.headline
|
|
display: block
|
|
font-size: 0.7rem
|
|
// letter-spacing: 1px
|
|
margin-bottom: -21px
|
|
text-transform: uppercase
|
|
color:#4c4948
|
|
|
|
#aside-social-icons
|
|
margin: 0.5rem auto -0.7rem
|
|
width: 15rem
|
|
text-align: center
|
|
|
|
.social-icon
|
|
margin: 0 0.5rem
|
|
color: #4c4948
|
|
/* text-shadow: 0.1rem 0.1rem 0.2rem rgba(0,0,0,0.15) */
|
|
font-size: 1rem
|
|
cursor: pointer
|
|
|
|
i
|
|
transition: all 0.3s
|
|
|
|
&:hover
|
|
-moz-transform: rotate(540deg)
|
|
-o-transform: rotate(540deg)
|
|
-webkit-transform: rotate(540deg)
|
|
transform: rotate(540deg)
|
|
|
|
|
|
a#bookmark-it
|
|
display: inline-block
|
|
margin-top: .2rem
|
|
padding: 0 1rem
|
|
height: 1.6rem
|
|
background: $light-blue
|
|
color: #fff
|
|
text-decoration: none
|
|
line-height: 1.6rem
|
|
position: relative
|
|
text-transform: uppercase
|
|
z-index: 1
|
|
|
|
.toggle_change--primary,.bookmark--primary
|
|
color: $ruby
|
|
|
|
.toggle_change--animated,.bookmark--animated
|
|
transition-property: color
|
|
transition-duration: 1s
|
|
|
|
&:before {
|
|
content: ""
|
|
position: absolute
|
|
top: 0
|
|
left: 0
|
|
right: 0
|
|
bottom: 0
|
|
background: $ruby
|
|
transform: scaleX(0)
|
|
transform-origin: 0 50%
|
|
transition-property: transform
|
|
transition-duration: 0.5s
|
|
transition-timing-function: ease-out
|
|
z-index: -1
|
|
}
|
|
|
|
&:hover {
|
|
color: white
|
|
|
|
&:before {
|
|
transform: scaleX(1)
|
|
transition-timing-function: cubic-bezier(0.45, 1.64, 0.47, 0.66)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.card-content
|
|
padding: 1rem 1.2rem
|
|
|
|
.post_data
|
|
display: flex
|
|
|
|
.data-item
|
|
flex-grow: 1
|
|
align-items: center
|
|
flex-basis: auto
|
|
justify-content: center
|
|
|
|
|
|
.item_headline
|
|
font-size: 0.8rem
|
|
|
|
span
|
|
margin-left: 10px
|
|
|
|
.card-tag-cloud a
|
|
text-decoration: none
|
|
position: relative
|
|
padding-bottom: 0.3rem
|
|
word-break: keep-all
|
|
|
|
&::after
|
|
position: absolute
|
|
bottom: 0
|
|
left: 0
|
|
z-index: -1
|
|
width: 0
|
|
height: 3px
|
|
background-color: lighten($theme-color, 30%)
|
|
content: ""
|
|
transition: all 0.3s ease-in-out
|
|
|
|
&:hover
|
|
color: $light-blue !important
|
|
|
|
&::after
|
|
width: 100%
|
|
|
|
|
|
|
|
.aside_recent_item
|
|
margin: 10px 0 -15px 0
|
|
|
|
.aside_recent_post
|
|
a
|
|
text-decoration: none
|
|
color: #4c4948
|
|
|
|
.aside_recent_post
|
|
margin-bottom: 10px
|
|
width: 100%
|
|
|
|
.aside_post_cover
|
|
height: 70px
|
|
width: 70px
|
|
float: left
|
|
.aside_post_bg
|
|
object-fit: cover
|
|
width: 100%
|
|
height: 100%
|
|
max-width: 100%
|
|
|
|
&:hover
|
|
box-shadow: none
|
|
|
|
#aside_title
|
|
padding-top: 4px
|
|
|
|
.aside_post_meta
|
|
font-size: 0.6rem
|
|
padding-left: 5px
|
|
|
|
.aside_post_title
|
|
line-height: 1rem
|
|
display: -webkit-box
|
|
-webkit-line-clamp: 2
|
|
-webkit-box-orient: vertical
|
|
overflow: hidden
|
|
height: 41px
|
|
padding-left: 5px
|
|
|
|
&:hover
|
|
color: $light-blue !important
|
|
|
|
|
|
|
|
.aside_category_item,.archive-list
|
|
list-style: none
|
|
margin-bottom: -3px
|
|
margin-block-start: 0.2rem
|
|
|
|
.aside_category_item.child
|
|
margin-bottom: -3px
|
|
margin-block-start: 0rem
|
|
|
|
.aside_category_list
|
|
margin-left: -50px
|
|
|
|
.aside_category_list,.archive-list-item
|
|
margin-left: -40px
|
|
padding: 0.2rem 1rem
|
|
|
|
&:hover
|
|
background-color: $light-blue
|
|
color: #363636
|
|
a
|
|
text-decoration: none
|
|
color: #4c4948
|
|
|
|
.aside_category_list_name,.archive-list-link
|
|
white-space: nowrap
|
|
overflow: hidden
|
|
text-overflow: ellipsis
|
|
flex: auto
|
|
|
|
.aside_category_list_link,.archive-list-item
|
|
display: flex
|
|
|
|
|
|
|
|
|
|
.aside_category_list_length,.archive-list-count
|
|
float: right
|
|
|
|
.card-archives
|
|
margin-bottom: 20px
|
|
|
|
.card-webinfo
|
|
.webinfo
|
|
padding: 0.2rem 1rem
|
|
|
|
.webinfo_item
|
|
display: block
|
|
padding: 4px 0 0
|
|
|
|
.webinfo_article_name,
|
|
.webinfo_runtime_name,
|
|
.webinfo_site_uv_name,
|
|
.webinfo_site_name
|
|
display: inline-block
|
|
|
|
.webinfo_article_count,
|
|
.webinfo_runtime_count,
|
|
.webinfo_site_uv_count,
|
|
.webinfo_site_pv_count
|
|
float: right
|
|
display: inline-block
|
|
|
|
|
|
@keyframes announ_animation{
|
|
0%,to{
|
|
color: #4c4948
|
|
}
|
|
50%{
|
|
color: #FF0000
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 900px)
|
|
.layout_page
|
|
flex-direction: column
|
|
|
|
#recent-posts,#aside_content
|
|
width: 100% !important
|
|
|
|
.card_widget
|
|
margin-left: 0
|
|
margin-right: 0
|
|
|
|
|
|
@media screen and (min-width: 900px)
|
|
#aside_content
|
|
.card_widget
|
|
if hexo-config("aside.position") == "right"
|
|
margin-left: 15px
|
|
else
|
|
margin-right: 15px
|