From 764290698f7cf3cca3f81b227995d9bc5e721bd6 Mon Sep 17 00:00:00 2001 From: sloane <1699281+sloanelybutsurely@users.noreply.github.com> Date: Sat, 24 Feb 2024 10:34:46 -0500 Subject: [PATCH] remove dark mode support for now --- assets/css/app.css | 9 --------- lib/sloane_sh/build.ex | 4 ++-- priv/site/layouts/page.html.eex | 2 +- priv/site/layouts/post.html.eex | 2 +- priv/site/layouts/root.html.eex | 2 +- 5 files changed, 5 insertions(+), 14 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 091e0d3..76fcadc 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -1,12 +1,3 @@ @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; - -@media (perfers-color-scheme: dark) { - --pagefind-ui-primary: #eeeeee; - --pagefind-ui-text: #eeeeee; - --pagefind-ui-background: #152028; - --pagefind-ui-border: #152028; - --pagefind-ui-tag: #152028; -} - diff --git a/lib/sloane_sh/build.ex b/lib/sloane_sh/build.ex index 5f33f30..ff62201 100644 --- a/lib/sloane_sh/build.ex +++ b/lib/sloane_sh/build.ex @@ -31,7 +31,7 @@ defmodule SloaneSH.Build do path = Path.join(ctx.config.pages_dir, page) with {:ok, data} <- File.read(path), - {:ok, md} <- Markdown.transform(ctx, data), + {:ok, md} <- Markdown.transform(ctx, data), contents = Layouts.page_layout(ctx, md.attrs, md.html), html = Layouts.root_layout(ctx, md.attrs, contents), :ok <- Write.page(ctx, page, html) do @@ -45,7 +45,7 @@ defmodule SloaneSH.Build do path = Path.join(ctx.config.posts_dir, post) with {:ok, data} <- File.read(path), - {:ok, md} <- Markdown.transform(ctx, data), + {:ok, md} <- Markdown.transform(ctx, data), contents = Layouts.post_layout(ctx, md.attrs, md.html), html = Layouts.root_layout(ctx, md.attrs, contents), :ok <- Write.post(ctx, post, html) do diff --git a/priv/site/layouts/page.html.eex b/priv/site/layouts/page.html.eex index 579dd16..4fd910d 100644 --- a/priv/site/layouts/page.html.eex +++ b/priv/site/layouts/page.html.eex @@ -1,4 +1,4 @@ <%= header(ctx, attrs) %> -
+
<%= inner_content %>
diff --git a/priv/site/layouts/post.html.eex b/priv/site/layouts/post.html.eex index 1e6a9da..c4daf68 100644 --- a/priv/site/layouts/post.html.eex +++ b/priv/site/layouts/post.html.eex @@ -1,5 +1,5 @@ <%= header(ctx, attrs) %> -
+
<%= inner_content %>
diff --git a/priv/site/layouts/root.html.eex b/priv/site/layouts/root.html.eex index 6b834ff..7fe60c0 100644 --- a/priv/site/layouts/root.html.eex +++ b/priv/site/layouts/root.html.eex @@ -7,7 +7,7 @@ <%= prefix_title("sloane.sh", attrs[:page_title]) %> - + <%= inner_content %>