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

50 lines
1.1 KiB
Stylus
Raw Normal View History

2024-01-17 00:27:48 +08:00
.doc-tree+.doc-tree
margin-top: 2px
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
2022-12-15 22:42:48 +08:00
border-radius: $border-bar
2021-07-03 22:33:52 +08:00
overflow: hidden
a.doc-tree-link
2024-01-17 00:27:48 +08:00
color: var(--text-p1)
padding: 0.5rem 16px
display: flex
justify-content: space-between
align-items: center
font-size: $fs-14
2021-07-03 22:33:52 +08:00
font-weight: 500
position: relative
2024-01-17 00:27:48 +08:00
trans1 background
.toc-text
txt-ellipsis()
.icon
flex-shrink: 0
2021-07-03 22:33:52 +08:00
&:after
position: absolute
right: .5rem
&.active
2021-07-04 20:21:31 +08:00
&:only-child
2024-01-17 00:27:48 +08:00
background: var(--alpha100)
2021-07-03 22:33:52 +08:00
&:hover
2024-01-17 00:27:48 +08:00
background: var(--alpha50)
2021-07-03 22:33:52 +08:00
//
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
2024-01-17 00:27:48 +08:00
background: var(--alpha100)
font-weight: 500
2021-07-04 23:54:09 +08:00
&:hover:after
content: none
2021-07-03 22:33:52 +08:00
>.toc
2024-01-17 00:27:48 +08:00
padding: 4px 10px
border: 1px solid var(--alpha50)
background: var(--alpha20)
border-bottom-left-radius: $border-bar
border-bottom-right-radius: $border-bar
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
2024-01-17 00:27:48 +08:00
background: var(--alpha100)