columnCommodityListBox.less 3.18 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;
              /*! 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: 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;
              }
              // 原价
              .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);
              }
						}
						.right {
							display: flex;
							justify-content: flex-end;
							align-items: baseline;
							.icon-add {
								display: block;
								width: 48px;
								height: 48px;
							}
						}
					}
				}
			}
		}
	}
}