summaryrefslogtreecommitdiff
path: root/css/main.css
diff options
context:
space:
mode:
Diffstat (limited to 'css/main.css')
-rwxr-xr-xcss/main.css42
1 files changed, 24 insertions, 18 deletions
diff --git a/css/main.css b/css/main.css
index f3ff528..769f97b 100755
--- a/css/main.css
+++ b/css/main.css
@@ -13,11 +13,11 @@ font-size: 20px;
}
body {background-color: var(--color-body-d); color: var(--color-main-l); margin: 0;}
-header {display: flex; justify-content: center; flex-direction: column; position: static; height: 80vh; color: var(--color-head-d); background-image: url("/media/banner-m.png"); background-size: cover; background-position: center center; background-attachment: fixed; image-rendering: crisp-edges; image-rendering: pixelated;}
-.bomber,hr,.identcontainer {margin-left: 10vw;}
-.bomber {font-family: schnyder-xl, Didot, serif; font-weight: 400; font-style: italic; font-size: 5rem; font-feature-settings: "case", "ss01", "ss04", "ss05"; -webkit-hyphens: auto; hyphens: auto; letter-spacing: -2px; line-height: 1; width: 80vw; margin-bottom: -10px; padding-left: 10px;}
-header hr {width: 80vw; height: 0; border: none; border-top: 1px solid var(--color-head-d);}
-.identcontainer {display: flex; flex-direction: row; justify-content: space-between; height: 25px; margin: -5px 10vw; padding: 0 5px;}
+header {display: flex; justify-content: center; flex-direction: column; position: static; height: 75vh; color: var(--color-head-d); background-image: url("/media/banner-m.png"); background-size: cover; background-position: center center; background-attachment: fixed; image-rendering: crisp-edges; image-rendering: pixelated;}
+.bomber,hr,.identcontainer {margin-left: 12.5vw;}
+.bomber {font-family: schnyder-xl, Didot, serif; font-weight: 400; font-style: italic; font-size: 5rem; font-feature-settings: "case", "ss01", "ss04", "ss05"; -webkit-hyphens: auto; hyphens: auto; letter-spacing: -2px; line-height: 1; width: 75vw; margin-bottom: -10px; padding-left: 10px;}
+header hr {width: 75vw; height: 0; border: none; border-top: 1px solid var(--color-head-d);}
+.identcontainer {display: flex; flex-direction: row; justify-content: space-between; height: 25px; margin: -5px 12.5vw; padding: 0 5px;}
.ident {font-family: neue-haas-grotesk-display, var(--fs-sans); font-weight: 300; font-size: 1rem; align-self: center; font-feature-settings: "case";}
.ident a {text-decoration: none; color: var(--color-head-d); cursor: pointer;}
.ident a:link {text-decoration: none;}
@@ -26,17 +26,17 @@ header hr {width: 80vw; height: 0; border: none; border-top: 1px solid var(--col
.ident a:active {text-decoration: none;}
.headerlogo {height: 18px; align-self: center;}
.contentlevel {display: flex;}
-nav {flex: 0 0 20%; padding: 1rem; position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto;}
-nav pre {margin: 0; color: var(--color-main-l); font-family: var(--fs-mono); font-weight: normal; font-size: 0.5rem; line-height: 1.25em;}
+nav {flex: 0 0 25%; padding: 1rem; position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto;}
+nav pre {margin: 0; color: var(--color-main-l); font-family: var(--fs-mono); font-weight: normal; font-size: 0.75rem; line-height: 1.25em;}
nav a {color: var(--color-main-l); font-family: var(--fs-mono); font-weight: normal; text-decoration: none; cursor: pointer;}
nav a:link {text-decoration: none;}
nav a:visited {color: var(--color-main-l);}
nav a:hover {color: var(--color-body-d); background-color: var(--color-main-l); clip-path: inset(5% 0% 5% 0%);}
nav a:active {color: var(--color-main-l); text-decoration: none;}
-main {order: 2; flex: 1 1 90%; min-height: 100vh; padding: 1rem; padding-right: calc(20vw + 1rem); overflow-x: hidden;}
+main {order: 2; flex: 1 1 75%; min-height: 100vh; padding: 1rem 0; padding-right: 25vw; overflow-x: hidden;}
.leading,h1,h2 {font-family: neue-haas-grotesk-display, var(--fs-sans); line-height: 1;}
.leading {font-size: 2.5rem; font-weight: 300; font-style: italic; border: 0; padding: 0;}
-.toc {margin: 1rem; padding: 0; height: auto;}
+.toc {margin: 0; padding: 0 1rem; height: auto;}
.toc li {text-align: left;}
.toc a:hover {clip-path: none;}
h1 {font-size: 2.5rem; font-weight: 700; margin: 1rem 0 0;}
@@ -47,7 +47,7 @@ p,td {font-weight: 400;}
p strong,th {font-weight: 700;}
p em {font-style: italic;}
p img {vertical-align: baseline;}
-ul,ol {margin: 1rem; padding: 0 0 0 1rem;}
+ul,ol {margin: 1rem 0; padding: 0 0 0 1rem;}
ul ul,ol ol {margin: 0 1rem;}
code {font-family: var(--fs-mono); font-weight: normal; font-size: 1rem; line-height: 1.5em;}
main a {font-family: neue-haas-grotesk-text, var(--fs-sans); color: var(--color-main-l); font-weight: 700; font-size: 1rem; cursor: pointer;}
@@ -55,19 +55,19 @@ main a:link {text-decoration: none; color: var(--color-main-l);}
main a:visited {color: var(--color-main-l);}
main a:hover {text-decoration: none; color: var(--color-main-d); background-color: var(--color-main-l);}
main a:active {text-decoration: none; color: var(--color-main-l);}
-main a::after {font-size: 0.5rem; font-weight: 700; line-height: 0; vertical-align: super; content: "↗︎";}
+main a::after {font-family: var(--fs-mono); font-size: 0.667rem; font-weight: 700; line-height: 0; vertical-align: super; content: "↗︎";}
sup {line-height: 0;}
sup a {font-size: 0.667rem; font-weight: 400;}
sup a::after {content: none;}
blockquote {margin: 1rem; padding-left: 1rem; border-left: 1px solid var(--color-main-m);}
main hr {height: 1rem; width: 100%; margin: 0; border: none; border-bottom: 1px solid var(--color-main-l);}
-main pre {margin: 1rem; padding: 1rem; background: var(--color-code-d); border-radius: 5px;}
+main pre {margin: 1rem 0; padding: 1rem; background: var(--color-code-d); border-radius: 5px;}
main pre code {margin: 0; line-height: 1.25rem; white-space: pre-wrap;}
table {margin: 1rem; width: calc(100% - 2rem); border-collapse: collapse;}
th,td {padding: 0 0.5rem; text-align: initial;}
th {border-bottom: 1px solid var(--color-main-m); padding-bottom: 0.5rem;}
td {padding-top: 0.5rem;}
-figure {display: flex; margin: 1rem; max-width: 100%; align-items: center; flex-direction: column;}
+figure {display: flex; margin: 1rem 0; max-width: 100%; align-items: center; flex-direction: column;}
figure a {font-size: 0;}
figure a:hover {text-decoration: none; background-color: transparent;}
figure a::after {display: none;}
@@ -84,16 +84,22 @@ footer a:hover {color: var(--color-main-d); background-color: var(--color-main-l
footer a:active {text-decoration: none;}
footer img {align-self: center; height: 0.75rem;}
-@media screen and (max-width: 800px) {
+@media screen and (max-width: 960px) {
+.contentlevel {flex-direction: column;}
+nav {order: 2; position: static; width: 100vw; height: 50vh; border-top: 1px solid var(--color-main-m); padding: 1rem 12.5vw;}
+.toc {border: none;}
+main {padding: 1rem 12.5vw;}
+}
+
+@media screen and (max-width: 720px) {
html {font-size: 15px;}
header {background-attachment: initial;}
.bomber {margin-bottom: -5px;}
.headerlogo {height: 14px;}
-.contentlevel {flex-direction: column;}
-nav {order: 2; position: static; width: 100vw; height: 50vh; border-top: 1px solid var(--color-main-m); padding: 1rem 10vw;}
+nav {padding: 1rem 2rem;}
nav pre {font-size: 1rem;}
-main {padding: 1rem 10vw;}
-.toc {width: auto; margin: 1rem 0; border: none;}
+main {padding: 1rem 2rem;}
+.toc {width: auto;}
p,p strong,p em,li {-webkit-hyphens: auto; hyphens: auto;}
p img {vertical-align: middle; -webkit-transform: scale(0.75); transform: scale(0.75);}
main pre,figure,table {margin: 1rem 0;}