mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
51 lines
832 B
SCSS
51 lines
832 B
SCSS
@use "core/functions" as *;
|
|
@use "core/mixins" as *;
|
|
|
|
.details {
|
|
> .details-summary {
|
|
transition: border-radius 0.2s ease 0.2s;
|
|
@include border-radius;
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
i.details-icon {
|
|
color: fi-var(global-font-secondary-color);
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
color: fi-var(global-font-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
> .details-content {
|
|
height: 0;
|
|
overflow-y: hidden;
|
|
transition: height 0.5s ease-out;
|
|
}
|
|
|
|
&.open {
|
|
> .details-summary {
|
|
transition: border-radius 0s;
|
|
@include border-radius(top);
|
|
|
|
i.details-icon {
|
|
rotate: 90deg;
|
|
}
|
|
}
|
|
|
|
> .details-content {
|
|
height: auto;
|
|
@include border-radius(bottom);
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
> .details-summary {
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|