mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
feat: 為文章單獨設置 TOC simple_style 顯示 closed #631 feat: page 頁頂部圖增加黑色遮罩 closed #671 feat: 首頁 pagination 更新 UI fix: 修復使用本地搜索時,搜索插件配置為不搜索文章內容會無法使用搜索 的 bug fix: 修復開啟 photofigcaption 後,導致inlineImg標籤外掛顯示錯亂的 bug fix: 修復 字體過大/過小而導致 部分 ui 偏移的 bug improvement: 主題 css 使用的 rem 改為 em 或 px improvement: 修改没有顶部图下,文章页的标题大小 closed #669 improvement: 代碼優化
84 lines
1.6 KiB
Stylus
84 lines
1.6 KiB
Stylus
#sidebar
|
|
#menu-mask
|
|
position: fixed
|
|
z-index: 102
|
|
display: none
|
|
width: 100%
|
|
height: 100%
|
|
background: alpha($dark-black, .8)
|
|
|
|
#sidebar-menus
|
|
position: fixed
|
|
top: 0
|
|
right: -($sidebar-width)
|
|
z-index: 103
|
|
overflow-x: hidden
|
|
overflow-y: auto
|
|
width: $sidebar-width
|
|
height: 100%
|
|
background: var(--sidebar-bg)
|
|
transition: all .5s
|
|
|
|
&.open
|
|
transform: translate3d(-100%, 0, 0)
|
|
|
|
& > .avatar-img
|
|
margin: 20px auto
|
|
|
|
.site-data
|
|
display: table
|
|
padding: 0 10px
|
|
width: 100%
|
|
table-layout: fixed
|
|
|
|
.data-item
|
|
display: table-cell
|
|
|
|
& > a > div
|
|
@extend .limit-one-line
|
|
|
|
.length-num
|
|
color: var(--text-highlight-color)
|
|
font-size: 1.28em
|
|
|
|
.headline
|
|
color: var(--font-color)
|
|
|
|
hr
|
|
margin: 20px auto
|
|
|
|
.menus_items
|
|
padding: 0 10px 40px
|
|
|
|
.site-page
|
|
@extend .limit-one-line
|
|
position: relative
|
|
display: block
|
|
padding: 6px 30px 6px 22px
|
|
color: var(--font-color)
|
|
font-size: 1.15em
|
|
|
|
&:hover
|
|
background: var(--text-bg-hover)
|
|
|
|
i:first-child
|
|
width: 15%
|
|
text-align: left
|
|
|
|
&.group
|
|
& > i:last-child
|
|
position: absolute
|
|
top: .78em
|
|
right: 18px
|
|
transition: transform .3s
|
|
|
|
&.hide
|
|
& > i:last-child
|
|
transform: rotate(90deg)
|
|
|
|
& + .menus_item_child
|
|
display: none
|
|
|
|
.menus_item_child
|
|
margin: 0
|
|
list-style: none |