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

40 lines
818 B
Stylus
Raw Normal View History

2024-01-17 00:27:48 +08:00
.widget-wrapper.post-card .widget-body
max-width: 100%
margin: 1rem 0
.item+.item
margin-top: 8px
.item
line-height: 1.2
background: var(--alpha50)
padding: 10px 16px
border-radius: $border-card
display: block
border-left: 0
box-sizing: border-box
.title
color: var(--text-p1)
font-weight: 500
font-size: 1rem
display: -webkit-box
-webkit-box-orient: vertical
overflow: hidden
-webkit-line-clamp: 1
2022-11-23 23:17:24 +08:00
font-weight: 700
font-size: $fs-14
.excerpt
2024-01-17 00:27:48 +08:00
color: var(--text-p3)
font-size: $fs-12
margin-top: 0.5rem
display: -webkit-box
-webkit-box-orient: vertical
overflow: hidden
-webkit-line-clamp: 2
.item
trans1 background
.item.active
background: var(--card)
.item:hover
background: var(--card)