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`属性
|
||||
|
||||
### ImagePreview
|
||||
|
||||
- 新增多个`LESS`变量
|
||||
|
||||
### Loading
|
||||
|
||||
- 新增`default`插槽
|
||||
|
@ -22,14 +22,14 @@
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 50%;
|
||||
color: @white;
|
||||
font-size: 14px;
|
||||
color: @image-preview-index-text-color;
|
||||
font-size: @image-preview-index-font-size;
|
||||
letter-spacing: 2px;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
&__overlay {
|
||||
background-color: rgba(0, 0, 0, .9);
|
||||
background-color: @image-preview-overlay-background-color;
|
||||
}
|
||||
|
||||
.van-swipe {
|
||||
|
@ -178,6 +178,11 @@
|
||||
@info-background-color: @red;
|
||||
@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-icon-margin-right: 5px;
|
||||
@list-text-color: @gray-dark;
|
||||
|
Loading…
x
Reference in New Issue
Block a user