mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] IndexBar: add less vars
This commit is contained in:
parent
61748ad7c4
commit
7522712de7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
2
packages/style/normalize.less
vendored
2
packages/style/normalize.less
vendored
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* 基本样式入口
|
||||
* Normalize
|
||||
*/
|
||||
|
||||
html {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user