From 84042c6df23f8553597277c6abe69a97316d8688 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Tue, 7 Feb 2023 00:22:02 -0500 Subject: [PATCH] scss go brrr Co-authored-by: xTymon --- .vscode/settings.json | 1 - css/index.scss | 60 +++++++++++++++++++++++++++++++------------ routes/search.tsx | 4 +-- 3 files changed, 45 insertions(+), 20 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 415c95c..0eb830f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,5 @@ { "deno.enable": true, "deno.unstable": true, - "deno.importMap": "./import_map.json", "editor.formatOnSave": true } diff --git a/css/index.scss b/css/index.scss index 14b2f9a..9d8c83d 100644 --- a/css/index.scss +++ b/css/index.scss @@ -1,13 +1,20 @@ +// no god (even fictional) can save you after you look at this (s)css file + +// checkmate atheists +@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap"); + html { - background-color:beige; - font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + background-color: #181a1a; + color: #e8e6e3; + font-family: "IBM Plex Sans", sans-serif; + color-scheme: dark; } a { &:link, &:visited, &:hover { - color: black; + color: #e8e6e3; } } @@ -26,7 +33,6 @@ h3 { display: flex; flex-direction: column; align-items: center; - /* a bit of jank */ input { border-radius: 0.25em; } @@ -40,7 +46,7 @@ h3 { flex-direction: column; align-items: center; a { - color: black; + color: #e8e6e3; border: none; outline: none; text-decoration: none; @@ -81,24 +87,26 @@ h3 { } .header { - position: sticky; top: 0.5em; - background-color: darkgrey; + background-color: #4c4f50; width: 100%; min-height: 2em; display: flex; align-items: center; justify-content: center; + position: sticky; &#storyHeader { justify-content: flex-start; + position: relative; } overflow-x: auto; overflow-y: auto; border-radius: 0.5em; border-style: solid; border-width: 1px; - border-color:#0f0f0f; - a, p { + border-color: #877d6f; + a, + p { &:first-child { margin-left: 0.5em; } @@ -110,29 +118,29 @@ h3 { &:link, &:visited, &:hover { - color: black; + color: #e8e6e3; } display: flex; text-align: center; margin-right: 0.5em; - width:fit-content; + width: fit-content; } p { - color: black !important; + color: #e8e6e3 !important; } } .vertical-line { border-radius: 0.5em; border-style: solid; - border-color:#0f0f0f; + border-color: #877d6f; margin-right: 0.5em; height: 100%; } .search-form { - flex-direction:column; + flex-direction: column; display: flex; align-items: center; justify-content: center; @@ -149,7 +157,16 @@ h3 { margin-bottom: 0.25em; } } -} + } + input, + button, + div > input { + &[type="radio"] { + } + color: #e8e6e3; + border-color: #877d6f; + background-color: #2b2a33; + } } .favorite-story-button { @@ -160,6 +177,7 @@ h3 { .saved-container { display: flex; flex-direction: row; + row-gap: 5em; flex-grow: 1; @media (max-width: 650px) { @@ -169,6 +187,14 @@ h3 { align-items: center; } } + + :first-child { + padding-right: 0.5em; + } + + :last-child { + padding-left: 0.5em; + } } .saved-child { @@ -184,7 +210,7 @@ h3 { border-radius: 0.5em; border-style: solid; border-width: 1px; - border-color:#0f0f0f; + border-color: #0f0f0f; padding: 0.2em; margin-bottom: 0.5em; } @@ -210,4 +236,4 @@ h3 { } margin-top: 1em; width: 75%; -} \ No newline at end of file +} diff --git a/routes/search.tsx b/routes/search.tsx index 2a26007..6675378 100644 --- a/routes/search.tsx +++ b/routes/search.tsx @@ -101,14 +101,14 @@ export default async (params: URLSearchParams) => {
{params.get("query") && params.get("type") ? (