From 6fa808d46191d970be692c2f94515e5726c0fe98 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Wed, 23 Oct 2024 18:51:43 +0300 Subject: [PATCH] wip not reactive highlighting --- .vitepress/theme/custom.css | 4 ++ components/ConfigForm.vue | 4 +- components/NixPreview.vue | 88 +++++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 components/NixPreview.vue diff --git a/.vitepress/theme/custom.css b/.vitepress/theme/custom.css index b44f4b6..5c52773 100644 --- a/.vitepress/theme/custom.css +++ b/.vitepress/theme/custom.css @@ -57,3 +57,7 @@ margin: 1em 0; white-space: pre-wrap; } + +.nix-preview .shiki { + padding: 0.5em; +} diff --git a/components/ConfigForm.vue b/components/ConfigForm.vue index 0401b3e..cd4c301 100644 --- a/components/ConfigForm.vue +++ b/components/ConfigForm.vue @@ -1,6 +1,7 @@ + + +