feat: 商品样式调整
This commit is contained in:
@@ -3,29 +3,15 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 6px 0;
|
margin: 6px 0;
|
||||||
padding: 16px 12px;
|
padding: 16px 12px;
|
||||||
background-color: #f8f9fa;
|
|
||||||
background-image: url("./images/loc_bg_img.png"); // 预留背景图片位置,用户手动导入
|
background-image: url("./images/loc_bg_img.png"); // 预留背景图片位置,用户手动导入
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
border-radius: 12px;
|
border-radius: 20px;
|
||||||
// box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
// 添加半透明遮罩层确保文字可读性
|
|
||||||
&::before {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: rgba(255, 255, 255, 0.8);
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 左侧文本容器
|
// 左侧文本容器
|
||||||
.text-container {
|
.text-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user