From 0f51f6e71fb1a15bc72a3250a5ee05e62fda1594 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Thu, 13 Feb 2025 10:32:20 -0800 Subject: [PATCH] server: copy vars.css from web so I can publish release --- server/src/lib.rs | 2 +- server/static/vars.css | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 server/static/vars.css diff --git a/server/src/lib.rs b/server/src/lib.rs index c7e3f80..c53463a 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -341,7 +341,7 @@ impl<'c> Transformer for SlurpContents<'c> { "/* chrome-default.css */\n", include_str!("chrome-default.css"), "\n/* vars.css */\n", - include_str!("../../web/static/vars.css"), + include_str!("../static/vars.css"), //"\n/* Xinu Specific overrides */\n", //include_str!("custom.css"), ); diff --git a/server/static/vars.css b/server/static/vars.css new file mode 100644 index 0000000..cc126e1 --- /dev/null +++ b/server/static/vars.css @@ -0,0 +1,42 @@ +:root { + --active-brightness: 0.85; + --border-radius: 5px; + --box-shadow: 2px 2px 10px; + --color-accent: #118bee15; + --color-bg: #fff; + --color-bg-secondary: #e9e9e9; + --color-link: #118bee; + --color-secondary: #920de9; + --color-secondary-accent: #920de90b; + --color-shadow: #f4f4f4; + --color-table: #118bee; + --color-text: #000; + --color-text-secondary: #999; + --color-scrollbar: #cacae8; + --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + --hover-brightness: 1.2; + --justify-important: center; + --justify-normal: left; + --line-height: 1.5; + /* + --width-card: 285px; + --width-card-medium: 460px; + --width-card-wide: 800px; +*/ + --width-content: 1080px; +} + +@media (prefers-color-scheme: dark) { + :root[color-mode="user"] { + --color-accent: #0097fc4f; + --color-bg: #333; + --color-bg-secondary: #555; + --color-link: #0097fc; + --color-secondary: #e20de9; + --color-secondary-accent: #e20de94f; + --color-shadow: #bbbbbb20; + --color-table: #0097fc; + --color-text: #f7f7f7; + --color-text-secondary: #aaa; + } +} \ No newline at end of file