ant-design/style/components/collapse.less

91 lines
1.6 KiB
Plaintext
Raw Normal View History

2015-08-20 16:55:42 +08:00
@collapse-prefix-cls: ant-collapse;
2015-07-11 10:17:58 +08:00
#arrow {
2015-08-17 12:27:03 +08:00
.close() {
.iconfont-size-under-12px(7px, 270deg);
2015-07-11 10:17:58 +08:00
}
2015-08-17 12:27:03 +08:00
.open() {
.iconfont-size-under-12px(7px, 360deg);
2015-07-11 10:17:58 +08:00
}
}
2015-08-20 16:55:42 +08:00
.@{collapse-prefix-cls} {
2015-07-15 11:34:18 +08:00
background-color: #f4f4f4;
2015-07-11 10:17:58 +08:00
border-radius: 3px;
2015-08-20 16:55:42 +08:00
border: 1px solid #d9d9d9;
2015-07-11 10:17:58 +08:00
2015-07-14 21:09:16 +08:00
& > &-item {
2015-08-20 16:55:42 +08:00
border-top: 1px solid #d9d9d9;
2015-07-21 20:53:36 +08:00
&:first-child {
border-top: none;
}
2015-08-20 16:55:42 +08:00
> .@{collapse-prefix-cls}-header {
2015-07-14 21:09:16 +08:00
height: 38px;
line-height: 38px;
padding-left: 32px;
2015-07-21 15:29:47 +08:00
color: #666;
cursor: pointer;
position: relative;
.arrow {
#arrow > .close();
.iconfont-mixin();
position: absolute;
2015-08-17 12:27:03 +08:00
color: #666;
2015-07-14 21:09:16 +08:00
display: inline-block;
margin-right: 8px;
2015-08-23 15:29:20 +08:00
content: "\e60f";
2015-08-17 12:27:03 +08:00
vertical-align: middle;
transition: transform 0.24s ease;
top: -1px;
left: 16px;
top: ~"16px \9";
left: ~"0 \9";
&:before {
content:"\e60f";
}
2015-07-14 21:09:16 +08:00
}
}
}
2015-07-11 10:17:58 +08:00
&-content {
2015-08-31 16:58:27 +08:00
display: none;
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 {
2015-08-20 15:39:36 +08:00
padding-top: 16px;
padding-bottom: 16px;
2015-07-11 10:17:58 +08:00
}
2015-08-31 16:58:27 +08:00
&-active {
display: block;
}
2015-07-11 10:17:58 +08:00
}
2015-08-23 15:29:20 +08:00
&-collapsing {
transition-duration: .24s;
transition-timing-function: @ease-out-circ;
2015-08-23 15:29:20 +08:00
}
2015-07-14 21:09:16 +08:00
&-item:last-child {
2015-08-20 16:55:42 +08:00
> .@{collapse-prefix-cls}-content {
2015-07-14 21:09:16 +08:00
border-radius: 0 0 3px 3px;
}
2015-07-11 10:17:58 +08:00
}
2015-07-14 21:09:16 +08:00
& > &-item-active {
2015-08-20 16:55:42 +08:00
> .@{collapse-prefix-cls}-header {
2015-07-14 21:09:16 +08:00
.arrow {
top: -1px;
left: 16px;
2015-08-17 12:27:03 +08:00
#arrow > .open();
2015-07-14 21:09:16 +08:00
}
2015-07-11 10:17:58 +08:00
}
}
}