提交 9137920f 编写于 作者: 翰文

feat: Collapse兼容ie8和Safari

closes #138, #161

Conflicts:
	style/components/collapse.less
上级 4a51421b
...@@ -23,20 +23,28 @@ ...@@ -23,20 +23,28 @@
> .@{collapse-prefix-cls}-header { > .@{collapse-prefix-cls}-header {
height: 38px; height: 38px;
line-height: 38px; line-height: 38px;
padding-left: 16px; padding-left: 32px;
color: #666; color: #666;
cursor: pointer; cursor: pointer;
&:before { position: relative;
font-family: "anticon" !important;
.arrow {
#arrow > .close();
.iconfont-mixin();
position: absolute;
color: #666; color: #666;
display: inline-block; display: inline-block;
margin-right: 8px; margin-right: 8px;
content: "\e60f"; content: "\e60f";
#arrow > .close();
vertical-align: middle; vertical-align: middle;
transition: transform 0.24s ease; transition: transform 0.24s ease;
position: relative;
top: -1px; top: -1px;
left: 16px;
top: ~"16px \9";
left: ~"0 \9";
&:before {
content:"\e60f";
}
} }
} }
} }
...@@ -55,9 +63,8 @@ ...@@ -55,9 +63,8 @@
} }
&-collapsing { &-collapsing {
transition-duration: .3s; transition-duration: .24s;
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transition-timing-function: @ease-out-circ;
transition-property: height;
} }
&-item:last-child { &-item:last-child {
...@@ -73,7 +80,9 @@ ...@@ -73,7 +80,9 @@
& > &-item-active { & > &-item-active {
> .@{collapse-prefix-cls}-header { > .@{collapse-prefix-cls}-header {
&:before { .arrow {
top: -1px;
left: 16px;
#arrow > .open(); #arrow > .open();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册