Formatting & styling

main
E. Almqvist 2 years ago
parent 1de19d7587
commit 5baffd02ca
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 107
      styles/globals.css

@ -1,78 +1,91 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap'); @import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
:root { :root {
font-size: 16px; font-size: 16px;
--border-type: solid; --border-type: solid;
--border-size: 1px; --border-size: 1px;
--border-color: var(--fg-faded); --border-color: var(--fg-faded);
--border-radius: 1rem; --border-radius: 1rem;
--content-max-width: 850px; --content-max-width: 850px;
--h-uni-padding: .8rem; --h-uni-padding: 0.8rem;
--v-uni-padding: .2rem; --v-uni-padding: 0.2rem;
--fg: #c5c8c6; --fg: #c5c8c6;
color: var(--fg); color: var(--fg);
--fg-emph: var(--fg); --fg-emph: var(--fg);
--fg-faded: #969896; --fg-faded: #969896;
--fg-button: var(--fg-faded); --fg-button: var(--fg-faded);
--fg-link: #5b83a6; --fg-link: #5b83a6;
--fg-code: #de935f; --fg-code: #de935f;
--fg-gold: #f0c674; --fg-gold: #f0c674;
--emph-shadow: 0 0 2px; --emph-shadow: 0 0 2px;
--bg: #16191c; --bg: #16191c;
--bg-emph: #212426; --bg-emph: #212426;
--trans-time: 150ms; --trans-time: 150ms;
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
font-family: "Fira Code", monospace; font-family: "Fira Code", monospace;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
html { html {
background: var(--bg); background: var(--bg);
scroll-behavior: smooth; scroll-behavior: smooth;
scroll-snap-type: y mandatory; scroll-snap-type: y mandatory;
} }
section { section {
/* scroll-snap-align: center; */ /* scroll-snap-align: center; */
} }
#__next { /*body*/ #__next {
display: flex; /*body*/
flex-direction: column; display: flex;
margin: 0 auto; flex-direction: column;
max-width: var(--content-max-width); margin: 0 auto;
min-height: 100vh; max-width: var(--content-max-width);
min-height: 100vh;
} }
a { a {
color: var(--fg-link); color: var(--fg-link);
text-decoration: none; text-decoration: none;
transition: var(--trans-time) opacity; transition: var(--trans-time) opacity;
} }
a:hover { a:hover {
opacity: .8; opacity: 0.8;
} }
h1, h2, h3, h4, h5, em { /* h1, */
font-weight: normal; /* h2, */
color: var(--fg-emph); /* h3, */
/* h4, */
/* h5, */
/* em { */
/* font-weight: normal; */
/* color: var(--fg-emph); */
/* } */
h1,
h2,
h3,
h4,
h5 {
font-weight: bold;
} }
p { p {
margin: .5rem 0; margin: 0.5rem 0;
} }
em { em {
/* font-weight: normal; */ /* font-weight: normal; */
font-style: normal; font-style: normal;
/* text-shadow: var(--emph-shadow) currentColor; */ /* text-shadow: var(--emph-shadow) currentColor; */
} }

Loading…
Cancel
Save