taibai_shopping/app/static/css/order_detail.css
2025-07-09 05:22:28 +08:00

108 lines
2.1 KiB
CSS

/* 订单详情页面样式 */
/* 首先,重置所有可能影响的样式 */
.order-detail-card .product-item img {
all: unset !important;
}
/* 然后重新定义我们需要的样式 */
.order-detail-card .product-item img {
width: 80px !important;
height: 80px !important;
max-width: 80px !important;
max-height: 80px !important;
min-width: 80px !important;
min-height: 80px !important;
object-fit: cover !important;
border-radius: 4px !important;
border: 1px solid #ddd !important;
display: block !important;
box-sizing: border-box !important;
}
/* 订单状态时间线 */
.order-status-timeline {
position: relative;
padding-left: 30px;
}
.timeline-item {
position: relative;
padding-bottom: 20px;
}
.timeline-item::before {
content: '';
position: absolute;
left: -30px;
top: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #dee2e6;
}
.timeline-item.completed::before {
background-color: #28a745;
}
.timeline-item.current::before {
background-color: #007bff;
box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}
.timeline-item::after {
content: '';
position: absolute;
left: -24px;
top: 12px;
width: 2px;
height: calc(100% - 12px);
background-color: #dee2e6;
}
.timeline-item:last-child::after {
display: none;
}
.timeline-item.completed::after {
background-color: #28a745;
}
.order-detail-card {
margin-bottom: 20px;
}
.product-item {
border-bottom: 1px solid #f0f0f0;
padding: 15px 0;
}
.product-item:last-child {
border-bottom: none;
}
.info-row {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.total-amount {
color: #e74c3c;
font-weight: bold;
font-size: 1.2em;
}
/* 响应式设计 */
@media (max-width: 768px) {
.order-detail-card .product-item img {
width: 60px !important;
height: 60px !important;
max-width: 60px !important;
max-height: 60px !important;
min-width: 60px !important;
min-height: 60px !important;
}
}