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 {
|
2022-10-11 16:58:06 +08:00
|
|
|
background var(--toc-scrollbar-color)
|
2022-10-11 12:37:06 +08:00
|
|
|
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
|
2022-10-21 10:36:35 +08:00
|
|
|
padding 0 0.1rem 0.8rem 0.6rem
|
2022-09-30 10:51:42 +08:00
|
|
|
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-10-21 10:36:35 +08:00
|
|
|
margin-bottom 0.2rem
|
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 {
|
2022-10-21 10:36:35 +08:00
|
|
|
color var(--toc-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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|