mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-25 07:48:54 +00:00
bd40c85586
refactor admonition shortcode: add todo type and aliases type change min hugo version: 0.134.0
47 lines
903 B
SCSS
47 lines
903 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 {
|
|
max-height: 0;
|
|
overflow-y: hidden;
|
|
@include details-transition-open;
|
|
}
|
|
|
|
&.open {
|
|
> .details-summary {
|
|
@include border-radius($global-border-radius $global-border-radius 0 0);
|
|
|
|
i.details-icon {
|
|
@include transform(rotate(90deg));
|
|
}
|
|
}
|
|
|
|
> .details-content {
|
|
max-height: 100%;
|
|
@include border-radius(0 0 $global-border-radius $global-border-radius);
|
|
@include details-transition-close;
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
> .details-summary {
|
|
cursor: default;
|
|
}
|
|
}
|
|
}
|