Added diff
All checks were successful
Deploy / build-and-publish (push) Successful in 1m42s
Deploy / deploy (push) Successful in 24s

This commit is contained in:
2024-10-05 12:43:05 +03:00
parent 2311498575
commit 4036f2451b
2 changed files with 15 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ import Navbar from "$lib/components/Navbar.svelte";
@apply p-0 relative block; @apply p-0 relative block;
&:has(.diff) { &:has(.diff) {
@apply ml-8; @apply ml-4;
} }
} }
@@ -58,12 +58,12 @@ import Navbar from "$lib/components/Navbar.svelte";
:global(code .diff.add) { :global(code .diff.add) {
background: #526a4f; background: #526a4f;
display: inline-block; display: inline-block;
width: calc(100% + 64px); width: calc(100% + 48px);
@apply pr-4 -mr-4 pl-12 -ml-12; @apply pr-4 -mr-4 pl-8 -ml-8;
&:before { &:before {
position: absolute; position: absolute;
left: -32px; left: -22px;
content: '+'; content: '+';
} }
} }

View File

@@ -100,24 +100,24 @@ npm i -D mdsvex @mavrin/remark-typograf
```js ```js
// svelte.config.js // svelte.config.js
import adapter from "@sveltejs/adapter-auto"; import adapter from "@sveltejs/adapter-auto";
import {vitePreprocess} from '@sveltejs/vite-plugin-svelte'; import {vitePreprocess} from "@sveltejs/vite-plugin-svelte";
import {mdsvex} from "mdsvex"; // [!code ++] import {mdsvex} from "mdsvex"; // [!code ++]
import remarkTypograf from "@mavrin/remark-typograf"; // [!code ++] import remarkTypograf from "@mavrin/remark-typograf"; // [!code ++]
const config = { const config = {
extensions: [ extensions: [
".svelte", ".svelte",
".svx" // [!code ++] ".svx" // [!code ++]
], ],
preprocess: [ preprocess: [
vitePreprocess(), vitePreprocess(),
mdsvex({ // [!code ++] mdsvex({ // [!code ++]
remarkPlugins: [remarkTypograf] // [!code ++] remarkPlugins: [remarkTypograf] // [!code ++]
}) // [!code ++] }) // [!code ++]
], ],
kit: { kit: {
adapter: adapter() adapter: adapter()
} }
}; };
export default config; export default config;