mirror of https://github.com/ElemeFE/element
52 lines
1.2 KiB
SCSS
52 lines
1.2 KiB
SCSS
![]() |
@import "mixins/mixins";
|
||
|
@import "common/var";
|
||
|
|
||
|
@include b(collapse) {
|
||
|
border: 1px solid $--collapse-border-color;
|
||
|
border-radius: $--collapse-border-radius;
|
||
|
}
|
||
|
@include b(collapse-item) {
|
||
|
@include e(header) {
|
||
|
height: $--collapse-header-height;
|
||
|
line-height: $--collapse-header-height;
|
||
|
padding-left: 15px;
|
||
|
background-color: $--collapse-header-fill;
|
||
|
color: $--collapse-header-color;
|
||
|
cursor: pointer;
|
||
|
border-bottom: 1px solid $--collapse-border-color;
|
||
|
font-size: $--collapse-header-size;
|
||
|
|
||
|
@include e(arrow) {
|
||
|
margin-right: 8px;
|
||
|
transition: transform .3s;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@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) {
|
||
|
padding: 10px 15px;
|
||
|
font-size: $--collapse-content-size;
|
||
|
color: $--collapse-content-color;
|
||
|
line-height: 1.769230769230769;
|
||
|
}
|
||
|
|
||
|
@include when(active) {
|
||
|
> .el-collapse-item__header {
|
||
|
.el-collapse-item__arrow {
|
||
|
transform: rotate(90deg);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&:last-child {
|
||
|
margin-bottom: -1px;
|
||
|
}
|
||
|
}
|