2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
|
|
|
@import "common/var";
|
|
|
|
|
|
|
|
@include b(collapse) {
|
2017-09-11 11:08:08 +00:00
|
|
|
border-top: 1px solid $--collapse-border-color;
|
|
|
|
border-bottom: 1px solid $--collapse-border-color;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
@include b(collapse-item) {
|
|
|
|
@include e(header) {
|
|
|
|
height: $--collapse-header-height;
|
|
|
|
line-height: $--collapse-header-height;
|
|
|
|
background-color: $--collapse-header-fill;
|
|
|
|
color: $--collapse-header-color;
|
|
|
|
cursor: pointer;
|
|
|
|
border-bottom: 1px solid $--collapse-border-color;
|
|
|
|
font-size: $--collapse-header-size;
|
2017-09-11 11:08:08 +00:00
|
|
|
font-weight: 500;
|
|
|
|
transition: border-bottom-color .3s;
|
2017-09-29 07:58:07 +00:00
|
|
|
&:focus:not(.focusing), &:active {
|
|
|
|
outline-width: 0;
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
@include e(arrow) {
|
|
|
|
margin-right: 8px;
|
|
|
|
transition: transform .3s;
|
2017-09-11 11:08:08 +00:00
|
|
|
float: right;
|
|
|
|
line-height: 48px;
|
|
|
|
font-weight: 300;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(wrap) {
|
|
|
|
will-change: height;
|
|
|
|
background-color: $--collapse-content-fill;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-bottom: 1px solid $--collapse-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(content) {
|
2017-09-11 11:08:08 +00:00
|
|
|
padding-bottom: 25px;
|
2017-08-23 10:07:14 +00:00
|
|
|
font-size: $--collapse-content-size;
|
|
|
|
color: $--collapse-content-color;
|
|
|
|
line-height: 1.769230769230769;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include when(active) {
|
2017-09-29 07:58:07 +00:00
|
|
|
.el-collapse-item__header {
|
2017-09-11 11:08:08 +00:00
|
|
|
border-bottom-color: transparent;
|
2017-08-23 10:07:14 +00:00
|
|
|
.el-collapse-item__arrow {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: -1px;
|
|
|
|
}
|
|
|
|
}
|