mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
chore: modify db-card
This commit is contained in:
parent
3c431770b0
commit
5f38e007d5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user