@charset "UTF-8";
|
/**
|
* 这里是uni-app内置的常用样式变量
|
*
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
*
|
*/
|
/**
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
*
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
*/
|
/* 颜色变量 */
|
/* 行为相关颜色 */
|
/* 文字基本颜色 */
|
/* 背景颜色 */
|
/* 边框颜色 */
|
/* 尺寸变量 */
|
/* 文字尺寸 */
|
/* 图片尺寸 */
|
/* Border Radius */
|
/* 水平间距 */
|
/* 垂直间距 */
|
/* 透明度 */
|
/* 文章场景相关 */
|
/* start--主题色--start */
|
/* end--主题色--end */
|
.recommend-product {
|
margin-top: 40rpx;
|
}
|
.recommend-product .title {
|
heigth: 100rpx;
|
font-size: 30rpx;
|
}
|
.recommend-product .title .name {
|
margin: 0 20rpx;
|
font-size: 24rpx;
|
}
|
.recommend-product .title .line {
|
position: relative;
|
display: block;
|
width: 100rpx;
|
border-top: 1px solid red;
|
}
|
.recommend-product .title .line::after {
|
position: absolute;
|
content: '';
|
display: block;
|
width: 16rpx;
|
height: 16rpx;
|
border-radius: 50%;
|
background: red;
|
}
|
.recommend-product .title .left-line::after {
|
right: 0;
|
top: -9rpx;
|
}
|
.recommend-product .title .right-line::after {
|
left: 0;
|
top: -9rpx;
|
}
|
.recommend-product-list {
|
padding: 20rpx;
|
display: flex;
|
justify-content: space-between;
|
align-items: flex-start;
|
flex-wrap: wrap;
|
}
|
.recommend-product-list .item {
|
width: 350rpx;
|
border-radius: 20rpx;
|
margin-right: 10rpx;
|
margin-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
overflow: hidden;
|
background: #ffffff;
|
box-shadow: 0 0 8rpx rgba(0, 0, 0, 0.1);
|
margin-bottom: 10rpx;
|
}
|
.recommend-product-list .item:nth-child(2n+0) {
|
margin-right: 0;
|
}
|
.recommend-product-list .product-cover {
|
width: 220rpx;
|
height: 220rpx;
|
margin: 0 auto;
|
}
|
.recommend-product-list image {
|
width: 100%;
|
height: 100%;
|
}
|
.recommend-product-list .product-info {
|
padding: 0 24rpx;
|
}
|
.recommend-product-list .product-title {
|
height: 80rpx;
|
margin-top: 20rpx;
|
display: -webkit-box;
|
overflow: hidden;
|
-webkit-line-clamp: 2;
|
-webkit-box-orient: vertical;
|
font-size: 30rpx;
|
}
|
.recommend-product-list .price .num {
|
font-size: 32rpx;
|
font-weight: bold;
|
}
|
.line-left {
|
width: 80px;
|
height: 3px;
|
}
|
[data-theme='theme0'] .line-left {
|
background-color: #ff5704 !important;
|
}
|
[data-theme='theme1'] .line-left {
|
background-color: #19ad57 !important;
|
}
|
[data-theme='theme2'] .line-left {
|
background-color: #ffcc00 !important;
|
}
|
[data-theme='theme3'] .line-left {
|
background-color: #33a7ff !important;
|
}
|
[data-theme='theme4'] .line-left {
|
background-color: #e4e4e4 !important;
|
}
|
[data-theme='theme5'] .line-left {
|
background-color: #c8ba97 !important;
|
}
|
[data-theme='theme6'] .line-left {
|
background-color: #623ceb !important;
|
}
|
.line-right {
|
width: 80px;
|
height: 3px;
|
}
|
[data-theme='theme0'] .line-right {
|
background-color: #ff5704 !important;
|
}
|
[data-theme='theme1'] .line-right {
|
background-color: #19ad57 !important;
|
}
|
[data-theme='theme2'] .line-right {
|
background-color: #ffcc00 !important;
|
}
|
[data-theme='theme3'] .line-right {
|
background-color: #33a7ff !important;
|
}
|
[data-theme='theme4'] .line-right {
|
background-color: #e4e4e4 !important;
|
}
|
[data-theme='theme5'] .line-right {
|
background-color: #c8ba97 !important;
|
}
|
[data-theme='theme6'] .line-right {
|
background-color: #623ceb !important;
|
}
|