hexo-theme-ayer/source-src/css/_partial/tocbot.styl

76 lines
1.2 KiB
Stylus
Raw Permalink Normal View History

2019-12-03 11:37:44 +00:00
.tocbot
2020-05-27 12:40:52 +00:00
padding 20px
2020-01-29 12:36:48 +00:00
position absolute
2020-05-27 12:40:52 +00:00
right -28rem
2019-12-03 11:37:44 +00:00
top 14rem
font-size 80%
2020-03-29 10:18:22 +00:00
opacity .95
2020-05-27 12:40:52 +00:00
max-width 255px
2020-03-29 10:18:22 +00:00
border-radius 8px
2021-06-28 06:27:23 +00:00
>.toc-list
2019-12-03 11:37:44 +00:00
position relative
2021-06-28 06:27:23 +00:00
overflow-x hidden
overflow-y scroll
max-height 70vh
>.toc-list::-webkit-scrollbar
width 4px
  >.toc-list::-webkit-scrollbar-thumb
border-radius 10px
-webkit-box-shadow inset 0 0 5px rgba(0,0,0,0.2)
background rgba(0,0,0,0.2)
  >.toc-list::-webkit-scrollbar-track
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2)
border-radius: 0
background: rgba(0,0,0,0.1)
2019-12-03 11:37:44 +00:00
.toc-list
list-unstyled()
padding-left 1rem
a.toc-link
height 100%
color sea-dark
text-decoration none
font-size 115%
.is-collapsible
max-height 1000px
overflow hidden
transition all 300ms ease-in-out
.is-collapsed
max-height 0
.is-position-fixed
position fixed !important
top 0
2020-03-29 10:18:22 +00:00
right 6rem
background-color #fff
2020-04-15 14:17:11 +00:00
z-index 996
2019-12-03 11:37:44 +00:00
// Left line before pseudo element.
.toc-link::before
background-color water
content ' '
display inline-block
height inherit
left 0
margin-top -1px
position absolute
width 2px
2020-01-29 12:36:48 +00:00
.is-active-link::before
background-color sea-blue
.is-active-link
font-weight 700