From 18831d2e3f5d6dde650c28f4bbf6dcd85864f2c3 Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Fri, 22 Sep 2023 01:47:44 -0400 Subject: [PATCH] Create Modal component --- .vscode/settings.json | 6 +++- src/app.scss | 4 +++ src/lib/components/modal.svelte | 55 +++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 src/lib/components/modal.svelte diff --git a/.vscode/settings.json b/.vscode/settings.json index 49709b1..3a0d416 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,9 @@ "[svelte]": { "editor.defaultFormatter": "svelte.svelte-vscode" }, - "typescript.tsdk": "node_modules\\typescript\\lib" + "typescript.tsdk": "node_modules\\typescript\\lib", + "svelte.plugin.svelte.compilerWarnings": { + "a11y-no-noninteractive-element-interactions": "ignore", + "a11y-click-events-have-key-events": "ignore" + } } diff --git a/src/app.scss b/src/app.scss index b0d221d..5b837c6 100644 --- a/src/app.scss +++ b/src/app.scss @@ -56,6 +56,10 @@ ol > li { list-style: decimal; } +html.modal-is-open { + scrollbar-gutter: stable; +} + body:has(.bytemd-fullscreen) { overflow: hidden; } diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte new file mode 100644 index 0000000..211879b --- /dev/null +++ b/src/lib/components/modal.svelte @@ -0,0 +1,55 @@ + + + +
+
+ {title} +
+ +
+ +
+
+ +