147 lines
2.1 KiB
CSS
147 lines
2.1 KiB
CSS
body {
|
|
--background-color: #fff;
|
|
--text-color: #000;
|
|
--light-text-color: #D52D00;
|
|
--highlight-color: #A30262;
|
|
--body-width: 800px;
|
|
|
|
font: 16px/20px "Segoe UI", "-apple-system", sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
--background-color: #170a0d;
|
|
--text-color: #fff;
|
|
--light-text-color: #FF9A56;
|
|
--highlight-color: #d362a4;
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-size: 1rem;
|
|
font-weight: 300;
|
|
margin: 1em 0 0.5em 0;
|
|
}
|
|
|
|
.headerlink {
|
|
text-decoration: none;
|
|
color: var(--light-text-color);
|
|
display: none;
|
|
}
|
|
|
|
.headerlink::before {
|
|
content: '#';
|
|
}
|
|
|
|
.headerlink:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
:hover>.headerlink {
|
|
display: inline-block;
|
|
min-width: 1em;
|
|
margin-left: -1em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
h1:first-child {
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
h3 {
|
|
font-weight: initial;
|
|
}
|
|
|
|
a {
|
|
color: var(--highlight-color);
|
|
}
|
|
|
|
main,
|
|
header {
|
|
margin: auto;
|
|
max-width: var(--body-width);
|
|
text-align: left;
|
|
}
|
|
|
|
main {
|
|
padding-bottom: 5em;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
hr {
|
|
max-width: 5em;
|
|
border: none;
|
|
border-bottom: 5px dotted var(--highlight-color);
|
|
margin: 3em auto;
|
|
height: 0;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
nav li {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
nav li:not(:first-child)::before {
|
|
content: "•";
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.description {
|
|
font-style: italic;
|
|
}
|
|
|
|
.date {
|
|
color: var(--light-text-color);
|
|
}
|
|
|
|
aside {
|
|
float: right;
|
|
margin-left: 1rem;
|
|
max-width: calc(var(--body-width) * 0.33);
|
|
}
|
|
|
|
/* Code line numbers. */
|
|
.gutter>pre>.line {
|
|
color: var(--light-text-color);
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
@media (max-width: 550px) {
|
|
|
|
/* Chosen because it looks good :) */
|
|
aside {
|
|
float: none;
|
|
margin-left: 0;
|
|
max-width: 100%;
|
|
}
|
|
}
|