summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2021-04-05 23:31:34 -0400
committereudoxia <uplink@distress.network>2021-04-05 23:31:34 -0400
commit1f52b8f87990e40a977e7df3c8925c1d37ef05cc (patch)
treeb21493f3262a22324db6c7b87ac7807c3f9fc179
parent2aaf9f002b0c55d9fa7d3d8750fa756a5bd40959 (diff)
css: various spacing/alignment fixes, other misc. cleanups
-rwxr-xr-xcss/main.css28
1 files changed, 14 insertions, 14 deletions
diff --git a/css/main.css b/css/main.css
index c6f923f..55d711b 100755
--- a/css/main.css
+++ b/css/main.css
@@ -12,32 +12,32 @@ html {
font-size: 20px;
}
-body {background-color: var(--color-body-d); margin: 0;}
-header {display: flex; justify-content: center; flex-direction: column; position: static; height: 80vh; background-image: url("/media/banner-m.png"); background-size: cover; background-position: center center; background-attachment: fixed; image-rendering: crisp-edges; image-rendering: pixelated;}
+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;}
.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; cursor: pointer; color: var(--color-head-d);}
+.ident a {text-decoration: none; cursor: pointer;}
.ident a:link {text-decoration: none;}
.ident a:visited{color: var(--color-head-d);}
.ident a:hover {text-decoration: none;}
.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; background-color: var(--color-body-d);}
+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 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; background-color: var(--color-main-d);}
-.leading,h1,h2,p,p strong,p em,li,code,th,td {color: var(--color-main-l);}
-.leading,h1,h2 {font-family: neue-haas-grotesk-display, var(--fs-sans);}
+main {order: 2; flex: 1 1 90%; min-height: 100vh; padding: 1rem; padding-right: calc(20vw + 1rem); 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; margin-top: 1.5rem; padding: 0; height: auto;}
+.toc {margin: 1rem; padding: 0; 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;}
h2 {font-size: 1.75rem; font-weight: 700; margin: 1rem 0 0;}
@@ -47,8 +47,8 @@ p,td {font-weight: 400;}
p strong,th {font-weight: 700;}
p em {font-style: italic;}
p img {vertical-align: baseline;}
-ul {margin: 1rem; padding: 0 0 0 1rem;}
-ul ul {margin: 0 1rem;}
+ul,ol {margin: 1rem; 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;}
main a:link {text-decoration: none; color: var(--color-main-l);}
@@ -62,17 +62,17 @@ 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 code {color: var(--color-main-l); margin: 0; line-height: 1.25rem; white-space: pre-wrap;}
+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 a {font-size: 0; background-color: transparent;}
+figure a {font-size: 0;}
figure a:hover {text-decoration: none; background-color: transparent;}
figure a::after {display: none;}
figure a img {max-width: 100%; max-height: calc(100vh - 2rem);}
-figure p {font-size: 0.75rem; font-style: italic; margin-top: 0.5rem; margin-bottom: 0; padding-bottom: 1rem; text-align: center;}
+figure p {font-size: 0.75rem; font-style: italic; margin: 0; padding: 0.5rem 0; text-align: center;}
.footnotes a[rev=footnote] {font-size: 0.75rem;}
.footnotes a[rev=footnote]::after {content: none;}
footer {display: flex; flex-direction: row; justify-content: space-between; min-height: 1rem; border-top: 1px solid var(--color-main-m); padding: 0.75rem 1rem; background-color: var(--color-main-d); color: var(--color-main-l);}
@@ -90,7 +90,7 @@ 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);}
+nav {order: 2; position: static; width: 100vw; height: 50vh; border-top: 1px solid var(--color-main-m); padding: 1rem 10vw;}
nav pre {font-size: 1rem;}
main {padding: 1rem 10vw;}
.toc {width: auto; border: none;}