You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.6 KiB
94 lines
1.6 KiB
.wux-image {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
box-sizing: border-box
|
|
}
|
|
.wux-image--rounded {
|
|
border-radius: 8rpx
|
|
}
|
|
.wux-image--page {
|
|
border-top-left-radius: 12rpx;
|
|
border-bottom-left-radius: 12rpx;
|
|
}
|
|
.wux-image--offer {
|
|
border-radius: 12rpx
|
|
}
|
|
.wux-image--circle {
|
|
border-radius: 50%
|
|
}
|
|
.wux-image--thumbnail {
|
|
background-color: #fff;
|
|
border-radius: 8rpx
|
|
}
|
|
.wux-image--thumbnail:after {
|
|
content: " ";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 200%;
|
|
height: 200%;
|
|
transform: scale(.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
border: 0 solid #d9d9d9;
|
|
border-width: 2rpx;
|
|
border-radius: 16rpx
|
|
}
|
|
.wux-image--thumbnail .wux-image__inner,
|
|
.wux-image--thumbnail .wux-image__mask {
|
|
top: 8rpx;
|
|
right: 8rpx;
|
|
bottom: 8rpx;
|
|
left: 8rpx;
|
|
width: calc(100% - 16rpx)!important;
|
|
height: calc(100% - 16rpx)!important
|
|
}
|
|
.wux-image--widthFix .wux-image__inner {
|
|
position: relative
|
|
}
|
|
.wux-image,
|
|
.wux-image__thumb {
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
vertical-align: middle
|
|
}
|
|
.wux-image__inner {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0
|
|
}
|
|
.wux-image--loaded .wux-image__inner {
|
|
opacity: 1
|
|
}
|
|
.wux-image__mask {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 20
|
|
}
|
|
.wux-image__mask--text {
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
-ms-flex-pack: center;
|
|
justify-content: center
|
|
}
|
|
.wux-image__text {
|
|
color: #373a3c;
|
|
text-align: center;
|
|
padding: 20rpx
|
|
}
|