🚀 feat: custom layoutWidth

This commit is contained in:
shenyu
2020-03-29 18:18:22 +08:00
parent b4f1246c53
commit 79b014ab4a
7 changed files with 52 additions and 17 deletions

View File

@@ -30,7 +30,6 @@
overflow-x: hidden
-webkit-overflow-scrolling touch
&.on
transform translateX(aside-width)
margin-left 0 !important
.sidebar
@@ -64,11 +63,11 @@
font-size larger
.wrap, .outer
position relative
width 100%
padding-right gutter-width
padding-left gutter-width
margin auto
overflow-x hidden
min-height calc( 100% - 157px )
clearfix()

View File

@@ -1,10 +1,12 @@
.tocbot
position absolute
right: -28rem
top 14rem
left calc((100vw - 70rem) / 2 + 70rem)
font-size 80%
opacity .8
opacity .95
max-width 230px
border-radius 8px
> .toc-list
position relative
overflow hidden
@@ -35,7 +37,8 @@ a.toc-link
.is-position-fixed
position fixed !important
top 0
right aside-width
right 6rem
background-color #fff
// Left line before pseudo element.
.toc-link::before