mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] ImagePreview: add less vars
This commit is contained in:
parent
9de9a4f248
commit
189e1248b8
@ -81,6 +81,10 @@
|
|||||||
|
|
||||||
- 支持`Number`类型的`size`属性
|
- 支持`Number`类型的`size`属性
|
||||||
|
|
||||||
|
### ImagePreview
|
||||||
|
|
||||||
|
- 新增多个`LESS`变量
|
||||||
|
|
||||||
### Loading
|
### Loading
|
||||||
|
|
||||||
- 新增`default`插槽
|
- 新增`default`插槽
|
||||||
|
@ -22,14 +22,14 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
color: @white;
|
color: @image-preview-index-text-color;
|
||||||
font-size: 14px;
|
font-size: @image-preview-index-font-size;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__overlay {
|
&__overlay {
|
||||||
background-color: rgba(0, 0, 0, .9);
|
background-color: @image-preview-overlay-background-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-swipe {
|
.van-swipe {
|
||||||
|
@ -178,6 +178,11 @@
|
|||||||
@info-background-color: @red;
|
@info-background-color: @red;
|
||||||
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
||||||
|
|
||||||
|
// ImagePreview
|
||||||
|
@image-preview-index-text-color: @white;
|
||||||
|
@image-preview-index-font-size: 14px;
|
||||||
|
@image-preview-overlay-background-color: rgba(0, 0, 0, .9);
|
||||||
|
|
||||||
// List
|
// List
|
||||||
@list-icon-margin-right: 5px;
|
@list-icon-margin-right: 5px;
|
||||||
@list-text-color: @gray-dark;
|
@list-text-color: @gray-dark;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user