2015-07-11 10:17:58 +08:00
|
|
|
@prefixCls: ant-collapse;
|
2015-07-21 20:53:36 +08:00
|
|
|
@borderStyle: 1px solid #d9d9d9;
|
2015-07-11 10:17:58 +08:00
|
|
|
|
|
|
|
#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} {
|
2015-07-15 11:34:18 +08:00
|
|
|
background-color: #f4f4f4;
|
2015-07-11 10:17:58 +08:00
|
|
|
border-radius: 3px;
|
2015-07-21 20:53:36 +08:00
|
|
|
border: @borderStyle;
|
2015-07-11 10:17:58 +08:00
|
|
|
|
2015-07-14 21:09:16 +08:00
|
|
|
& > &-item {
|
2015-07-21 20:53:36 +08:00
|
|
|
border-top: @borderStyle;
|
|
|
|
&:first-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
2015-07-14 21:09:16 +08:00
|
|
|
> .@{prefixCls}-header {
|
|
|
|
height: 38px;
|
|
|
|
line-height: 38px;
|
|
|
|
text-indent: 16px;
|
2015-07-21 15:29:47 +08:00
|
|
|
color: #666;
|
2015-07-24 22:07:59 +08:00
|
|
|
cursor: pointer;
|
2015-07-14 21:09:16 +08:00
|
|
|
&:before {
|
|
|
|
display: inline-block;
|
|
|
|
content: '\20';
|
|
|
|
#arrow > .common();
|
|
|
|
#arrow > .right(3px, 4px, #666);
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-11 10:17:58 +08:00
|
|
|
&-content {
|
|
|
|
height: 0;
|
2015-07-14 21:09:16 +08:00
|
|
|
transition-duration: .3s;
|
2015-07-23 15:04:12 +08:00
|
|
|
transition-timing-function: @ease-out;
|
2015-07-11 10:17:58 +08:00
|
|
|
overflow: hidden;
|
2015-07-21 15:17:42 +08:00
|
|
|
color: @text-color;
|
2015-07-11 10:17:58 +08:00
|
|
|
padding: 0 16px;
|
2015-07-15 11:34:18 +08:00
|
|
|
background-color: #fff;
|
2015-07-14 21:09:16 +08:00
|
|
|
|
|
|
|
& > &-box {
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 16px;
|
2015-07-11 10:17:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-14 21:09:16 +08:00
|
|
|
&-item:last-child {
|
|
|
|
> .@{prefixCls}-content {
|
|
|
|
border-radius: 0 0 3px 3px;
|
|
|
|
}
|
2015-07-11 10:17:58 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 21:09:16 +08:00
|
|
|
&-content-active {
|
2015-07-11 10:17:58 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 21:09:16 +08:00
|
|
|
& > &-item-active {
|
|
|
|
> .@{prefixCls}-header {
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
#arrow > .bottom(3px, 4px, #666);
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
2015-07-11 10:17:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-14 21:09:16 +08:00
|
|
|
|