fix: 修復上個版本導致的代碼塊部分css沒有生成的bugs

fix: 修復valine背景圖片再次出現時,由左到右移動的bugs
improvement: 調大sidebar的寬度
improvement: html結構調整,mobile-sidebar改為sidebar/search調整
remove: 刪除多餘的css和pug
This commit is contained in:
Jerry
2020-10-20 21:05:58 +08:00
Unverified
parent 71b15d86c1
commit c54f23bc14
28 changed files with 364 additions and 361 deletions

View File

@@ -65,7 +65,7 @@
color: var(--font-color)
font-size: 1em
.length_num
.length-num
margin-top: -.3rem
color: var(--text-highlight-color)
font-size: 1.4em
@@ -271,7 +271,7 @@
bottom: 30px
z-index: 100
display: none
width: 300px
width: $toc-mobile-width
transform-origin: right bottom
animation: toc-open .3s
@@ -303,7 +303,7 @@
&.active
border-left-color: darken($theme-toc-color, 20%)
background: $theme-toc-color
color: $sidebar-active-color
color: $toc-active-color
&:before
position: absolute

View File

@@ -1,5 +1,5 @@
#mobile-sidebar
#menu_mask
#sidebar
#menu-mask
position: fixed
z-index: 102
display: none
@@ -7,14 +7,14 @@
height: 100%
background: alpha($dark-black, .8)
#mobile-sidebar-menus
#sidebar-menus
position: fixed
top: 0
right: -250px
right: -($sidebar-width)
z-index: 103
overflow-x: hidden
overflow-y: auto
width: 250px
width: $sidebar-width
height: 100%
background: var(--sidebar-bg)
transition: all .5s
@@ -22,7 +22,7 @@
&.open
transform: translate3d(-100%, 0, 0)
& > .mobile_author_icon
& > .author-avatar
padding: 1.3rem 1.5rem 0
text-align: center
@@ -35,20 +35,20 @@
&:hover
transform: rotate(360deg)
.mobile_post_data
.site-data
display: table
padding: .6rem .5rem 0
width: 100%
table-layout: fixed
.mobile_data_item
.data-item
display: table-cell
.mobile_data_link
.data-item-link
& > a > div
@extend .limit-one-line
.length_num
.length-num
color: var(--text-highlight-color)
font-size: 1.28em
@@ -71,11 +71,11 @@
cursor: pointer
i:first-child
width: 30%
width: 25%
text-align: left
span
width: 70%
width: 75%
&:hover
color: $light-blue

View File

@@ -14,7 +14,7 @@
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
&:focus
background: none
background-image: none
.vimg
transition: all .3s