2020-04-21 10:47:36 +08:00
|
|
|
@require '../common/variables.styl'
|
2020-04-28 23:20:17 +08:00
|
|
|
@require '../common/animated.styl'
|
|
|
|
@require '../common/magic-theme.styl'
|
2020-04-21 10:47:36 +08:00
|
|
|
|
|
|
|
.post-toc-wrap {
|
|
|
|
width: 100%;
|
2020-04-29 16:08:43 +08:00
|
|
|
font-size: 0.92em;
|
2020-04-28 23:20:17 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
.post-toc {
|
|
|
|
|
|
|
|
ol {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
2020-04-28 23:20:17 +08:00
|
|
|
padding: 0 2px 12px 10px;
|
2020-04-21 10:47:36 +08:00
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ol {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
transition-property: all;
|
2020-04-29 16:08:43 +08:00
|
|
|
transition();
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
line-height: 1.8;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-04-29 16:08:43 +08:00
|
|
|
white-space: nowrap;
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
.nav-child {
|
|
|
|
display: hexo-config('toc.expand_all') ? block:none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.active > .nav-child {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.active-current > .nav-child {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
> .nav-item {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active > a {
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.active-current > a {
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|