columnCommodityListBox.less 3.62 KB
@charset "UTF-8";

.column-list-box {
	.title-box {
		& + .box {
			margin-top: 30px;
		}
	}
	.box {
		// display: flex;
		// flex-direction: row;
		// justify-content: space-between;
		// align-items: flex-start;
		// flex-wrap: wrap;
		column-count: 2;
		column-width: 336px;
		column-gap: 18px;
		margin: 0 auto;
		padding-bottom: 18px;
		width: 690px;
		.left-box {
			.item-box {
				&:last-child {
					margin-bottom: 0;
				}
			}
		}
		.right-box {
			.item-box {
				&:last-child {
					// margin-bottom: 0;
				}
			}
		}
		.item-box {
			background-color: #ffffff;
			margin-bottom: 18px;
			width: 336px;
			height: auto;
			break-inside: avoid;
			border-radius: 16px;
			overflow: hidden;
			.item {
				width: 100%;
				height: auto;
				.img-box {
					position: relative;
					display: flex;
					justify-content: center;
					align-items: center;
					width: 100%;
					height: 336px;
					// height: 100%;
					overflow: hidden;
					.img {
						display: block;
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
					.goods_active{
						width: 100%;
						height: 58px;
						// border-radius: 26px;
						background: rgba(0, 0, 0, 0.4);
						display: flex;
						align-items: center;
						justify-content: center;
						color: #fff;
						font-size: 30px;
						text-align: center;
						position: absolute;
						left: 0;
						bottom: 0;
					}
				}
				.content-box {
					margin: 0 auto;
          			width: 286px;
            		.title {
              			display: -webkit-box;
              			margin-top: 20px;
              			color: #333333;
              			font-size: 26px;
						width: 100%;
						height: auto;
						line-height: 40px;
						-webkit-line-clamp: 2;
						/*! autoprefixer: off */
						-webkit-box-orient: vertical;
						/*! autoprefixer: on */
						text-overflow: ellipsis;
						overflow: hidden;
						.yx_card{
            				width: 60px;
                			height: 30px;
                			line-height:30px;
                			background: #FFB035;
                			border-radius: 6px;
                			color:#ffffff;
                			font-weight: 500;
                			font-size: 22px;
                			text-align: center;
                			padding: 3px 8px;
                			margin-right:10px;
              			}           
            		}
					.coupon-box {
						display: inline;
						margin-top: 8px;
						padding: 1px 6px;
						color: #FC1541;
						font-size: 18px;
						border: 1px solid #FC1541;
						border-radius: 4px;
					}
					.price-box {
						display: flex;
						justify-content: space-between;
						align-items: flex-end;
						margin-top: 25px;
						margin-bottom: 20px;
						.left {
							// display: flex;
							// justify-content: flex-start;
							// align-items: baseline;

							// 现价
							.sale-price {
								display: flex;
								justify-content: flex-start;
								align-items: baseline;
								color: #FC1541;
								.y {
									font-size: 24px;
								}
								.integer {
									font-size: 38px;
								}
								.decimal {
									font-size: 24px;
								}
							}

							// 原价
							.original_price {
								display: flex;
								justify-content: flex-start;
								align-items: baseline;
								font-size: 40px;
								font-weight: 400;
								color: #B4B4B4;
								line-height: 28px;
								text-decoration: line-through;
								transform: scale(0.5);
								transform-origin: left;
							}
						}
						.right {
							display: flex;
							justify-content: flex-end;
							align-items: baseline;
							.icon-add {
								display: block;
								width: 48px;
								height: 48px;
							}
						}
					}
				}
			}
		}
	}
}