hexo-theme-stellar/source/css/_layout/pages/archives.styl

74 lines
1.6 KiB
Stylus

.post-list .post-card#archive
.archive-year
color: $color-theme
opacity: .4
font-family: $ff-code
font-weight: 700
line-height: 1.2
padding-bottom: 0.5rem
trans1 opacity
a.post
display: inline-flex
align-items: baseline
margin: 0.25rem 0
color: var(--text-p1)
&:hover
color: $color-hover
time
font-family: $ff-code
margin-right: 1em
font-weight: 700
flex-shrink: 0
opacity .65
&:hover .archive-year
opacity: 1
.post-list .post-card#cats
a.cat
display: flex
&.child
padding-left: 2rem
padding: 0.5rem 1rem
border-radius: $border-block
color: var(--text-p2)
align-items: center
justify-content: space-between
border: 1px solid transparent
.badge
color: $color-theme
font-weight: 700
font-family: $ff-code
opacity: .5
&:hover
background: var(--block)
color: var(--text-p0)
border-color: var(--block-border)
.badge
opacity: 1
.post-list .post-card#tags
display: flex
flex-wrap: wrap
a.tag
display: inline-flex
align-items: center
position: relative
color: var(--text-p2)
padding: 8px
border-radius: $border-block
border: 1px solid transparent
span
margin: 0 0.25rem
.badge
color: $color-theme
font-weight: 700
font-family: $ff-code
opacity: .5
align-self: flex-start
&:hover
color: var(--text-p0)
background: var(--block)
border-color: var(--block-border)
.badge
opacity: 1