From d44004e86b3ddf29fceefdd9009f4cb0decf29d4 Mon Sep 17 00:00:00 2001 From: trisua Date: Mon, 2 Jun 2025 20:33:51 -0400 Subject: [PATCH] add: slightly better default themes --- .github/CONTRIBUTING.md | 2 ++ CODEOWNERS | 1 + crates/app/src/public/css/style.css | 10 +++++----- crates/app/src/public/html/components.lisp | 4 +--- crates/app/src/public/html/root.lisp | 5 +++++ 5 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 CODEOWNERS diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 8e4ddfe..c0f62d0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -9,3 +9,5 @@ When creating an issue, please follow the given templates as best you can. Befor ## Merge Requests When creating a merge request, please ensure that your code actually compiles and runs without unexpected bugs. + +Merge requests can be submitted to me@trisua.com, where they will be reviewed and merged. Please include a link to your remote repository. diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..630d045 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* me@trisua.com diff --git a/crates/app/src/public/css/style.css b/crates/app/src/public/css/style.css index 9ae4ac8..1b0a22b 100644 --- a/crates/app/src/public/css/style.css +++ b/crates/app/src/public/css/style.css @@ -3,9 +3,9 @@ --hue: 16; --sat: 6%; --lit: 0%; - --color-surface: hsl(var(--hue), var(--sat), calc(95% - var(--lit))); - --color-lowered: hsl(var(--hue), var(--sat), calc(93% - var(--lit))); - --color-raised: hsl(var(--hue), var(--sat), calc(98% - var(--lit))); + --color-surface: hsl(var(--hue), var(--sat), calc(97% - var(--lit))); + --color-lowered: hsl(var(--hue), var(--sat), calc(94% - var(--lit))); + --color-raised: hsl(var(--hue), var(--sat), calc(99% - var(--lit))); --color-super-lowered: hsl(var(--hue), var(--sat), calc(85% - var(--lit))); --color-super-raised: hsl(var(--hue), var(--sat), calc(100% - var(--lit))); --color-text: hsl(0, 0%, 0%); @@ -35,8 +35,8 @@ .dark, .dark * { --hue: 266; - --sat: 8%; - --lit: 10%; + --sat: 14%; + --lit: 12%; --color-surface: hsl(var(--hue), var(--sat), calc(0% + var(--lit))); --color-lowered: hsl(var(--hue), var(--sat), calc(6% + var(--lit))); --color-raised: hsl(var(--hue), var(--sat), calc(2% + var(--lit))); diff --git a/crates/app/src/public/html/components.lisp b/crates/app/src/public/html/components.lisp index a9ca936..3bbe159 100644 --- a/crates/app/src/public/html/components.lisp +++ b/crates/app/src/public/html/components.lisp @@ -617,9 +617,7 @@ (icon (text "shield")) (span (text "View IP"))) - (div - ("class" "card secondary") - (pre (code (text "{{ question.ip }}"))))) + (pre (code (text "{{ question.ip }}")))) (text "{% endif %}") ; ... (div diff --git a/crates/app/src/public/html/root.lisp b/crates/app/src/public/html/root.lisp index b3eb385..fb5944a 100644 --- a/crates/app/src/public/html/root.lisp +++ b/crates/app/src/public/html/root.lisp @@ -83,6 +83,11 @@ document.documentElement.addEventListener(\"turbo:load\", () => { const atto = ns(\"atto\"); + if (!atto) { + window.location.reload(); + return; + } + atto.disconnect_observers(); atto.remove_false_options(); atto.clean_date_codes();