[improvement] Uploader: add less vars

This commit is contained in:
陈嘉涵 2019-06-04 15:56:54 +08:00
parent 47bb6fc7fa
commit 076eb1c601
2 changed files with 15 additions and 8 deletions

View File

@ -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;

View File

@ -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;
} }
} }