mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
63 lines
989 B
Plaintext
63 lines
989 B
Plaintext
@import '../style/var';
|
|
|
|
.van-image-preview {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
&__swipe {
|
|
height: 100%;
|
|
}
|
|
|
|
&__cover {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
&__image {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
transition-property: transform;
|
|
|
|
img {
|
|
// disable desktop browser image drag
|
|
-webkit-user-drag: none;
|
|
}
|
|
|
|
.van-image {
|
|
&__error {
|
|
top: 30%;
|
|
height: 40%;
|
|
}
|
|
|
|
&__error-icon {
|
|
font-size: 36px;
|
|
}
|
|
|
|
&__loading {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__index {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 50%;
|
|
color: @image-preview-index-text-color;
|
|
font-size: @image-preview-index-font-size;
|
|
text-shadow: @image-preview-index-text-shadow;
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
&__overlay {
|
|
background-color: @image-preview-overlay-background-color;
|
|
}
|
|
}
|