font-size: 0.8rem;
&::details-content {
opacity: 0;
- block-size: 0;
}
&[open]::details-content {
opacity: 1;
- block-size: auto;
- transition: content-visibility 0.4s allow-discrete, opacity 0.4s, block-size 0.4s;
+ transition: all 0.4s linear;
}
}
summary:hover {
background-color: #000000;
margin-bottom: 1rem;
padding: 0.5rem;
- }
- details.spoiler[open] {
- color: unset;
- background-color: unset;
- border: 0.1rem solid;
+ &[open] {
+ color: unset;
+ background-color: unset;
+ border: 0.1rem solid;
+ }
+ &::details-content {
+ opacity: 0;
+ }
+ &[open]::details-content {
+ opacity: 1;
+ transition: all 0.4s linear;
+ }
}
</style>
\ No newline at end of file