[improvement] Progress、Search: add less vars

This commit is contained in:
陈嘉涵
2019-05-16 17:56:48 +08:00
parent 399f245460
commit aacd168dd6
4 changed files with 72 additions and 50 deletions
+7 -7
View File
@@ -2,9 +2,9 @@
.van-progress {
position: relative;
height: 4px;
background: @gray-light;
border-radius: 4px;
height: @progress-height;
background: @progress-background-color;
border-radius: @progress-height;
&__portion {
position: absolute;
@@ -24,12 +24,12 @@
right: 0;
box-sizing: border-box;
min-width: 2em;
padding: 0 5px;
font-size: 10px;
line-height: 1.6;
padding: @progress-pivot-padding;
font-size: @progress-pivot-font-size;
line-height: @progress-pivot-line-height;
text-align: center;
word-break: keep-all;
background-color: @gray-light;
background-color: @progress-pivot-background-color;
border-radius: 1em;
transform: translate(100%, -50%);
}