mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* perf: remove CSS variables polyfill * style: fix missing calc value * perf: reduce some useless css vars
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-tree-select {
|
|
position: relative;
|
|
display: flex;
|
|
user-select: none;
|
|
font-size: var(--tree-select-font-size, @tree-select-font-size);
|
|
|
|
&__nav {
|
|
flex: 1;
|
|
background-color: var(
|
|
--tree-select-nav-background-color,
|
|
@tree-select-nav-background-color
|
|
);
|
|
|
|
&__inner {
|
|
width: 100% !important;
|
|
height: 100%;
|
|
}
|
|
|
|
--sidebar-padding: @tree-select-nav-item-padding;
|
|
}
|
|
|
|
&__content {
|
|
flex: 2;
|
|
background-color: var(
|
|
--tree-select-content-background-color,
|
|
@tree-select-content-background-color
|
|
);
|
|
}
|
|
|
|
&__item {
|
|
position: relative;
|
|
font-weight: bold;
|
|
padding: 0 32px 0 var(--padding-md, @padding-md);
|
|
line-height: var(--tree-select-item-height, @tree-select-item-height);
|
|
|
|
&--active {
|
|
color: var(
|
|
--tree-select-item-active-color,
|
|
@tree-select-item-active-color
|
|
);
|
|
}
|
|
|
|
&--disabled {
|
|
color: var(
|
|
--tree-select-item-disabled-color,
|
|
@tree-select-item-disabled-color
|
|
);
|
|
}
|
|
}
|
|
|
|
&__selected {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
right: var(--padding-md, @padding-md);
|
|
}
|
|
}
|