mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Uploader: add less vars
This commit is contained in:
parent
47bb6fc7fa
commit
076eb1c601
@ -572,3 +572,10 @@
|
|||||||
@tree-select-item-height: 44px;
|
@tree-select-item-height: 44px;
|
||||||
@tree-select-item-active-color: @red;
|
@tree-select-item-active-color: @red;
|
||||||
@tree-select-item-disabled-color: @gray;
|
@tree-select-item-disabled-color: @gray;
|
||||||
|
|
||||||
|
// Uploader
|
||||||
|
@uploader-size: 80px;
|
||||||
|
@uploader-icon-size: 24px;
|
||||||
|
@uploader-icon-color: @gray-dark;
|
||||||
|
@uploader-text-color: @gray-dark;
|
||||||
|
@uploader-text-font-size: 12px;
|
||||||
|
@ -31,27 +31,27 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 80px;
|
width: @uploader-size;
|
||||||
height: 80px;
|
height: @uploader-size;
|
||||||
margin: 0 10px 10px 0;
|
margin: 0 10px 10px 0;
|
||||||
background-color: @white;
|
background-color: @white;
|
||||||
border: 1px dashed @gray-light;
|
border: 1px dashed @gray-light;
|
||||||
|
|
||||||
&-icon {
|
&-icon {
|
||||||
color: @gray-dark;
|
color: @uploader-icon-color;
|
||||||
font-size: 24px;
|
font-size: @uploader-icon-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
color: @gray-dark;
|
color: @uploader-text-color;
|
||||||
font-size: 12px;
|
font-size: @uploader-text-font-size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__preview {
|
&__preview {
|
||||||
width: 80px;
|
width: @uploader-size;
|
||||||
height: 80px;
|
height: @uploader-size;
|
||||||
margin: 0 10px 10px 0;
|
margin: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user