diff --git a/astro.config.mjs b/astro.config.mjs index 16f9289..0f91b92 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,6 +5,7 @@ import svelte from "@astrojs/svelte"; import rehypeMermaid from "rehype-mermaid"; import remarkMath from "remark-math"; import rehypeKatex from "rehype-katex"; +import rehypeImageCaptions from "./src/plugins/rehype-image-captions.mjs"; // https://astro.build/config import { fileURLToPath } from 'node:url' @@ -27,6 +28,7 @@ export default defineConfig({ excludeLangs: ['mermaid', 'math'], }, rehypePlugins: [ + rehypeImageCaptions, rehypeMermaid, rehypeKatex, ], diff --git a/src/components/FloatingActions.astro b/src/components/FloatingActions.astro index 72da520..20d1f0c 100644 --- a/src/components/FloatingActions.astro +++ b/src/components/FloatingActions.astro @@ -62,14 +62,13 @@ border-right: var(--deep-blue) 2.5px solid; border-bottom: var(--deep-blue) 2.5px solid; border-radius: 999px; - background: rgba(255, 255, 255, 0.92); + background: color-mix(in srgb, var(--background-color) 94%, transparent); color: #222; /* box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); */ cursor: pointer; display: flex; align-items: center; justify-content: center; - backdrop-filter: blur(6px); } #theme-toggle-fab { @@ -141,10 +140,16 @@ :global(.dark) #theme-toggle-fab, :global(.dark) #back-to-top { - background: rgba(34, 34, 34, 0.92); + background: color-mix( + in srgb, + var(--background-color-dark) 94%, + transparent + ); color: #f5f5f5; - box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32); - border: #515151 2px solid; + border-top-color: #515151; + border-left-color: #515151; + border-right-color: #515151; + border-bottom-color: #515151; } @media (max-width: 640px) { diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 271ad87..895a3f1 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -9,7 +9,9 @@ const t = getTranslations(lang); ---