mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
38 lines
647 B
Plaintext
38 lines
647 B
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-image {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&--round {
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
|
|
.van-image__img {
|
|
border-radius: inherit;
|
|
}
|
|
}
|
|
|
|
&__img,
|
|
&__error,
|
|
&__loading {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
&__error,
|
|
&__loading {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: @image-placeholder-text-color;
|
|
font-size: @image-placeholder-font-size;
|
|
background-color: @image-placeholder-background-color;
|
|
}
|
|
}
|