hexo-theme-stellar/source/css/_layout/widgets/toc_wiki.styl

53 lines
1.1 KiB
Stylus
Raw Normal View History

2022-11-23 21:54:21 +08:00
.widget-wrapper.toc
2022-11-19 16:08:50 +08:00
.widget-header
2021-07-25 22:47:18 +08:00
margin-top: 1rem
2022-11-23 21:54:21 +08:00
.widget-wrapper.toc.multi .widget-header
2021-07-26 22:26:46 +08:00
color: var(--text-p1)
font-size: $fs-14
2021-07-03 22:33:52 +08:00
2021-07-04 02:03:14 +08:00
//
2022-11-23 21:54:21 +08:00
.widget-wrapper.toc.multi .doc-tree
2021-07-26 22:26:46 +08:00
border-radius: $border-block
2021-07-03 22:33:52 +08:00
background: var(--block)
overflow: hidden
border: 1px solid var(--block-border)
a.doc-tree-link
color: var(--text-p2)
padding: 0.5rem
display: block
font-size: $fs-12
font-weight: 500
position: relative
&:after
position: absolute
right: .5rem
&.active
color: var(--text-p1)
2021-07-04 20:21:31 +08:00
&:only-child
background: var(--card)
2021-07-03 22:33:52 +08:00
&:hover
background: var(--block-hover)
&:after
content: '+'
//
2022-11-23 21:54:21 +08:00
.widget-wrapper.toc.multi .doc-tree.active
2021-07-03 22:33:52 +08:00
a.doc-tree-link
background: var(--block)
2021-07-04 02:03:14 +08:00
font-weight: 700
&:not(:only-child)
border-bottom: 1px solid var(--block-border)
2021-07-04 23:54:09 +08:00
&:hover:after
content: none
2021-07-03 22:33:52 +08:00
>.toc
padding: 4px
background: var(--card)
2021-07-03 23:09:52 +08:00
a.toc-link:before
left: -2px
width: 4px
2021-07-03 22:33:52 +08:00
a.toc-link:hover
background: var(--block)