Skip to content

Commit b89e8fe

Browse files
fix: don't show code blocks in spoilers
1 parent 60b9259 commit b89e8fe

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib/app.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ html {
5252
@apply h-4 w-auto inline;
5353
}
5454

55-
.d-spoiler {
56-
@apply bg-base-content text-base-content;
55+
.d-spoiler, .d-spoiler * {
56+
@apply bg-base-content text-base-content inline-block px-1;
5757
border-radius: 4px;
5858
transition-delay: 6000s;
59+
cursor: pointer;
60+
}
61+
.d-spoiler::selection, .d-spoiler::selection * {
62+
@apply text-base-content;
63+
background-color: transparent;
64+
}
5965

60-
&::selection {
61-
@apply text-base-content;
62-
background-color: transparent;
63-
}
64-
65-
&:active {
66-
@apply bg-base-300;
67-
transition-delay: 0s;
68-
}
66+
.d-spoiler:active, .d-spoiler:active * {
67+
@apply bg-base-300;
68+
transition-delay: 0s;
6969
}
7070

7171
code {

0 commit comments

Comments
 (0)