bk-shop/src/pages/member/item-fav.scss

212 lines
5.0 KiB
SCSS
Executable File

@import '../../style/imports';
@import '../item/list';
.page-goods-fav {
// padding-top: 10px;
/* #ifdef h5 */
// padding-top: $navigate-height-h5;
/* #endif */
.trade-list__tabs {
/* #ifdef h5 */
// padding-top: $navigate-height-h5;
/* #endif */
.at-tabs__body {
height: 0px;
}
}
.navbar_padtop {
padding-top: $navigate-height-h5;
}
.goods-list {
.at-swipe-action {
width: 100%;
margin-bottom: 20px;
&__option {
position: relative;
}
&__options {
height: 99.5%;
right: 2px;
bottom: 4px;
.option__text {
position: absolute;
left: 50%;
top: 35%;
transform: translateX(-50%);
width: 40px;
height: 42px;
}
.icon-delete,
.icon-share {
&::before {
content: ' ';
display: block;
width: 18px;
height: 18px;
}
}
.icon-share .option__text {
background: url('../../assets/fenxiang-icon.png') no-repeat;
background-size: 100% 100%;
left: 46%;
&:before {
content: '分享';
position: absolute;
left: 60%;
transform: translateX(-50%);
top: 120%;
text-align: center;
font-size: 20px;
color: #fff;
white-space: nowrap;
}
}
.icon-delete .option__text {
background: url('../../assets/del-icon.png') no-repeat;
background-size: 100% 100%;
&:before {
content: '移除';
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 120%;
text-align: center;
font-size: 20px;
color: #fff;
white-space: nowrap;
}
}
}
}
&__scroll {
// @include page-scroll($tabs-height + 30px, 0);
@include page-scroll($tabs-height + $navigate-height + 30px, 0);
/* #ifdef h5 */
top: $navigate-height-h5 + $tabs-height + 29px;
/* #endif */
.sp-note {
.sp-image {
margin-top: 400px;
}
&__text {
margin-top: 24px;
font-weight: bold;
font-size: 40px;
color: #000;
}
}
}
&__type-grid {
display: flex;
flex-wrap: wrap;
padding: 0 20px;
.goods-list__item {
// margin-bottom: 20px;
width: 100%;
background: #f7f7f7;
border-radius: 6px;
padding: 50px 26px 40px 30px;
box-sizing: border-box;
display: flex;
&__img {
width: 150px;
height: 150px;
border-radius: 6px;
overflow: hidden;
}
&__right {
padding-left: 60px;
display: flex;
flex: 1;
width: 100%;
flex-direction: column;
overflow: hidden;
&__title {
@include text-overflow();
font-size: 22px;
width: 98%;
}
&__price {
display: flex;
align-items: center;
font-weight: bold;
font-size: 32px;
line-height: 1;
margin-top: 26px;
margin-bottom: 20px;
&__symbol {
margin-right: 20px;
}
}
&__footer {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
&__fav {
font-size: 20px;
display: flex;
align-items: center;
color: #666;
opacity: 0.8;
}
&__btns {
display: flex;
align-items: center;
}
&__btn {
/* prettier-ignore */
border: 1PX solid #000;
border-radius: 6px;
padding: 15px 20px;
font-size: 20px;
line-height: 1;
&.white {
color: #000;
background: #f6f6f6;
margin-right: 10px;
}
&.black {
color: #fff;
background: #000;
}
}
}
}
}
}
}
.goods_scroll_top {
top: $tabs-height + 29px;
}
}
.comp-share {
.share-bd {
display: flex;
justify-content: space-around;
align-items: flex-start;
padding: 50px 0 30px;
.share-item {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
&:first-child {
background-color: transparent;
line-height: normal;
margin: 0;
padding: 0;
overflow: visible;
border: none;
&:after {
border: 0px;
}
}
&-txt {
font-size: 26px;
color: #333;
}
}
}
}