mini/pages/try/index/index.wxss

244 lines
5.0 KiB
Plaintext

.try-container{
height:100vh;
padding:0 40rpx 0 40rpx;
box-sizing: border-box;
}
.try-container .header{
font-size: 52rpx;
font-weight: bold;
display: flex;
align-items: center;
justify-content:space-between;
}
.try-container .header .button{
font-size: 28rpx;
font-weight: normal;
line-height: 2;
}
.try-container .main{
border-radius: 20rpx;
margin-top:20rpx;
position: relative;
overflow: hidden;
}
.try-container .main .top-btn{
position: absolute;
right:40rpx;top:40rpx;
z-index: 100;
}
.try-container .main .upload-btn{
width:100%;height:100%;
position: absolute;
top:0;left:0;
display: flex;
flex-direction: column;
align-self: center;
justify-content: center;
text-align: center;
gap: 30rpx;
}
.try-container .main .person-image{
width:100%;height:100%;
}
.try-container .main .upload-btn .icon{
margin:0 auto;
width:calc(100vw - 80rpx);
height:calc(100vw - 80rpx);
color:#ccc;
}
.try-container .main .clothing{
position: absolute;
left:20rpx;bottom:20rpx;
display: flex;
flex-direction: column;
align-items: center;
gap: 20rpx;
}
.try-container .main .clothing .loading-area{
width:100%;height:100%;
background-color: rgba(0, 0, 0, .3);
position: absolute;
display: flex;
align-items: center;
justify-content: center;
}
.try-container .main .clothing .loading{
font-size: 40rpx;
color:red
}
.try-container .main .item{
position: relative;
background-color:rgba(255, 255, 255, .7);
width:100rpx;height:100rpx;
border-radius: 20rpx;
font-size: 80rpx;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.try-container .main .item .image{
width:100%;height:100%;
}
.try-container .main .share-area{
display: flex;
align-items: center;
justify-content: center;
font-size: 50rpx;
color: #fff;
margin-left:auto;
background-color: rgba(0, 0, 0, .1);
border-radius: 50%;
width: 80rpx;height: 80rpx;
}
.try-container .bottom{
margin:40rpx 0 22rpx 0;
}
.history{
display: flex;
flex-wrap: nowrap;
}
.history .item{
border-radius: 20rpx;
background-color: #ddd;
border:2px solid #ddd;
width:120rpx;
height: 120rpx;
display:flex;
align-items: center;
justify-content: center;
font-size: 60rpx;
color: #666;
position: relative;
flex-shrink: 0;
margin-left:16rpx;
margin-top:18rpx;
}
.history .item:first-child{
margin-left:0;
}
.history .item.current{
border-color: var(--main-color);
}
.history .image{
width:100%;height:100%;
}
.history .loading-area{
position: relative;
width:100%;height:100%;
background-color: rgba(0, 0, 0, .1);
}
.history .error-area{
position: absolute;
left:0;top:0;
width:100%;height:100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, .2);
font-size: 40rpx;
}
.history .error-area .tips{
font-size: 26rpx;
margin-top:8rpx;
color: red;
}
.history .delete-area{
position:absolute;
top:-22rpx;right:-22rpx;
font-size: 36rpx;
color:red;
overflow: visible;
padding:8rpx;
}
.history .top-img{
width:60%;height:60%;
position: absolute;
top:0;left:0;
}
.history .bottom-img{
width:60%;height:60%;
position: absolute;
right:0;bottom:0;
}
.history .item .loading{
position: absolute;
left:50%;top:50%;
font-size: 40rpx;
margin-left:-20rpx;
margin-top:-20rpx;
}
.comment-modal-view .modal-view-main{
padding:0;
overflow: hidden;
}
.comment-modal-view .modal-view-main .close-btn-area{
right:0;top:0;
}
.comment-modal-view .modal-view-main .close-btn-area .close-btn{
content: '';
top:0;left:0;
border-radius: 50%;
background-color: rgba(0, 0, 0, .2);
}
.comment-modal-view .modal-view-main .close-btn-area .close-btn::after{
width:1em;height:1em;
-webkit-mask-position:0 0;
mask-position:0 0;
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
-webkit-mask-size:100%;
mask-size:100%;
background-color:currentColor;
color: #ddd;
mask-image: var(--icon-plus);
-webkit-mask-image: var(--icon-plus);
font-size: 36rpx;
transform: rotate(45deg);
left:10rpx;
top:8rpx;
}
.comment-modal-view .modal-view-main .close-btn-area .close-btn::before{
display: none;
}
.comment-modal-view .modal-view-main .main-img{
width:100%;
/* 54是弹出框左右的宽度 */
height:calc((100vw - 54px)*4/3);
}
.comment-modal-view .modal-view-main .comment{
padding:40rpx;
}
.comment-modal-view .modal-view-main .point{
display: flex;
justify-content: center;
align-items: baseline;
color:var(--main-color);
font-size: 70rpx;
line-height: 70rpx;
font-weight: bold;
}
.comment-modal-view .modal-view-main .point::after{
content:'分';
line-height: 30rpx;
font-size: 30rpx;
font-weight: normal;
margin-left:10rpx;
color: var(--main-font-color);
}
.comment-modal-view .cmt-title{
font-size: 36rpx;
font-weight: bold;
margin:20rpx 0;
}
.comment-modal-view .cmt-content{
line-height: 40rpx;
text-indent: 2em;
}
.comment-modal-view .button{
margin-top:40rpx;
}