columnCommodityListBox.less 2.19 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 {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 100%;
					height: 336px;
					// height: 100%;
					overflow: hidden;
					.img {
						display: block;
						width: 100%;
						height: auto;
					}
				}
				.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;
						-webkit-box-orient: vertical;
						text-overflow: ellipsis;
						overflow: hidden;
					}
					.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: center;
						margin-top: 25px;
						margin-bottom: 20px;
						.left {
							display: flex;
							justify-content: flex-start;
							align-items: baseline;
							color: #FC1541;
							.y {
								font-size: 24px;
							}
							.integer {
								font-size: 38px;
							}
							.decimal {
								font-size: 24px;
							}

						}
						.right {
							display: flex;
							justify-content: flex-end;
							align-items: baseline;
							.icon-add {
								display: block;
								width: 48px;
								height: 48px;
							}
						}
					}
				}
			}
		}
	}
}