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 @@

你好,我是狒狒,目前在中国台湾桃园市六福村附近山区,刚刚突然开始下大雷雨,我急需钱买雨具,若我日后逃脱成功,必有钜额回报,你可以帮帮我吗?请加Line:87878787monkey,谢谢!
- + 查看其他 diff --git a/src/routes/post/[...post]/+page.svelte b/src/routes/post/[...post]/+page.svelte index 69695ca..a870d8e 100644 --- a/src/routes/post/[...post]/+page.svelte +++ b/src/routes/post/[...post]/+page.svelte @@ -53,18 +53,17 @@ {#if pinned} {/if} - {author ? `By ${author}` : ""} - {author && date ? "/" : ""} - {localeDate} + + {pinned && !author && !date ? "Pinned" : ""} + {author ? `By ${author}` : ""} + {author && date ? "/" : ""} + {localeDate} + {#if data.session?.user?.role === "admin"} - + Edit diff --git a/src/routes/post/[...post]/edit/+page.svelte b/src/routes/post/[...post]/edit/+page.svelte index f4243f2..f11d7b6 100644 --- a/src/routes/post/[...post]/edit/+page.svelte +++ b/src/routes/post/[...post]/edit/+page.svelte @@ -75,28 +75,21 @@ {#if postData.pinned} {/if} - {postData.author ? `By ${postData.author}` : ""} - {postData.author && postData.date ? "/" : ""} - {localeDate} + + {postData.pinned && !postData.author && !postData.date ? "Pinned" : ""} + {postData.author ? `By ${postData.author}` : ""} + {postData.author && postData.date ? "/" : ""} + {localeDate} +
- -