goods_list.less 7.77 KB
@charset "UTF-8";

@background_color_box: #fff;
@margin_bottom_item: 10px;
@box_shadow: 0 2px 4px #E5EAEB;
@width_title_box: 690px;
@height_title_box: 75px;
@width_check_box: 35px;
@height_check_box: 35px;
@padding_right_check_box: 13px;
@width_shop_icon: 39px;
@height_shop_icon: 39px;
@padding_right_shop_icon: 8px;
@color_title: #030303;
@font_size_title: 28px;
@border_bottom_title_box: 1px solid #E4E4E4;
@width_content_box_item: 690px;
@height_content_box_item: 270px;
@border_bottom_content_box_item: 1px solid #E4E4E4;
@width_item_simg: 200px;
@height_item_simg: 200px;
@margin_left_item_simg: 20px;
@margin_left_item_simg_g: 14px;
@border_radius_item_simg: 8px;
@margin_left_content: 45px;
@width_content: 392px;
@color_content_title: #666666;
@font_size_content_title: 30px;
@color_content_ads: #9C9C9C;
@font_size_content_ads: 28px;
@background_color_content_ads_edit: #D8D8D8;
@border_radius_content_ads_edit: 4px;
@color_content_price: #FF725C;
@font_size_content_price: 34px;
@font_size_content_price_decimal: 26px;
@color_content_prices: #B4B4B4;
@font_size_content_prices: 20px;
@height_number: 56px;
@color_item_text: #FFFFFF;
@font_size_item_text: 20px;
@background_color_item_text: #C5C5C5;
@border_radius_item_text: 4px;
@padding_item_text: 1px 8px;
@margin_left_item_text: -24px;
@width_buttons_box: 690px;
@height_buttons_box: 93px;
@margin_left_btn_btn: 27px;
@font_size_btn: 25px;
@padding_btn: 8px 25px;
@border_radius_btn: 100px;
@color_btn_bright_out: #FF725C;
@border_btn_bright_out: 1px solid #FF725C;
@color_btn_gray_out: #777;
@border_btn_gray_out: 1px solid #999;
@height_rare_lack: 40px;
@color_rare_lack: #FFFFFF;
@font_size_rare_lack: 25px;
@background_color_rare_lack: #737373;
@padding_top_no_address: 30vh;
@width_no_address_img: 177px;
@height_no_address_img: 177px;
@color_no_address_text: #9C9C9C;
@font_size_no_address_text: 28px;
@padding_top_no_address_text: 20px;

