style(points): 优化积分商品卡片排版
This commit is contained in:
@@ -456,7 +456,7 @@ function sourceLabel(source: string) {
|
||||
|
||||
.product-card {
|
||||
display: grid;
|
||||
grid-template-rows: 150px 1fr auto;
|
||||
grid-template-rows: 168px 1fr auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -478,25 +478,45 @@ function sourceLabel(source: string) {
|
||||
.product-copy {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 7px;
|
||||
padding: 15px;
|
||||
gap: 9px;
|
||||
padding: 17px 17px 15px;
|
||||
}
|
||||
|
||||
.product-copy > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-self: start;
|
||||
min-height: 20px;
|
||||
padding: 0 8px;
|
||||
border-radius: 999px;
|
||||
background: #fff3eb;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.product-copy h2,
|
||||
.ledger-section h2 {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.product-copy h2 {
|
||||
color: #20242a;
|
||||
font-size: 18px;
|
||||
line-height: 1.4;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.product-copy p {
|
||||
margin: 0;
|
||||
color: #6b7280;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.product-copy small {
|
||||
display: block;
|
||||
margin-top: 1px;
|
||||
color: #9ca3af;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.product-action {
|
||||
@@ -504,7 +524,7 @@ function sourceLabel(source: string) {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 13px 15px;
|
||||
padding: 14px 17px;
|
||||
border-top: 1px solid #f0f1f4;
|
||||
}
|
||||
|
||||
@@ -864,15 +884,21 @@ function sourceLabel(source: string) {
|
||||
|
||||
.is-mobile .product-cover {
|
||||
grid-row: 1 / 3;
|
||||
min-height: 144px;
|
||||
min-height: 152px;
|
||||
}
|
||||
|
||||
.is-mobile .product-copy {
|
||||
padding: 12px;
|
||||
gap: 7px;
|
||||
padding: 14px;
|
||||
border-left: 1px solid #f3f4f6;
|
||||
}
|
||||
|
||||
.is-mobile .product-copy h2 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.is-mobile .product-action {
|
||||
padding: 10px 12px;
|
||||
padding: 11px 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
|
||||
Reference in New Issue
Block a user