mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +08:00
[improvement] IndexBar: add less vars
This commit is contained in:
parent
61748ad7c4
commit
7522712de7
@ -1,8 +1,8 @@
|
|||||||
@import '../style/var';
|
@import '../style/var';
|
||||||
|
|
||||||
.van-index-anchor {
|
.van-index-anchor {
|
||||||
padding: 0 15px;
|
padding: @index-anchor-padding;
|
||||||
font-weight: 500;
|
font-weight: @index-anchor-font-weight;
|
||||||
font-size: 14px;
|
font-size: @index-anchor-font-size;
|
||||||
line-height: 32px;
|
line-height: @index-anchor-line-height;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
&__index {
|
&__index {
|
||||||
padding: 0 3px 0 15px;
|
padding: 0 3px 0 15px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 10px;
|
font-size: @index-bar-index-font-size;
|
||||||
line-height: 14px;
|
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 {
|
html {
|
||||||
|
@ -241,6 +241,16 @@
|
|||||||
@goods-action-icon-font-size: 10px;
|
@goods-action-icon-font-size: 10px;
|
||||||
@goods-action-icon-active-color: @active-color;
|
@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
|
||||||
@info-size: 16px;
|
@info-size: 16px;
|
||||||
@info-color: @white;
|
@info-color: @white;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user