// .goods-list-box {
// 	margin-top: -130px;
// 	&.no-bg {
// 		margin-top: 30px;
// 	}
// 	.content-box {
// 		padding-bottom: 10px;
// 		> .item {
// 			.box {
// 				background-color: #fff;
// 				width: @width_content_box_item;
// 				height: @height_content_box_item;
// 				border-radius: 16px;
// 				margin: 0 auto 30px auto;
// 				overflow: hidden;
// 				.a-link {
// 					display: inline-flex;
// 					align-items: center;
// 					background-color: #fff;
// 					width: 100%;
// 					height: 100%;
// 					> .text {
// 						color: @color_item_text;
// 						font-size: @font_size_item_text;
// 						background-color: @background_color_item_text;
// 						border-radius: @border_radius_item_text;
// 						padding: @padding_item_text;
// 						margin-left: @margin_left_item_text;
// 					}
// 					.check-group {
// 						.check-box {
// 							width: @width_check_box;
// 							height: @height_check_box;
// 						}
// 					}
// 					.img-box {
// 						position: relative;
// 						margin-left: @margin_left_item_simg;
// 						width: @width_item_simg;
// 						height: @height_item_simg;
// 						min-width: @width_item_simg;
// 						.img {
// 							border-radius: @border_radius_item_simg;
// 							width: 100%;
// 							height: 100%;
// 						}
// 						.rare-box, .lack-box {
// 							position: absolute;
// 							bottom: 0;
// 							display: flex;
// 							justify-content: center;
// 							align-items: center;
// 							width: 100%;
// 							height: @height_rare_lack;
// 							color: @color_rare_lack;
// 							font-size: @font_size_rare_lack;
// 							background-color: @background_color_rare_lack;
// 						}
// 					}
// 					.content {
// 						display: flex;
// 						flex-direction: column;
// 						justify-content: space-around;
// 						margin-left: @margin_left_content;
// 						width: @width_content;
// 						height: @height_item_simg;
// 						.title {
// 							color: @color_content_title;
// 							font-size: @font_size_content_title;
// 							max-height: 80px;
// 							overflow: hidden;
// 						}
// 						.ads {
// 							color: @color_content_ads;
// 							font-size: @font_size_content_ads;
// 							white-space: nowrap;
// 							text-overflow: ellipsis;
// 							overflow: hidden;
// 						}
// 						.price-number-box {
// 							display: flex;
// 							flex-direction: row;
// 							justify-content: space-between;
// 							align-items: flex-end;
// 							.price-box {
// 								.prices {
// 									color: @color_content_prices;
// 									font-size: @font_size_content_prices;
// 									text-decoration: line-through;
// 								}
// 								.price {
// 									color: @color_content_price;
// 									font-size: @font_size_content_price;
// 								}
// 							}
// 							.buy-now {
// 								color: #F5A623;
// 								font-size: 26px;
// 								padding: 6px 20px;
// 								border: 1px solid #F5A623;
// 								border-radius: 100px;
// 							}
// 						}
// 					}
// 				}
// 			}
// 			// 本来应该放.buttons-box部分,现在提出来公用
// 		}
// 	}
// }
// // 公用buttons-box部分
// .buttons-box {
// 	display: flex;
// 	flex-direction: row;
// 	justify-content: flex-end;
// 	align-items: center;
// 	margin: 0 auto;
// 	width: @width_buttons_box;
// 	height: @height_buttons_box;
// 	.btn {
// 		& + .btn {
// 			margin-left: @margin_left_btn_btn;
// 		}
// 		&.btn-bright-out, &.btn-gray-out {
// 			padding: @padding_btn;
// 			border-radius: @border_radius_btn;
// 			.func-button {
// 				position: unset;
// 				display: block;
// 				margin: 0;
// 				padding: 0;
// 				font-size: @font_size_btn;
// 				box-sizing: border-box;
// 				text-align: center;
// 				text-decoration: none;
// 				line-height: normal;
// 				border-radius: none;
// 				overflow: hidden;
// 				background-color: transparent;
// 				&[disabled] {
// 					pointer-events: none;
// 				}
// 				&::after {
// 					content: none;
// 				}
// 			}
// 		}
// 		&.btn-bright-out {
// 			border: @border_btn_bright_out;
// 			.text {
// 				color: @color_btn_bright_out;
// 			}
// 		}
// 		&.btn-gray-out {
// 			border: @border_btn_gray_out;
// 			.text {
// 				color: @color_btn_gray_out;
// 			}
// 		}
// 	}
// }
// .no-address {
// 	width: 100%;
// 	height: 100%;
// 	text-align: center;
// 	padding-top: @padding_top_no_address;
// 	.img {
// 		width: @width_no_address_img;
// 		height: @height_no_address_img;
// 	}
// 	.text {
// 		color: @color_no_address_text;
// 		font-size: @font_size_no_address_text;
// 		padding-top: @padding_top_no_address_text;
// 	}
// 	.buttons-box {
// 		justify-content: center;
// 	}
// }
.goods-list-box{
	padding: 20px 20px;
	margin-top: -120px;
}

/* 猜你喜欢 */
	.content-box{
		display:flex;
		flex-wrap:wrap;
		padding: 0 30upx;
		// background: #fff;
		.item{
			display:flex;
			flex-direction: column;
			width: 48%;
			padding-bottom: 40px;
			&:nth-child(2n+1){
				margin-right: 4%;
			}
			.a-link{
				// border: 1px solid #ccc;
				border-radius: 12px;
				background-color: rgb(250, 250, 250);
				margin:10px 0;
				box-shadow: 0px 0px 10px rgba(148, 148, 148, 0.3);
			}
		}
		.image-wrapper{
			width: 100%;
			height: 330upx;
			border-radius: 3px;
			overflow: hidden;
			img{
				width: 100%;
				height: 100%;
				max-width: 340px;
				max-height: 340px;
				opacity: 1;
				border-radius: 12px 12px 0 0;
			}
		}
		.content{
			padding: 5px 15px;
			.title{
				// font-size: $font-lg;
				// color: $font-color-dark;
				// line-height: 80px;
				color: @color_content_title;
				font-size: @font_size_content_title;
				// max-height: 80px;
				overflow: hidden;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
			}
			.price{
				// font-size: $font-lg;
				// color: $uni-color-primary;
				// line-height: 1;
				color: @color_content_price;
				font-size: @font_size_content_price;
			}
			.prices {
				color: @color_content_prices;
				font-size: @font_size_content_prices;
				text-decoration: line-through;
			}
		}
	}