mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
99 lines
2.4 KiB
Plaintext
99 lines
2.4 KiB
Plaintext
@import './var.less';
|
|
|
|
:root {
|
|
--van-cascader-header-height: @cascader-header-height;
|
|
--van-cascader-header-padding: @cascader-header-padding;
|
|
--van-cascader-title-font-size: @cascader-title-font-size;
|
|
--van-cascader-title-line-height: @cascader-title-line-height;
|
|
--van-cascader-close-icon-size: @cascader-close-icon-size;
|
|
--van-cascader-close-icon-color: @cascader-close-icon-color;
|
|
--van-cascader-close-icon-active-color: @cascader-close-icon-active-color;
|
|
--van-cascader-selected-icon-size: @cascader-selected-icon-size;
|
|
--van-cascader-tabs-height: @cascader-tabs-height;
|
|
--van-cascader-active-color: @cascader-active-color;
|
|
--van-cascader-options-height: @cascader-options-height;
|
|
--van-cascader-tab-color: @cascader-tab-color;
|
|
--van-cascader-unselected-tab-color: @cascader-unselected-tab-color;
|
|
}
|
|
|
|
.van-cascader {
|
|
&__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: var(--van-cascader-header-height);
|
|
padding: var(--van-cascader-header-padding);
|
|
}
|
|
|
|
&__title {
|
|
font-weight: @font-weight-bold;
|
|
font-size: var(--van-cascader-title-font-size);
|
|
line-height: var(--van-cascader-title-line-height);
|
|
}
|
|
|
|
&__close-icon {
|
|
color: var(--van-cascader-close-icon-color);
|
|
font-size: var(--van-cascader-close-icon-size);
|
|
|
|
&:active {
|
|
color: var(--van-cascader-close-icon-active-color);
|
|
}
|
|
}
|
|
|
|
&__tabs {
|
|
.van-tab {
|
|
flex: none;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
&.van-tabs--line .van-tabs__wrap {
|
|
height: var(--van-cascader-tabs-height);
|
|
}
|
|
|
|
.van-tabs__nav--complete {
|
|
padding-right: 6px;
|
|
padding-left: 6px;
|
|
}
|
|
}
|
|
|
|
&__tab {
|
|
color: var(--van-cascader-tab-color);
|
|
font-weight: @font-weight-bold;
|
|
|
|
&--unselected {
|
|
color: var(--van-cascader-unselected-tab-color);
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
|
|
&__option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px @padding-md;
|
|
font-size: @font-size-md;
|
|
line-height: @line-height-md;
|
|
|
|
&:active {
|
|
background-color: @active-color;
|
|
}
|
|
|
|
&--selected {
|
|
color: var(--van-cascader-active-color);
|
|
font-weight: @font-weight-bold;
|
|
}
|
|
}
|
|
|
|
&__selected-icon {
|
|
font-size: var(--van-cascader-selected-icon-size);
|
|
}
|
|
|
|
&__options {
|
|
box-sizing: border-box;
|
|
height: var(--van-cascader-options-height);
|
|
padding-top: 6px;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
}
|