2020-04-21 10:47:36 +08:00
|
|
|
.post-toc-wrap {
|
2022-10-11 12:37:06 +08:00
|
|
|
position relative
|
2022-09-30 10:51:42 +08:00
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
2022-10-11 12:37:06 +08:00
|
|
|
height 100%
|
|
|
|
overflow-y auto
|
2022-10-11 12:42:11 +08:00
|
|
|
font-size 0.92rem
|
2022-10-11 12:37:06 +08:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background rgba(100, 100, 100, 0.1)
|
|
|
|
border-radius 0.3rem
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background transparent
|
|
|
|
}
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
.post-toc {
|
|
|
|
|
|
|
|
ol {
|
2022-09-30 10:51:42 +08:00
|
|
|
margin 0
|
|
|
|
padding 0 2px 12px 10px
|
|
|
|
text-align left
|
|
|
|
list-style none
|
2020-04-21 10:47:36 +08:00
|
|
|
|
|
|
|
&:last-child {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-bottom 0
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> ol {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-left 0
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-09-30 10:51:42 +08:00
|
|
|
transition-property all
|
|
|
|
transition()
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
.nav-item {
|
2022-09-30 10:51:42 +08:00
|
|
|
overflow hidden
|
|
|
|
line-height 1.8
|
|
|
|
white-space nowrap
|
|
|
|
text-overflow ellipsis
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
.nav {
|
|
|
|
.nav-child {
|
2022-10-11 12:37:06 +08:00
|
|
|
display hexo-config('toc.expand_all') ? block:none
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.active > .nav-child {
|
2022-09-30 10:51:42 +08:00
|
|
|
display block
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.active-current > .nav-child {
|
2022-09-30 10:51:42 +08:00
|
|
|
display block
|
2020-04-21 10:47:36 +08:00
|
|
|
|
|
|
|
> .nav-item {
|
2022-09-30 10:51:42 +08:00
|
|
|
display block
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
.nav-number
|
|
|
|
.nav-text {
|
|
|
|
color var(--default-text-color)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
.active > a {
|
2022-09-30 10:51:42 +08:00
|
|
|
.nav-number
|
|
|
|
.nav-text {
|
|
|
|
color var(--primary-color)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.active-current > a {
|
2022-09-30 10:51:42 +08:00
|
|
|
.nav-number
|
|
|
|
.nav-text {
|
|
|
|
color var(--primary-color)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|