123 lines
2.2 KiB
Plaintext
123 lines
2.2 KiB
Plaintext
.cart-container {
|
|
padding: 20px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-bottom: 60px; /* 为底部结算栏留出空间 */
|
|
}
|
|
|
|
.cart-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.item-checkbox {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.item-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-right: 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.item-details {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.item-name {
|
|
font-size: 14px;
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.item-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.item-price {
|
|
font-size: 16px;
|
|
color: red;
|
|
}
|
|
|
|
.quantity-control {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.quantity-control button {
|
|
width: 30px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
.quantity-control button:active {
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
.checkout-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
padding: 10px 20px;
|
|
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
z-index: 100;
|
|
box-sizing: border-box; /* 确保内边距不会影响宽度 */
|
|
}
|
|
|
|
.select-all {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.select-all-checkbox {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.total-and-checkout {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.total-and-checkout text {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.checkout-bar button {
|
|
width: 100px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
background-color: #1aad19;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 40px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.checkout-bar button:hover {
|
|
background-color: #179a16;
|
|
} |