80 lines
1.2 KiB
Plaintext

@import '../common/style/var.less';
.van-tree-select {
position: relative;
font-size: 14px;
user-select: none;
&__nav {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 35%;
min-width: 120px;
background-color: @background-color-light;
}
&__nitem {
position: relative;
padding: 0 9px 0 15px;
line-height: 44px;
&--active::after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 3.6px;
background-color: @red;
content: '';
}
&--active {
font-weight: bold;
background-color: @white;
}
&--disabled {
color: @gray-dark;
}
&--disabled:active::after {
display: none;
}
}
&__content {
width: 65%;
padding-left: 15px;
margin-left: 35%;
background-color: @white;
box-sizing: border-box;
}
&__item {
position: relative;
font-weight: bold;
line-height: 44px;
&--active {
color: @red;
}
&--disabled,
&--disabled:active {
color: @gray-dark;
}
}
&__selected {
position: absolute;
top: 0;
right: 15px;
bottom: 0;
height: 24px;
margin: auto 0;
line-height: 24px;
}
}