spoiler tag

This commit is contained in:
polv committed 2026-03-25 06:24:45 +07:00
1 parent 9e8aeb04a1
commit d73dee6410
6 files changed
+301 -33

No files matched your search

+5 -1
View File
@@ -1,7 +1,7 @@
<template>
<details>
<summary :class="$style.summary">{{ summary }}</summary>
<blockquote>
<blockquote :class="$style.inner">
<slot />
</blockquote>
</details>
@@ -17,4 +17,8 @@ defineProps<{
.summary {
margin-top: -1em !important;
}
.inner p {
margin: 16px 0;
}
</style>
+3 -2
View File
@@ -1,10 +1,10 @@
<template>
<span>
<span ref="main">
<span ref="main" :class="class">
<slot />
</span>
<span>
<button type="button" @click="playAudio()">▶️</button>
<button type="button" @click="playAudio()">🎤︎︎</button>
</span>
</span>
</template>
@@ -13,6 +13,7 @@
import { useTemplateRef } from "vue";
const { lang = "ko" } = defineProps<{
class?: string;
lang?: string;
}>();
+3
View File
@@ -0,0 +1,3 @@
.spoiler:not(:hover) {
filter: blur(5px);
}
+1
View File
@@ -1,3 +1,4 @@
import "./custom.css";
import "./style.css";
import DefaultTheme from "vitepress/theme";