c463ab87
梁灏
add Cascader
|
1
2
3
4
5
6
7
8
9
10
|
@cascader-prefix-cls: ~"@{css-prefix}cascader";
@cascader-item-prefix-cls: ~"@{css-prefix}cascader-menu-item";
.@{cascader-prefix-cls} {
position: relative;
.@{css-prefix}input{
display: block;
cursor: pointer;
}
|
05b5dd7b
梁灏
update Cascader
|
11
12
13
|
&-disabled .@{css-prefix}input{
cursor: @cursor-disabled;
}
|
c463ab87
梁灏
add Cascader
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
.@{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 {
|
165bb7c9
梁灏
update Cascader
|
30
31
|
.inner-arrow();
}
|
e2645048
jingsam
remove tra...
|
32
33
|
&-visible &-arrow:nth-of-type(2) {
transform: rotate(180deg);
|
c463ab87
梁灏
add Cascader
|
34
35
36
|
}
.@{select-dropdown-prefix-cls} {
|
9ec927b1
梁灏
update Cascader
|
37
|
width: auto;
|
c463ab87
梁灏
add Cascader
|
38
39
|
padding: 0;
white-space: nowrap;
|
e96fa06d
梁灏
update Cascader s...
|
40
|
overflow: visible;
|
c463ab87
梁灏
add Cascader
|
41
42
43
44
45
46
47
48
49
|
}
.select-item(@cascader-prefix-cls, @cascader-item-prefix-cls);
&-menu{
display: inline-block;
min-width: 100px;
height: 180px;
margin: 0;
|
9ec927b1
梁灏
update Cascader
|
50
|
padding: 5px 0 !important;
|
c463ab87
梁灏
add Cascader
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
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;
|
e2645048
jingsam
remove tra...
|
70
|
transition: all @transition-time @ease-in-out;
|
c463ab87
梁灏
add Cascader
|
71
72
73
74
75
76
77
78
79
80
81
|
i{
font-size: @font-size-small;
position: absolute;
right: 15px;
top: 50%;
margin-top: -6px;
}
&-active{
background-color: @background-color-select-hover;
|
165bb7c9
梁灏
update Cascader
|
82
|
color: @primary-color;
|
c463ab87
梁灏
add Cascader
|
83
84
85
|
}
}
}
|
e2645048
jingsam
remove tra...
|
86
|
}
|