This commit is contained in:
xaoxuu 2021-07-03 23:09:52 +08:00
parent 3aabeff065
commit 7166bcd83e
2 changed files with 16 additions and 2 deletions

View File

@ -42,7 +42,19 @@
line-height: 1.2 line-height: 1.2
border-radius: 4px border-radius: 4px
position: relative position: relative
&:before
content: ''
position: absolute
left: -6px
top: 'calc(50% - %s)' % 6px
bottom: 'calc(50% - %s)' % 6px
width: 2px
border-radius: 2px
background: $color-theme
visibility: hidden
&:hover &:hover
background: var(--block-hover) background: var(--block-hover)
&.active &.active
color: var(--theme-highlight) !important color: var(--theme-highlight) !important
&:before
visibility: visible

View File

@ -36,10 +36,12 @@
&:hover &:hover
background: var(--block-hover) background: var(--block-hover)
&:after &:after
content: '' content: none
>.toc >.toc
padding: 4px padding: 4px
background: var(--card) background: var(--card)
a.toc-link:before
left: -2px
width: 4px
a.toc-link:hover a.toc-link:hover
background: var(--block) background: var(--block)