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