chore: modify db-card

This commit is contained in:
aka 2023-11-12 22:50:59 +08:00
parent 3c431770b0
commit 5f38e007d5

View File

@ -4,9 +4,9 @@
.db-card { .db-card {
margin: 2rem 3rem; margin: 2rem 3rem;
background: #33669930; background: var(--body-background);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.25); box-shadow: var(--shadow-l1);
} }
.db-card-subject { .db-card-subject {
@ -16,9 +16,6 @@
padding: 12px; padding: 12px;
position: relative position: relative
} }
.dark-mode .db-card {
background: #252627
}
.db-card-content { .db-card-content {
flex: 1 1 auto flex: 1 1 auto
@ -44,7 +41,7 @@
.db-card-comment { .db-card-comment {
font-size: 14px; font-size: 14px;
overflow: hidden; overflow: hidden;
max-height: 4rem max-height: 7rem
} }
.db-card-cate { .db-card-cate {
@ -61,7 +58,7 @@
.db-card-post img { .db-card-post img {
width: 96px!important; width: 96px!important;
height: 96px!important; height: 128px!important;
border-radius: 4px; border-radius: 4px;
-o-object-fit: cover; -o-object-fit: cover;
object-fit: cover object-fit: cover