mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
42 lines
792 B
SCSS
42 lines
792 B
SCSS
.details {
|
|
> .details-summary {
|
|
@include border-radius($global-border-radius);
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
i.details-icon {
|
|
color: var(#{$rootPrefix}global-font-secondary-color);
|
|
@include transition(transform 0.2s ease);
|
|
}
|
|
}
|
|
|
|
> .details-content {
|
|
height: 0;
|
|
overflow-y: hidden;
|
|
@include transition(height 0.5s ease-out);
|
|
}
|
|
|
|
&.open {
|
|
> .details-summary {
|
|
@include border-radius($global-border-radius $global-border-radius 0 0);
|
|
|
|
i.details-icon {
|
|
@include transform(rotate(90deg));
|
|
}
|
|
}
|
|
|
|
> .details-content {
|
|
height: auto;
|
|
@include border-radius(0 0 $global-border-radius $global-border-radius);
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
> .details-summary {
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|