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

40 lines
824 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
2024-01-17 22:57:52 +08:00
background: var(--alpha20)
2024-01-17 00:27:48 +08:00
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
2024-01-17 22:57:52 +08:00
background: var(--alpha50)
2024-01-17 00:27:48 +08:00
.item:hover
2024-01-17 22:57:52 +08:00
background: var(--alpha50)