@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
82 lines (81 loc) • 1.75 kB
CSS
/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-card {
width: 100%;
display: flex;
background-color: inherit;
border-radius: var(--nutui-card-border-radius, 4px);
}
.nut-card-left {
width: 120px;
height: 120px;
flex-shrink: 0;
}
.nut-card-left > img {
display: block;
width: 100%;
height: 100%;
border-radius: var(--nutui-card-border-radius, 4px);
}
.nut-card-right {
flex: 1;
padding: 0 10px 8px;
}
.nut-card-right-title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-all;
line-height: 1.5;
font-size: 14px;
color: var(--nutui-color-title);
}
.nut-card-right-price {
display: flex;
align-items: center;
height: 18px;
line-height: 18px;
margin-top: 9px;
}
.nut-card-right-price-origin.nut-price {
margin-left: 2px;
}
.nut-card-right-price-origin.nut-price .nut-price-symbol,
.nut-card-right-price-origin.nut-price .nut-price-integer,
.nut-card-right-price-origin.nut-price .nut-price-decimal {
color: #d2a448;
}
.nut-card-right-other {
display: flex;
align-items: center;
padding: 5px 0 2px;
}
.nut-card-right-other .nut-tag {
padding: 0 2px;
margin-right: 5px;
font-size: var(--nutui-font-text-xs);
}
.nut-card-right-shop {
display: flex;
justify-content: space-between;
align-items: center;
}
.nut-card-right-shop-name {
line-height: 1.5;
color: var(--nutui-color-text);
font-size: 12px;
padding-top: 4px;
}
[dir=rtl] .nut-card-right-price-origin.nut-price,
.nut-rtl .nut-card-right-price-origin.nut-price {
margin-left: 0;
margin-right: 2px;
}
[dir=rtl] .nut-card-right-other .nut-tag,
.nut-rtl .nut-card-right-other .nut-tag {
margin-right: 0;
margin-left: 5px;
}