mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
63 lines
1.1 KiB
Stylus
63 lines
1.1 KiB
Stylus
#page
|
|
.category-lists
|
|
padding: 1rem 0 1.5rem
|
|
|
|
+maxWidth768()
|
|
padding: 0
|
|
|
|
.category-title
|
|
font-size: 2.57em
|
|
|
|
+maxWidth768()
|
|
font-size: 2em
|
|
|
|
.category-list
|
|
a
|
|
color: var(--font-color)
|
|
|
|
&:hover
|
|
color: $text-hover
|
|
|
|
.category-list-count
|
|
margin-left: .4rem
|
|
color: $theme-meta-color
|
|
|
|
&:before
|
|
content: '('
|
|
|
|
&:after
|
|
content: ')'
|
|
|
|
ul
|
|
margin-top: .4rem
|
|
padding: 0 0 0 1rem
|
|
list-style: none
|
|
counter-reset: li
|
|
|
|
ul
|
|
padding-left: .2rem
|
|
|
|
li
|
|
position: relative
|
|
margin: .3rem 0
|
|
padding: .12em .4em .12em 1.4em
|
|
|
|
&:before
|
|
position: absolute
|
|
left: 0
|
|
cursor: pointer
|
|
transition: all .3s ease-out
|
|
$w = .43em
|
|
top: .7em
|
|
width: w = $w
|
|
height: h = w
|
|
border: .5 * w solid $light-blue
|
|
border-radius: w
|
|
background: transparent
|
|
content: ''
|
|
// line-height: h
|
|
|
|
&:hover
|
|
&:before
|
|
border-color: $pseudo-hover
|