neverland 1a7889590f
perf: remove CSS variables polyfill (#4487)
* perf: remove CSS variables polyfill

* style: fix missing calc value

* perf: reduce some useless css vars
2021-09-23 17:31:28 +08:00

28 lines
582 B
Plaintext

@import '../common/style/var.less';
.van-index-bar {
position: relative;
&__sidebar {
position: fixed;
top: 50%;
right: 0;
display: flex;
flex-direction: column;
text-align: center;
transform: translateY(-50%);
user-select: none;
}
&__index {
font-weight: 500;
padding: 0 var(--padding-base, @padding-base) 0
var(--padding-md, @padding-md);
font-size: var(--index-bar-index-font-size, @index-bar-index-font-size);
line-height: var(
--index-bar-index-line-height,
@index-bar-index-line-height
);
}
}