mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
87 lines
1.4 KiB
Plaintext
87 lines
1.4 KiB
Plaintext
@import '../style/var';
|
|
|
|
.van-tree-select {
|
|
user-select: none;
|
|
font-size: 14px;
|
|
position: relative;
|
|
|
|
&__nav {
|
|
width: 35%;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
min-width: 120px;
|
|
overflow: scroll;
|
|
background-color: @background-color-light;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
&__nitem {
|
|
position: relative;
|
|
line-height: 44px;
|
|
padding: 0 9px 0 15px;
|
|
|
|
&:active::after,
|
|
&--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%;
|
|
height: 100%;
|
|
padding-left: 15px;
|
|
margin-left: 35%;
|
|
overflow: scroll;
|
|
-webkit-overflow-scrolling: touch;
|
|
background-color: @white;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&__item {
|
|
position: relative;
|
|
font-weight: bold;
|
|
line-height: 44px;
|
|
|
|
&:active,
|
|
&--active {
|
|
color: @red;
|
|
}
|
|
|
|
&--disabled,
|
|
&--disabled:active {
|
|
color: @gray;
|
|
}
|
|
}
|
|
|
|
&__selected {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 15px;
|
|
bottom: 0;
|
|
height: 24px;
|
|
margin: auto 0;
|
|
line-height: 24px;
|
|
}
|
|
}
|