mini/pages/closet/index/index.wxss

151 lines
2.6 KiB
Plaintext

.closet-container{
padding:0 20rpx 0 20rpx;
}
.closet-container .header{
display:flex;
align-items: center;
justify-content: space-between;
font-size: 52rpx;
font-weight: bold;
}
.closet-container .header .button{
width:60rpx;height:60rpx;
padding:0;
line-height: 1;
display: flex;
}
.closet-container .category{
margin:40rpx 0 40rpx 0;
}
.list-content{
display: flex;
flex-wrap: wrap;
gap: 40rpx;
}
.list .item{
width:calc(50vw - 60rpx);
height:calc(50vw - 60rpx);
position: relative;
overflow: hidden;
border-radius: 20rpx;
}
.list .item.btn-upload{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #eee;
color: #666;
gap: 10rpx;
}
.list .item.btn-upload .icon{
font-size: 60rpx;
}
.list .item .image{
width:100%;height:100%;
}
.list .item .delete-area{
position: absolute;
top: 0;
right: 0;
padding:12rpx;
}
.list .item .to-try{
position: absolute;
bottom: 0;right:0;
background-color: var(--main-color);
color: #fff;
padding:10rpx 18rpx;
border-radius: 20rpx 0 20rpx 0;
}
.add-clothing{
padding:40rpx;
}
.closet-container .category{
display: flex;
gap: 20rpx;
}
.add-clothing .category{
display: flex;
gap: 20rpx;
justify-content: center;
}
.category .item{
margin:0;
border-radius: 50rpx;
border-color: #000;
color: #000;
}
.category .item.current{
background-color: #000;
color: #fff;
}
.add-clothing .button{
margin-top:40rpx;
}
.add-clothing .upload-btn{
border-radius: 20rpx;
height: 50vw;
width:100%;
background-color: var(--main-bgclolor);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #888;
font-size: 30rpx;
gap: 10rpx;
margin-top:40rpx;
}
.add-clothing .upload-btn .icon{
font-size: 100rpx;
}
.upload-img-area{
height: 50vw;
margin:40rpx 0;
position: relative;
overflow: hidden;
border-radius: 20rpx;
}
.upload-img-area .mask{
position:absolute;
left:0;bottom:0;
width:100%;height:100%;
background-color: #999;
opacity: .5;
}
.upload-img-area .image{
width:100%;height:100%;
}
.has-img .img-area{
margin:40rpx 0;
}
.has-img .img-area .item{
width:140rpx;height:140rpx;
}
.no-img .img-area .take-photo{
border-radius: 20rpx;
height: 50vw;
width:100%;
background-color: var(--main-bgclolor);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #888;
font-size: 30rpx;
gap: 10rpx;
margin-top:40rpx;
}
.img-uploader .img-area .take-photo .icon{
mask-image: var(--icon-cloud);
-webkit-mask-image:var(--icon-cloud);
width:100rpx;height:100rpx;
}