-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathindex.less
More file actions
123 lines (108 loc) · 2.33 KB
/
index.less
File metadata and controls
123 lines (108 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@prefixCls: rc-collapse;
@text-color: #666;
@borderStyle: 1px solid #d9d9d9;
@import './motion.less';
#arrow {
.common() {
width: 0;
height: 0;
font-size: 0;
line-height: 0;
}
.right(@w, @h, @color) {
border-top: @w solid transparent;
border-bottom: @w solid transparent;
border-left: @h solid @color;
}
.bottom(@w, @h, @color) {
border-left: @w solid transparent;
border-right: @w solid transparent;
border-top: @h solid @color;
}
}
.@{prefixCls} {
background-color: #f7f7f7;
border-radius: 3px;
border: @borderStyle;
// &-anim-active {
// transition: height 0.2s ease-out;
// }
& > &-item {
border-top: @borderStyle;
&:first-child {
border-top: none;
}
> .@{prefixCls}-header,
> .@{prefixCls}-header-wrapper > .@{prefixCls}-header {
display: flex;
align-items: center;
line-height: 22px;
padding: 10px 16px;
color: #666;
cursor: pointer;
.arrow {
display: inline-block;
content: '\20';
#arrow > .common();
#arrow > .right(3px, 4px, #666);
vertical-align: middle;
margin-right: 8px;
}
.@{prefixCls}-extra {
margin: 0 16px 0 auto;
}
}
.@{prefixCls}-collapsible-header {
cursor: default;
.@{prefixCls}-title {
cursor: pointer;
}
.@{prefixCls}-expand-icon {
cursor: pointer;
}
}
.@{prefixCls}-collapsible-icon {
cursor: default;
.@{prefixCls}-expand-icon {
cursor: pointer;
}
}
}
& > &-item-disabled {
> .@{prefixCls}-header,
> .@{prefixCls}-header-wrapper > .@{prefixCls}-header {
cursor: not-allowed;
color: #999;
background-color: #f3f3f3;
}
}
&-panel {
overflow: hidden;
color: @text-color;
padding: 0 16px;
background-color: #fff;
& > &-box {
margin-top: 16px;
margin-bottom: 16px;
}
// &-inactive {
// display: none;
// }
}
&-item:last-child {
> .@{prefixCls}-panel {
border-radius: 0 0 3px 3px;
}
}
& > &-item-active {
> .@{prefixCls}-header,
> .@{prefixCls}-header-wrapper > .@{prefixCls}-header {
.arrow {
position: relative;
top: 2px;
#arrow > .bottom(3px, 4px, #666);
margin-right: 6px;
}
}
}
}