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

63 lines
1.4 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
2024-01-17 22:57:52 +08:00
.widget-wrapper.toc.multi
2024-01-17 23:39:14 +08:00
// .widget-header
2024-01-17 22:57:52 +08:00
// color: $color-theme
// filter: brightness(75%)
2024-01-17 23:39:14 +08:00
.widget-body+.widget-header
2024-01-17 22:57:52 +08:00
margin-top: 28px
2021-07-04 02:03:14 +08:00
//
2022-11-23 21:54:21 +08:00
.widget-wrapper.toc.multi .doc-tree
2024-01-31 22:45:07 +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)
2024-01-20 13:35:43 +08:00
padding: 0 16px
2024-01-17 00:27:48 +08:00
display: flex
2024-01-20 13:35:43 +08:00
min-height: 32px
2024-01-17 00:27:48 +08:00
justify-content: space-between
align-items: center
font-size: $fs-14
2021-07-03 22:33:52 +08:00
position: relative
2024-01-17 00:27:48 +08:00
trans1 background
.toc-text
txt-ellipsis()
2024-01-20 13:35:43 +08:00
svg,img
2024-01-17 00:27:48 +08:00
flex-shrink: 0
2024-01-20 13:35:43 +08:00
width: 1em
height: 1em
transform: scale(1.2)
2021-07-03 22:33:52 +08:00
&:after
position: absolute
right: .5rem
2024-01-20 13:35:43 +08:00
&:only-child
&.active
background: var(--alpha50)
&:hover
2024-01-17 00:27:48 +08:00
background: var(--alpha100)
2021-07-03 22:33:52 +08:00
&:hover
2024-01-20 13:35:43 +08:00
background: var(--alpha100)
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)
2024-01-31 22:45:07 +08:00
border-bottom-left-radius: $border-bar
border-bottom-right-radius: $border-bar
2021-07-03 23:09:52 +08:00
a.toc-link:before
2024-01-21 22:49:17 +08:00
left: -7px
2021-07-03 23:09:52 +08:00
width: 4px
2024-01-21 22:49:17 +08:00
background: var(--text-p2)
2021-07-03 22:33:52 +08:00
a.toc-link:hover
2024-01-17 00:27:48 +08:00
background: var(--alpha100)