scss go brrr

Co-authored-by: xTymon <xtymon@riseup.net>
master
Drake 1 year ago
parent d47456b9a5
commit 84042c6df2

@ -1,6 +1,5 @@
{ {
"deno.enable": true, "deno.enable": true,
"deno.unstable": true, "deno.unstable": true,
"deno.importMap": "./import_map.json",
"editor.formatOnSave": true "editor.formatOnSave": true
} }

@ -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 { html {
background-color:beige; background-color: #181a1a;
font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; color: #e8e6e3;
font-family: "IBM Plex Sans", sans-serif;
color-scheme: dark;
} }
a { a {
&:link, &:link,
&:visited, &:visited,
&:hover { &:hover {
color: black; color: #e8e6e3;
} }
} }
@ -26,7 +33,6 @@ h3 {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
/* a bit of jank */
input { input {
border-radius: 0.25em; border-radius: 0.25em;
} }
@ -40,7 +46,7 @@ h3 {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
a { a {
color: black; color: #e8e6e3;
border: none; border: none;
outline: none; outline: none;
text-decoration: none; text-decoration: none;
@ -81,24 +87,26 @@ h3 {
} }
.header { .header {
position: sticky;
top: 0.5em; top: 0.5em;
background-color: darkgrey; background-color: #4c4f50;
width: 100%; width: 100%;
min-height: 2em; min-height: 2em;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: sticky;
&#storyHeader { &#storyHeader {
justify-content: flex-start; justify-content: flex-start;
position: relative;
} }
overflow-x: auto; overflow-x: auto;
overflow-y: auto; overflow-y: auto;
border-radius: 0.5em; border-radius: 0.5em;
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
border-color:#0f0f0f; border-color: #877d6f;
a, p { a,
p {
&:first-child { &:first-child {
margin-left: 0.5em; margin-left: 0.5em;
} }
@ -110,29 +118,29 @@ h3 {
&:link, &:link,
&:visited, &:visited,
&:hover { &:hover {
color: black; color: #e8e6e3;
} }
display: flex; display: flex;
text-align: center; text-align: center;
margin-right: 0.5em; margin-right: 0.5em;
width:fit-content; width: fit-content;
} }
p { p {
color: black !important; color: #e8e6e3 !important;
} }
} }
.vertical-line { .vertical-line {
border-radius: 0.5em; border-radius: 0.5em;
border-style: solid; border-style: solid;
border-color:#0f0f0f; border-color: #877d6f;
margin-right: 0.5em; margin-right: 0.5em;
height: 100%; height: 100%;
} }
.search-form { .search-form {
flex-direction:column; flex-direction: column;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -149,7 +157,16 @@ h3 {
margin-bottom: 0.25em; margin-bottom: 0.25em;
} }
} }
} }
input,
button,
div > input {
&[type="radio"] {
}
color: #e8e6e3;
border-color: #877d6f;
background-color: #2b2a33;
}
} }
.favorite-story-button { .favorite-story-button {
@ -160,6 +177,7 @@ h3 {
.saved-container { .saved-container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
row-gap: 5em;
flex-grow: 1; flex-grow: 1;
@media (max-width: 650px) { @media (max-width: 650px) {
@ -169,6 +187,14 @@ h3 {
align-items: center; align-items: center;
} }
} }
:first-child {
padding-right: 0.5em;
}
:last-child {
padding-left: 0.5em;
}
} }
.saved-child { .saved-child {
@ -184,7 +210,7 @@ h3 {
border-radius: 0.5em; border-radius: 0.5em;
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
border-color:#0f0f0f; border-color: #0f0f0f;
padding: 0.2em; padding: 0.2em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
@ -210,4 +236,4 @@ h3 {
} }
margin-top: 1em; margin-top: 1em;
width: 75%; width: 75%;
} }

@ -101,14 +101,14 @@ export default async (params: URLSearchParams) => {
</div> </div>
<div style="flex-direction: row !important;"> <div style="flex-direction: row !important;">
<input <input
style="margin-top:0.25em;margin-right:0.5em" style="margin-top:0.25em;"
type="submit" type="submit"
value="Submit" value="Submit"
/> />
{params.get("query") && params.get("type") ? ( {params.get("query") && params.get("type") ? (
<button <button
type="button" type="button"
style="margin-top:0.25em;border-radius: 0.25em;" style="margin-left:0.5em;margin-top:0.25em;border-radius: 0.25em;"
id="favorite" id="favorite"
> >
Favorite Favorite

Loading…
Cancel
Save