2021-02-19 23:33:19 +08:00
|
|
|
// list
|
|
|
|
.post-list
|
|
|
|
margin: 1rem
|
|
|
|
|
|
|
|
// card
|
|
|
|
.post-list .post-card
|
|
|
|
display: block
|
|
|
|
margin: 1rem 0
|
|
|
|
border-radius: $border-card
|
|
|
|
box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.02)
|
|
|
|
trans1 box-shadow
|
|
|
|
overflow: hidden
|
|
|
|
background: var(--card)
|
|
|
|
.meta.cap
|
2021-02-27 17:15:47 +08:00
|
|
|
display: flex
|
|
|
|
flex-wrap: wrap
|
|
|
|
align-items: center
|
2021-02-19 23:33:19 +08:00
|
|
|
margin-bottom: 0.5rem
|
|
|
|
span+span
|
|
|
|
margin-left: 0.5rem
|
2021-02-27 17:15:47 +08:00
|
|
|
span.pin
|
|
|
|
line-height: 0
|
|
|
|
img
|
|
|
|
object-fit: contain
|
|
|
|
height: 1.5em
|
2021-02-19 23:33:19 +08:00
|
|
|
.post-list .post-card:hover
|
2021-07-29 00:25:37 +08:00
|
|
|
box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.08), 0 2px 8px 0px rgba(0, 0, 0, 0.06), 0 4px 16px 0px rgba(0, 0, 0, 0.04)
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
// common article
|
|
|
|
.post-list article
|
|
|
|
padding: 1rem
|
|
|
|
|
|
|
|
// posts
|
|
|
|
.post-list .post-card
|
|
|
|
.post-cover
|
2021-02-24 22:07:32 +08:00
|
|
|
overflow: hidden
|
|
|
|
margin-left: -1rem
|
|
|
|
margin-top: -1rem
|
|
|
|
margin-right: -1rem
|
|
|
|
img
|
|
|
|
object-fit: cover
|
|
|
|
width: 100%
|
|
|
|
border-radius: 0
|
2021-02-19 23:33:19 +08:00
|
|
|
height: 320px
|
2021-02-24 22:07:32 +08:00
|
|
|
@media screen and (max-width: 900px)
|
|
|
|
height: 280px
|
|
|
|
@media screen and (max-width: $device-tablet)
|
|
|
|
height: 320px
|
|
|
|
@media screen and (max-width: $device-mobile)
|
|
|
|
height: 280px
|
2021-03-05 21:37:28 +08:00
|
|
|
@media screen and (max-width: $device-mobile-425)
|
2021-02-24 22:07:32 +08:00
|
|
|
height: 240px
|
2021-03-05 21:37:28 +08:00
|
|
|
@media screen and (max-width: $device-mobile-375)
|
2021-02-24 22:07:32 +08:00
|
|
|
height: 200px
|
2021-03-04 23:38:41 +08:00
|
|
|
&:not(.lazy)
|
2021-02-24 22:07:32 +08:00
|
|
|
trans1: transform 1s
|
2021-03-01 23:24:57 +08:00
|
|
|
.post-list .post-card.post.photo .post-cover img
|
|
|
|
height: 400px
|
|
|
|
@media screen and (max-width: 900px)
|
|
|
|
height: 320px
|
|
|
|
@media screen and (max-width: $device-tablet)
|
|
|
|
height: 400px
|
|
|
|
@media screen and (max-width: $device-mobile)
|
|
|
|
height: 320px
|
2021-03-05 21:37:28 +08:00
|
|
|
@media screen and (max-width: $device-mobile-425)
|
2021-03-01 23:24:57 +08:00
|
|
|
height: 280px
|
2021-03-05 21:37:28 +08:00
|
|
|
@media screen and (max-width: $device-mobile-375)
|
2021-03-01 23:24:57 +08:00
|
|
|
height: 240px
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
// wiki
|
|
|
|
.post-list .post-card.wiki article
|
|
|
|
display: flex
|
|
|
|
flex-wrap: wrap
|
|
|
|
trans1 box-shadow
|
|
|
|
justify-content: center
|
|
|
|
|
|
|
|
|
2021-02-24 00:32:07 +08:00
|
|
|
.post-list .post-card.wiki article .preview
|
2021-02-19 23:33:19 +08:00
|
|
|
display: flex
|
2021-02-24 00:32:07 +08:00
|
|
|
width: 200px
|
2021-02-19 23:33:19 +08:00
|
|
|
margin: 1rem
|
|
|
|
align-items: center
|
|
|
|
img
|
|
|
|
object-fit: contain
|
2021-03-04 23:38:41 +08:00
|
|
|
&:not(.lazy)
|
|
|
|
trans1: transform 0.75s
|
2021-02-19 23:33:19 +08:00
|
|
|
.post-list .post-card.wiki article .excerpt
|
|
|
|
margin: 1rem
|
|
|
|
min-width: 220px
|
|
|
|
flex: 1
|
|
|
|
overflow: hidden
|
|
|
|
word-wrap: break-word
|