2022-08-13 23:47:29 +00:00
|
|
|
@import "parts/_code.scss";
|
2022-08-27 18:27:41 +00:00
|
|
|
@import "parts/_header.scss";
|
|
|
|
@import "parts/_image.scss";
|
|
|
|
@import "parts/misc.scss";
|
|
|
|
@import "parts/table.scss";
|
|
|
|
@import "parts/tags.scss";
|
2022-08-10 20:15:30 +00:00
|
|
|
|
|
|
|
:root {
|
|
|
|
/* Used for: block comment, hr, ... */
|
|
|
|
--border-color: var(--bg-1);
|
|
|
|
|
2022-08-25 07:32:34 +00:00
|
|
|
// Fonts defined via fonts.nix
|
2022-08-27 18:27:41 +00:00
|
|
|
--system-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
background-color: var(--bg-0);
|
|
|
|
color: var(--text-0);
|
|
|
|
font-family: var(--text-font);
|
|
|
|
line-height: 1.6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
max-width: 944px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0 24px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width:640px) {
|
|
|
|
html {
|
|
|
|
font-size: 16.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width:720px) {
|
|
|
|
html {
|
|
|
|
font-size: 17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width:960px) {
|
|
|
|
html {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-13 05:03:55 +00:00
|
|
|
// Logo
|
2022-08-10 20:15:30 +00:00
|
|
|
div.brand>* {
|
|
|
|
padding: 0 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.brand:hover img.logo {
|
|
|
|
filter: brightness(0) invert(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
img.logo {
|
|
|
|
border: none;
|
|
|
|
height: 0.75em;
|
|
|
|
width: 0.75em;
|
|
|
|
padding-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Nav links
|
|
|
|
nav a {
|
|
|
|
margin-left: 0.7em;
|
|
|
|
font-family: var(--code-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Footer
|
|
|
|
.content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.inner {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
header,
|
|
|
|
footer {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
margin: 2em;
|
2022-08-13 23:47:29 +00:00
|
|
|
color: var(--text-1);
|
2022-08-10 20:15:30 +00:00
|
|
|
font-size: 0.75em;
|
2022-08-27 18:27:41 +00:00
|
|
|
display: flex;
|
2022-08-13 23:47:29 +00:00
|
|
|
|
|
|
|
code {
|
|
|
|
color: var(--text-0);
|
2022-08-27 18:27:41 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: var(--hover-color);
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2022-08-13 23:47:29 +00:00
|
|
|
}
|
2022-08-14 17:05:50 +00:00
|
|
|
|
2022-08-27 18:27:41 +00:00
|
|
|
.privacy-note {
|
|
|
|
flex: 2 0;
|
|
|
|
padding-right: 1em;
|
2022-08-14 17:05:50 +00:00
|
|
|
}
|
2022-08-10 20:15:30 +00:00
|
|
|
|
2022-08-27 18:27:41 +00:00
|
|
|
.powered-by {
|
|
|
|
flex: 1 0;
|
|
|
|
}
|
2022-08-13 23:47:29 +00:00
|
|
|
}
|
|
|
|
|
2022-08-27 18:27:41 +00:00
|
|
|
// Different sized headers
|
|
|
|
h1.page-header {
|
|
|
|
font-weight: normal;
|
|
|
|
max-width: 720px;
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
margin-top: 1.4em;
|
2022-08-27 18:27:41 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "# ";
|
|
|
|
}
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.3rem;
|
|
|
|
margin-top: 1.3em;
|
2022-08-27 18:27:41 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "## ";
|
|
|
|
}
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
margin-top: 1.2em;
|
2022-08-27 18:27:41 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "### ";
|
|
|
|
}
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
margin-top: 1.1em;
|
2022-08-27 18:27:41 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "#### ";
|
|
|
|
}
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
font-size: 1rem;
|
|
|
|
margin-top: 1em;
|
|
|
|
|
2022-08-27 18:27:41 +00:00
|
|
|
&::before {
|
|
|
|
content: "##### ";
|
|
|
|
}
|
2022-08-13 04:47:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tags
|
|
|
|
ul.tags {
|
|
|
|
margin: 0.5rem;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-right: 0.6rem;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-27 18:27:41 +00:00
|
|
|
// // Header dot
|
|
|
|
// .header-dot {
|
|
|
|
// font-size: 1.6em;
|
|
|
|
// }
|
2022-08-13 23:47:29 +00:00
|
|
|
|
|
|
|
// Meta
|
|
|
|
.meta a:hover {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixup grays
|
|
|
|
time {
|
|
|
|
color: var(--text-1);
|
2022-08-14 16:06:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Post list
|
|
|
|
li.post-list-item {
|
|
|
|
list-style-type: none;
|
2022-08-10 20:15:30 +00:00
|
|
|
}
|