Skip to content

Commit

Permalink
release: v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored Apr 24, 2024
1 parent f6a7cd6 commit a2559f5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 1.3.2 (2024-04-24)

### Features

- **spoiler:** Provide a way to show spoilers while blurring the text
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aplos",
"version": "1.3.1",
"version": "1.3.2",
"description": "A sleek, contemporary, and purposefully designed VitePress theme",
"main": "index.ts",
"keywords": [
Expand Down
49 changes: 48 additions & 1 deletion styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ time {
from {
opacity: 1;
}

to {
opacity: 0.5;
}
Expand All @@ -260,6 +261,52 @@ time {
}
}

.spoiler {
font-weight: 600;

span {
filter: blur(4px);
transition: filter 0.3s ease;
font-weight: normal;
animation: glow 1.5s infinite linear alternate-reverse;

&:hover {
filter: none;
animation: none;
}

&:active {
font-style: italic;
}
}

@keyframes glow {
0% {
text-shadow: 0 0 0 var(--color-accent);
}

20% {
text-shadow: 0 0 4px var(--color-accent);
}

40% {
text-shadow: 0 0 6px var(--color-accent);
}

60% {
text-shadow: 0 0 8px var(--color-accent);
}

80% {
text-shadow: 0 0 10px var(--color-accent);
}

100% {
text-shadow: 0 0 15px var(--color-accent);
}
}
}

mark {
background-color: var(--color-background-second);
color: var(--color-accent);
Expand Down Expand Up @@ -346,4 +393,4 @@ button {
abbr {
cursor: help;
text-decoration: 1px dotted underline;
}
}

0 comments on commit a2559f5

Please sign in to comment.