[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-active-color: @red;
@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;
justify-content: center;
box-sizing: border-box;
width: 80px;
height: 80px;
width: @uploader-size;
height: @uploader-size;
margin: 0 10px 10px 0;
background-color: @white;
border: 1px dashed @gray-light;
&-icon {
color: @gray-dark;
font-size: 24px;
color: @uploader-icon-color;
font-size: @uploader-icon-size;
}
&-text {
margin-top: 10px;
color: @gray-dark;
font-size: 12px;
color: @uploader-text-color;
font-size: @uploader-text-font-size;
}
}
&__preview {
width: 80px;
height: 80px;
width: @uploader-size;
height: @uploader-size;
margin: 0 10px 10px 0;
}
}