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.unstable": true,
"deno.importMap": "./import_map.json",
"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 {
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%;
}
}

@ -101,14 +101,14 @@ export default async (params: URLSearchParams) => {
</div>
<div style="flex-direction: row !important;">
<input
style="margin-top:0.25em;margin-right:0.5em"
style="margin-top:0.25em;"
type="submit"
value="Submit"
/>
{params.get("query") && params.get("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"
>
Favorite

Loading…
Cancel
Save