hexo-theme-butterfly/source/css/_layout/sidebar.styl
Jerry a33e7e1d89 1. 修復gitalk報path.startsWith is not a function的bug #66
2. 修復在屏幕縮放字體大小而導致menu變爲sidebar模式的bug #64
3. just-gallery增加上下邊距
2019-11-07 01:23:29 +08:00

62 lines
1.1 KiB
Stylus

#sidebar
position: fixed
top: 0
left: -300px
z-index: 10
overflow-y: auto
padding: 1rem 0 2rem 0.5rem
width: $sidebar-width
height: 100%
background: $sidebar-background
box-shadow: -0.25rem 0 0.25rem rgba(232, 237, 250, 0.6) inset
opacity: 0.9
will-change: transform
transition: ease-in-out .2s
.sidebar-toc
ol,
li
list-style: none
ol
margin-top: 0.2rem
padding-left: 0.4rem
&__title
padding-right: 0.5rem
text-align: center
font-size: unit(0.9 * $rem, "px")
.toc-link
display: block
padding-left: 0.2rem
border-right: 3px solid transparent
text-decoration: none
transition: all 0.2s ease-in-out
&.active
border-right-color: darken($cyan, 20%)
background: $cyan
color: $white
&__progress
position: relative
margin-top: -0.3rem
padding-left: 0.6rem
color: $cyan
.progress-notice
margin-right: 0.4rem
.progress-num
display: inline-block
min-width: 0.9rem
&-bar
width: 0
height: 1px
background: $cyan