(design) less eyesore for .spoiler (especially in longer spoiler texts)

This commit is contained in:
Andrea Vos 2025-03-02 13:42:45 +01:00
parent 6da83f3613
commit a275e0399f
2 changed files with 12 additions and 12 deletions

View File

@ -360,10 +360,10 @@ body[data-theme="dark"] {
}
.spoiler {
background-color: $light;
color: $light;
background-color: $primary-bg-subtle-dark;
color: $primary-bg-subtle-dark;
&:hover {
background-color: $dark;
color: $white;
}
}

View File

@ -160,14 +160,14 @@ onMounted(async () => {
}
.spoiler {
background-color: $dark;
color: $dark;
padding: map-get($spacers, 1);
border-radius: $border-radius;
cursor: pointer;
transition: background-color .2s ease-in-out;
&:hover {
background-color: $light;
}
background-color: $primary-bg-subtle;
color: $primary-bg-subtle;
padding: map-get($spacers, 1);
border-radius: $border-radius;
cursor: pointer;
transition: color .2s ease-in-out;
&:hover {
color: $black;
}
}
</style>