Files
natalieee.net/www/src/assets/style.css

428 lines
6.9 KiB
CSS

@font-face {
font-family: 'Liberation Mono';
src: url('/assets/fonts/LiberationMono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Liberation Mono';
src: url('/assets/fonts/LiberationMono-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Liberation Mono';
src: url('/assets/fonts/LiberationMono-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Liberation Mono';
src: url('/assets/fonts/LiberationMono-BoldItalic.ttf') format('truetype');
font-weight: bold;
font-style: italic;
}
:root {
--bg: #161616;
--alt-bg: #262626;
--alt-bg-darker: #202020;
--fg: #f2f4f8;
--gray: #565656;
--light-gray: #8e8e8e;
--link: #33b1ff;
--visited-link: #be95ff;
--highlight: #33b1ff;
background: #202020 url('/assets/bg.svg');
background-size: 30px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Liberation Mono', monospace;
font-size: 16px;
max-height: 100vh;
}
* {
font-family: 'Liberation Mono', monospace !important;
}
code > * {
font-family: monospace !important;
> * {
font-family: monospace !important;
> * {
font-family: monospace !important;
}
}
}
h1 {
font-size: 2rem;
margin: 0;
&::before {
content: "# ";
color: var(--light-gray)
}
}
h2 {
font-size: 1.5rem;
margin: 0;
&::before {
content: "## ";
color: var(--light-gray)
}
}
h3 {
font-size: 1rem;
margin: 0;
&::before {
content: "### ";
color: var(--light-gray)
}
}
body {
width: min(100%, 1100px);
min-height: 100vh;
height: 100vh;
max-height: 100vh;
margin: 0;
background: var(--bg);
color: var(--fg);
display: grid;
box-sizing: border-box;
overflow: hidden;
grid-template-columns: 200px 1fr;
grid-template-rows: 1fr 130px;
> header {
grid-column: 1;
background: var(--alt-bg);
padding-right: 10px;
border: 3px ridge gray;
border-bottom: none;
border-top: none;
> nav {
> ul {
margin: 0;
padding: 0;
padding-top: 6px;
display: flex;
flex-direction: column;
align-items: baseline;
justify-content: flex-start;
list-style-type: none;
gap: 10px;
> li {
box-sizing: border-box;
width: 100%;
margin-left: 5px;
background: var(--alt-bg);
padding: 8px;
border: 3px var(--gray) ridge;
white-space: nowrap;
> a {
all: unset;
overflow-x: none;
&:visited {
color: var(--light-gray)
}
}
&:hover {
border: 3px var(--light-gray) ridge;
> a {color: var(--fg);}
a::before {
content: "> "
}
}
> h1 {
display: inline
}
}
}
}
}
> main {
margin: 1em;
overflow-y: scroll;
overflow-wrap: break-word;
display: flex;
flex-direction: column;
gap: 2ch;
}
> footer {
height: fit-content;
grid-column: 1 / 3;
background-color: var(--alt-bg);
border: 3px ridge gray;
border-bottom: none;
padding: 5px;
margin-bottom: 0;
display: grid;
grid-template-columns: 1fr 88px;
grid-template-rows: min-content 1fr;
> div, > div > div {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
> footnote > * { margin-top: 2px; }
> footnote > iframe {
border: none;
}
> a {
margin: 0 !important;
display: flex;
float: right;
width: 88px;
height: 31px;
}
}
}
}
body.comments {
all: unset;
background: var(--bg);
}
a {
color: var(--link);
}
a:visited {
color: var(--visited-link);
}
pre {
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: anywhere;
}
code {
display: flex;
background: var(--alt-bg);
padding: 5px;
}
p {margin-bottom: 0}
footnote {
font-size: 13px;
margin-top: 20px;
display: flex;
}
sup {
font-size: 13px;
font-weight: normal;
line-height: 0;
}
section.comments {
display: flex;
flex-direction: column;
gap: 2ch;
div > form {
display: grid;
grid-template-rows: 12ch 20px;
grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
> textarea {
resize: none;
grid-row: 1;
grid-column: 1 / 5;
}
> #name {
grid-row: 2
}
> #website {
grid-row: 2
}
> #submit {
grid-row: 2
}
> #commit {
grid-row: 2
}
> * {
border-radius: 0;
background: var(--alt-bg);
border: 3px var(--gray) ridge;
color: var(--fg);
&:focus {
outline: none;
border: 3px var(--light-gray) ridge;
}
}
}
}
div.comment {
color: var(--fg);
border-left: 10px solid var(--gray);
padding-left: 10px;
> pre {
font-style: normal;
}
}
h3 + ul, p + ul, h3 + p, h2 + p, h1 + p {
margin-top: 0 !important;
}
dl {
margin: 0;
margin-bottom: 2ch;
> dt {
margin-top: 2ch;
&:first-of-type {
margin-top: 0
}
}
}
div.two-col-table {
display: grid;
width: 100%;
gap: 2em;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr
}
div.footnotes {
display: flex;
flex-direction: row;
flex-wrap: wrap;
/* flex-direction: column; */
gap: 4px;
> footnote {
width: max-content;
flex: 0 1 auto;
}
}
blockquote {
border-left: 10px solid var(--gray);
margin: 4px 16px;
padding-left: 10px;
}
figure {
&:has(> figcaption:first-child) { /* select figures with captions first */
margin: 5px 0;
> *:not(figcaption) {
border-left: 10px solid var(--alt-bg);
}
> figcaption {
margin-bottom: 2px;
&::before {
content: '> ';
color: var(--light-gray)
}
font-weight: bold;
}
}
}
div.thought-list{
display: flex;
flex-direction: column;
> div.thought-list-entry {
margin: 10px;
padding: 10px;
background: var(--alt-bg);
display: grid;
grid-template-columns: 3fr 1fr;
grid-template-rows: 1fr min(min-content, 1fr);
> div.description {
margin-right: 1em;
}
> * {
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: anywhere;
&.title {
font-weight: bold;
}
}
}
}
@media (max-width: 700px) {
:root {
max-height: unset;
}
body {
display: flex;
flex-direction: column;
height: unset;
max-height: unset;
overflow: unset;
> header {
border-bottom: 3px ridge gray;
> nav > ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(40%, 1fr))
}
}
}
}
.arpa-n-gon-list {
> li {
background: var(--alt-bg);
margin: 10px;
}
}