diff --git a/src/app.postcss b/src/app.postcss index 8e8ee04..59a437b 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -21,6 +21,19 @@ } } +@layer components { + .btn-accent { + @apply rounded p-2 transition-all; + @apply border border-accent/80 text-accent; + @apply hover:border-accent hover:shadow-glow hover:shadow-accent/40 active:shadow-accent/60; + } + .btn-text { + @apply rounded p-2 transition-all; + @apply border border-text/80 text-text; + @apply hover:border-text hover:shadow-glow hover:shadow-text/40 active:shadow-text/60; + } +} + html, body { @apply h-full overflow-auto bg-background text-text; @@ -30,4 +43,17 @@ body { @apply bg-primary/60; } +.prose input[type="checkbox"] { + @apply rounded border-text/60 bg-transparent checked:bg-primary focus:ring-accent/60; +} + +.editor-preview table td, +.editor-preview table th { + border: 0; +} + +.editor-preview pre { + background: transparent; +} + /* vim: set ft=css: */ diff --git a/src/lib/components/EasyMde.svelte b/src/lib/components/EasyMde.svelte index e175d28..fd46f71 100644 --- a/src/lib/components/EasyMde.svelte +++ b/src/lib/components/EasyMde.svelte @@ -64,6 +64,6 @@ } .cm-comment { - @apply font-mono text-primary/20; + @apply font-mono; } diff --git a/src/lib/components/weird.svelte b/src/lib/components/Weird.svelte similarity index 56% rename from src/lib/components/weird.svelte rename to src/lib/components/Weird.svelte index a765cfd..0b427ef 100644 --- a/src/lib/components/weird.svelte +++ b/src/lib/components/Weird.svelte @@ -4,9 +4,7 @@
游😶育是甲,這是真的!
- +{#each Array(n) as _} diff --git a/src/lib/utils/exmarkdown-plugins.ts b/src/lib/utils/exmarkdown-plugins.ts index 514c215..4bd82dd 100644 --- a/src/lib/utils/exmarkdown-plugins.ts +++ b/src/lib/utils/exmarkdown-plugins.ts @@ -3,7 +3,7 @@ import { visit } from "unist-util-visit"; import rehypeRaw from "rehype-raw"; import rehypeSlug from "rehype-slug"; -import Weird from "../components/weird.svelte"; +import Weird from "../components/Weird.svelte"; /* export const codeBlockPlugin: Plugin = { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index fd7f734..b9b9202 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -101,11 +101,7 @@