2016-11-15 19:17:54 +08:00
|
|
|
@cascader-prefix-cls: ~"@{css-prefix}cascader";
|
|
|
|
@cascader-item-prefix-cls: ~"@{css-prefix}cascader-menu-item";
|
|
|
|
|
|
|
|
.@{cascader-prefix-cls} {
|
2017-01-16 17:46:51 +08:00
|
|
|
//position: relative;
|
2017-01-04 15:01:58 +08:00
|
|
|
line-height: normal;
|
2016-11-15 19:17:54 +08:00
|
|
|
|
2017-01-16 17:46:51 +08:00
|
|
|
&-rel{
|
2017-03-17 14:56:48 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
2017-01-16 17:46:51 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-11-15 19:17:54 +08:00
|
|
|
.@{css-prefix}input{
|
|
|
|
display: block;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2016-11-16 12:44:47 +08:00
|
|
|
&-disabled .@{css-prefix}input{
|
|
|
|
cursor: @cursor-disabled;
|
|
|
|
}
|
2016-11-15 19:17:54 +08:00
|
|
|
|
2017-05-11 17:17:44 +08:00
|
|
|
&-label{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
line-height: 32px;
|
|
|
|
padding: 0 7px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
&-size-large &-label{
|
|
|
|
line-height: 36px;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
}
|
|
|
|
&-size-small &-label{
|
|
|
|
line-height: 26px;
|
|
|
|
}
|
|
|
|
|
2016-11-15 19:17:54 +08:00
|
|
|
.@{cascader-prefix-cls}-arrow:nth-of-type(1) {
|
|
|
|
display: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.@{cascader-prefix-cls}-arrow:nth-of-type(1) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-show-clear:hover .@{cascader-prefix-cls}-arrow:nth-of-type(2){
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-arrow {
|
2016-11-16 10:07:03 +08:00
|
|
|
.inner-arrow();
|
|
|
|
}
|
2016-11-27 00:25:19 +08:00
|
|
|
&-visible &-arrow:nth-of-type(2) {
|
|
|
|
transform: rotate(180deg);
|
2016-11-15 19:17:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{select-dropdown-prefix-cls} {
|
2016-11-16 11:01:54 +08:00
|
|
|
width: auto;
|
2016-11-15 19:17:54 +08:00
|
|
|
padding: 0;
|
|
|
|
white-space: nowrap;
|
2016-11-21 17:03:23 +08:00
|
|
|
overflow: visible;
|
2016-11-15 19:17:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.select-item(@cascader-prefix-cls, @cascader-item-prefix-cls);
|
2017-05-11 17:29:44 +08:00
|
|
|
.ivu-select-item span{
|
|
|
|
color: @error-color;
|
|
|
|
}
|
2016-11-15 19:17:54 +08:00
|
|
|
|
2017-05-10 18:24:30 +08:00
|
|
|
&-dropdown{
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
|
2017-05-12 10:23:11 +08:00
|
|
|
&-not-found-tip{
|
|
|
|
padding: 5px 0;
|
|
|
|
text-align: center;
|
|
|
|
color: @btn-disable-color;
|
|
|
|
}
|
|
|
|
&-not-found .@{select-dropdown-prefix-cls} {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2016-11-15 19:17:54 +08:00
|
|
|
&-menu{
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 100px;
|
|
|
|
height: 180px;
|
|
|
|
margin: 0;
|
2016-11-16 11:01:54 +08:00
|
|
|
padding: 5px 0 !important;
|
2016-11-15 19:17:54 +08:00
|
|
|
vertical-align: top;
|
|
|
|
list-style: none;
|
|
|
|
border-right: 1px solid @border-color-split;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-right-color: transparent;
|
|
|
|
margin-right: -1px;
|
|
|
|
}
|
|
|
|
&:only-child {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
& &-item{
|
|
|
|
position: relative;
|
|
|
|
padding-right: 24px;
|
2016-11-27 00:25:19 +08:00
|
|
|
transition: all @transition-time @ease-in-out;
|
2016-11-15 19:17:54 +08:00
|
|
|
|
|
|
|
i{
|
|
|
|
font-size: @font-size-small;
|
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-active{
|
|
|
|
background-color: @background-color-select-hover;
|
2016-11-16 10:07:03 +08:00
|
|
|
color: @primary-color;
|
2016-11-15 19:17:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-11-27 00:25:19 +08:00
|
|
|
}
|
2017-01-04 17:37:16 +08:00
|
|
|
|
|
|
|
.@{form-item-prefix-cls}-error{
|
|
|
|
.@{cascader-prefix-cls} {
|
|
|
|
&-arrow{
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|