2021-03-06 20:44:17 +08:00
|
|
|
.related-wrap
|
|
|
|
padding: 2rem 1rem
|
|
|
|
&:empty
|
|
|
|
display: none
|
2021-06-26 12:40:13 +08:00
|
|
|
section.header
|
|
|
|
display: flex
|
|
|
|
justify-content: space-between
|
|
|
|
align-items: center
|
|
|
|
>span.title
|
|
|
|
padding: 0.25rem 0
|
|
|
|
section.footer
|
|
|
|
margin-top: 1rem
|
|
|
|
|
|
|
|
a.more
|
|
|
|
padding: 0.25rem 0.5rem
|
2021-07-03 23:28:27 +08:00
|
|
|
|
2021-06-26 12:40:13 +08:00
|
|
|
border-radius: $border-block
|
|
|
|
color: var(--text-p1)
|
|
|
|
|
2021-03-06 20:44:17 +08:00
|
|
|
|
2021-02-25 20:49:43 +08:00
|
|
|
.related-wrap#related-posts
|
2021-02-19 23:33:19 +08:00
|
|
|
.related-posts
|
|
|
|
width: 100%
|
2021-03-05 21:37:28 +08:00
|
|
|
margin: 1rem 0
|
2021-02-25 13:12:04 +08:00
|
|
|
border-radius: $border-block
|
2022-10-23 16:56:27 +08:00
|
|
|
background: var(--block)
|
|
|
|
overflow: hidden
|
|
|
|
border: 1px solid var(--block-border)
|
|
|
|
.item
|
2021-02-19 23:33:19 +08:00
|
|
|
line-height: 1.2
|
2022-10-23 16:56:27 +08:00
|
|
|
display: block
|
|
|
|
padding: 1rem
|
2021-02-19 23:33:19 +08:00
|
|
|
.title
|
|
|
|
color: var(--text-p1)
|
|
|
|
font-weight: 500
|
2022-10-23 16:56:27 +08:00
|
|
|
font-size: 1rem
|
2021-02-19 23:33:19 +08:00
|
|
|
display: -webkit-box
|
|
|
|
-webkit-box-orient: vertical
|
|
|
|
overflow: hidden
|
|
|
|
-webkit-line-clamp: 2
|
|
|
|
.excerpt
|
2022-10-23 16:56:27 +08:00
|
|
|
color: var(--text-p3)
|
|
|
|
font-size: $fs-12
|
|
|
|
margin-top: 0.5rem
|
2021-02-19 23:33:19 +08:00
|
|
|
display: -webkit-box
|
|
|
|
-webkit-box-orient: vertical
|
|
|
|
overflow: hidden
|
|
|
|
-webkit-line-clamp: 3
|
|
|
|
&:hover
|
2022-10-23 16:56:27 +08:00
|
|
|
background: var(--block-hover)
|
|
|
|
.item+.item
|
|
|
|
border-top: 1px dashed var(--block-border)
|
2021-03-06 20:44:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
.related-wrap#read-next
|
|
|
|
.body
|
2021-06-26 12:40:13 +08:00
|
|
|
margin-top: 1rem
|
2022-10-23 16:56:27 +08:00
|
|
|
display: grid
|
|
|
|
grid-gap: 16px
|
|
|
|
grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
|
2021-06-26 12:40:13 +08:00
|
|
|
>a
|
|
|
|
display: flex
|
2022-10-23 16:56:27 +08:00
|
|
|
flex-direction: column
|
2021-06-26 12:40:13 +08:00
|
|
|
margin: 0
|
2021-03-06 20:44:17 +08:00
|
|
|
line-height: 1.2
|
2021-06-26 12:40:13 +08:00
|
|
|
padding: 0.75rem 0.5rem
|
2022-10-23 16:56:27 +08:00
|
|
|
color: var(--text-p1)
|
|
|
|
font-size: 1rem
|
|
|
|
background: var(--card)
|
|
|
|
border-radius: $border-block
|
|
|
|
box-shadow: $boxshadow-card
|
|
|
|
trans2: box-shadow transform
|
|
|
|
&:last-child
|
|
|
|
text-align: right
|
2021-06-26 12:40:13 +08:00
|
|
|
.note
|
|
|
|
flex-shrink: 0
|
2022-10-23 16:56:27 +08:00
|
|
|
margin-bottom: 4px
|
2021-06-26 12:40:13 +08:00
|
|
|
font-size: $fs-12
|
2021-11-19 23:50:34 +08:00
|
|
|
color: var(--text-p4)
|
2021-03-06 20:44:17 +08:00
|
|
|
font-weight: 500
|
2021-06-26 12:40:13 +08:00
|
|
|
&:hover
|
|
|
|
color: $color-hover !important
|
2022-10-23 16:56:27 +08:00
|
|
|
box-shadow: $boxshadow-card-float
|
|
|
|
transform: translateY(-1px)
|
|
|
|
.wiki+.related-wrap#read-next .body>a
|
|
|
|
font-size: $fs-h3
|
|
|
|
&:last-child
|
|
|
|
color: var(--text-p4)
|
2021-03-06 20:44:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
.related-wrap#comments
|
2021-07-13 23:45:34 +08:00
|
|
|
div.cmt-title
|
|
|
|
p
|
|
|
|
margin: 0
|
|
|
|
a
|
|
|
|
color: inherit
|
|
|
|
text-decoration: underline
|
|
|
|
&:hover
|
|
|
|
color: $color-hover
|
2022-10-05 23:00:52 +08:00
|
|
|
&:after
|
|
|
|
display: none
|
2021-03-06 20:44:17 +08:00
|
|
|
div.cmt-body
|
|
|
|
min-height: 150px
|
|
|
|
position: relative
|
|
|
|
svg.loading
|
|
|
|
top: 60px
|