Squashed 'themes/tabi-lean/' content from commit 95c8796

git-subtree-dir: themes/tabi-lean
git-subtree-split: 95c879696445ede40daa7a30a88dae5dd74d5c0c
This commit is contained in:
Fabian Montero 2025-09-13 14:21:22 -06:00
commit 14822297bd
332 changed files with 25244 additions and 0 deletions

53
sass/parts/_spoiler.scss Normal file
View file

@ -0,0 +1,53 @@
.spoiler-toggle {
display: none; // Hide the checkbox.
}
.spoiler-content {
display: inline-block; // Allow content to only take up its own width.
cursor: help; // Indicate interactive element.
.spoiler-hidden {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
filter: blur(6px);
user-select: none;
a {
pointer-events: none; // Make links unclickable.
}
}
}
.spoiler-toggle:checked + .spoiler-content {
.spoiler-hidden {
filter: none;
user-select: auto;
a {
pointer-events: auto; // Enable clicking on links when revealed.
}
}
}
.spoiler-container.fixed-blur {
.spoiler-content:before {
display: inline-block; // Block display within the inline flow.
filter: blur(6px);
content: 'SPOILER'; // Display the word "SPOILER".
}
.spoiler-content .spoiler-hidden {
display: none; // Completely hide the actual content.
}
.spoiler-toggle:checked + .spoiler-content {
&:before {
content: none; // Hide the word "SPOILER".
}
.spoiler-hidden {
display: inline; // Reveal the actual content.
}
}
}