naive-ui/styles/Collapse.scss
2019-11-29 14:45:32 +08:00

72 lines
1.8 KiB
SCSS

@import './mixins/mixins.scss';
@include themes-mixin {
@include b(collapse) {
@include once {
width: 100%;
}
@include b(collapse-item) {
@include once {
overflow: hidden;
font-size: 14px;
transition: border-color .3s $default-cubic-bezier;
margin-top: 16px;
&:first-child {
margin-top: 0px;
}
&:first-child > {
@include e(header) {
padding-top: 0px;
}
}
@include b(collapse-item) {
margin-left: 32px;
}
@include e(content-wrapper) {
@include fade-in-height-expand-transition($duration: .15s);
overflow: hidden;
}
@include m(active) {
@include e(header) {
@include m(active) {
@include b(icon) {
transform: rotate(90deg);
}
}
}
}
}
&:not(:first-child) {
border-top: 1px solid $--collapse-border-color;
}
@include e(header) {
@include once {
transition: color .3s $default-cubic-bezier;
position: relative;
cursor: pointer;
margin-left: 18px;
padding: 16px 0 0 0;
@include b(icon) {
transition: transform .15s $default-cubic-bezier, fill .3s $default-cubic-bezier;
font-size: 16px;
position: absolute;
left: -18px;
bottom: 0px;
}
}
color: $--collapse-header-text-color;
@include b(icon) {
fill: $--collapse-header-text-color;
}
}
@include e(content-inner) {
@include once {
transition: color .3s $default-cubic-bezier;
padding-top: 16px;
}
color: $--collapse-content-text-color;
}
}
}
}