[improvement] IndexBar: add less vars

This commit is contained in:
陈嘉涵 2019-05-16 15:17:46 +08:00
parent 61748ad7c4
commit 7522712de7
4 changed files with 17 additions and 7 deletions

View File

@ -1,8 +1,8 @@
@import '../style/var';
.van-index-anchor {
padding: 0 15px;
font-weight: 500;
font-size: 14px;
line-height: 32px;
padding: @index-anchor-padding;
font-weight: @index-anchor-font-weight;
font-size: @index-anchor-font-size;
line-height: @index-anchor-line-height;
}

View File

@ -16,7 +16,7 @@
&__index {
padding: 0 3px 0 15px;
font-weight: 500;
font-size: 10px;
line-height: 14px;
font-size: @index-bar-index-font-size;
line-height: @index-bar-index-line-height;
}
}

View File

@ -1,5 +1,5 @@
/**
* 基本样式入口
* Normalize
*/
html {

View File

@ -241,6 +241,16 @@
@goods-action-icon-font-size: 10px;
@goods-action-icon-active-color: @active-color;
// IndexAnchor
@index-anchor-padding: 0 15px;
@index-anchor-font-weight: 500;
@index-anchor-font-size: 14px;
@index-anchor-line-height: 32px;
// IndexBar
@index-bar-index-font-size: 10px;
@index-bar-index-line-height: 14px;
// Info
@info-size: 16px;
@info-color: @white;