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

70 lines
1.4 KiB
Stylus
Raw Normal View History

2021-02-19 23:33:19 +08:00
.post-list .post-card#archive
2021-07-13 23:16:20 +08:00
.archive-year
color: $color-theme
opacity: .4
font-family: $ff-code
font-weight: 700
line-height: 1.2
padding-bottom: 0.5rem
trans1 opacity
2021-02-19 23:33:19 +08:00
a.post
display: inline-flex
align-items: baseline
margin: 0.25rem 0
2021-07-13 23:16:20 +08:00
color: var(--text-p1)
2021-02-19 23:33:19 +08:00
&:hover
color: $color-hover
time
font-family: $ff-code
margin-right: 1em
2021-03-05 21:37:28 +08:00
font-weight: 700
flex-shrink: 0
2021-07-13 23:16:20 +08:00
opacity .65
&:hover .archive-year
opacity: 1
2021-03-05 21:37:28 +08:00
.post-list .post-card#cats
a.cat
display: flex
&.child
padding-left: 2rem
padding: 0.5rem 1rem
border-radius: $border-block
2021-07-09 23:02:13 +08:00
color: var(--text-p2)
align-items: center
2021-07-13 23:16:20 +08:00
justify-content: space-between
.badge
color: $color-theme
font-weight: 700
font-family: $ff-code
opacity: .5
2021-03-05 21:37:28 +08:00
&:hover
background: var(--block)
2021-07-13 23:16:20 +08:00
color: var(--text-p0)
.badge
opacity: 1
2021-03-05 21:37:28 +08:00
.post-list .post-card#tags
2021-07-13 23:16:20 +08:00
display: flex
flex-wrap: wrap
2021-03-05 21:37:28 +08:00
a.tag
display: inline-flex
align-items: center
position: relative
2021-07-09 23:02:13 +08:00
color: var(--text-p2)
2021-07-26 22:26:46 +08:00
margin: 4px 8px
padding: 4px 8px
border-radius: 64px
2021-03-05 21:37:28 +08:00
.badge
2021-07-13 23:16:20 +08:00
color: $color-theme
2021-07-26 22:26:46 +08:00
margin-left: 4px
2021-03-05 21:37:28 +08:00
font-weight: 700
2021-07-13 23:16:20 +08:00
font-family: $ff-code
2021-07-26 22:26:46 +08:00
opacity: .75
2021-07-13 23:16:20 +08:00
align-self: flex-start
&:hover
color: var(--text-p0)
background: var(--block)
.badge
opacity: 1