mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 04:02:40 +00:00
e9366b5ab2
- [interpolate-size](https://developer.mozilla.org/en-US/docs/Web/CSS/interpolate-size) - [calc-size()](https://developer.mozilla.org/en-US/docs/Web/CSS/calc-size)
46 lines
863 B
SCSS
46 lines
863 B
SCSS
.details {
|
|
> .details-summary {
|
|
@include border-radius($global-border-radius);
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
i.details-icon {
|
|
color: $global-font-secondary-color;
|
|
@include transition(transform 0.2s ease);
|
|
|
|
[data-theme='dark'] & {
|
|
color: $global-font-secondary-color-dark;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .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;
|
|
}
|
|
}
|
|
}
|