:root {
--width: 80ch;
--font-main: Verdana, sans-serif;
--font-secondary: Verdana, sans-serif;
--font-scale: 1em;
--background-color: #fff;
--heading-color: #222;
--text-color: #444;
--muted-color: #888;
--link-color: #3273dc;
--visited-color: #8b6fcb;
--code-background-color: #f2f2f2;
--today-background-color: #f2f2f2;
--code-color: #222;
--blockquote-color: #222;
--border-color: #222;
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #01242e;
--heading-color: #eee;
--text-color: #ddd;
--muted-color: #ccc;
--link-color: #8cc2dd;
--visited-color: #8b6fcb;
--code-background-color: #000;
--today-background-color: #000;
--code-color: #ddd;
--blockquote-color: #ccc;
--border-color: #ccc;
}
}
body {
font-family: var(--font-secondary);
font-size: var(--font-scale);
margin: auto;
padding: 20px;
max-width: var(--width);
text-align: left;
background-color: var(--background-color);
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.5;
color: var(--text-color);
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-main);
color: var(--heading-color);
& > a {
color: var(--heading-color);
}
}
a {
color: var(--link-color);
cursor: pointer;
}
nav a {
margin-right: 8px;
}
strong,
b {
color: var(--heading-color);
}
button {
margin: 0;
cursor: pointer;
}
main {
line-height: 1.6;
}
table {
width: 100%;
}
hr {
border: 0;
border-top: 1px dashed;
}
img {
max-width: 100%;
}
code {
font-family: monospace;
padding: 2px 5px;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: 3px;
}
pre {
margin: unset;
}
pre code {
color: var(--code-color);
display: block;
padding: 20px;
white-space: pre-wrap;
font-size: 0.875rem;
overflow-x: auto;
}
blockquote,
.aside {
border-left: 1px solid #999;
color: var(--code-color);
padding-left: 20px;
font-style: italic;
}
.aside {
font-style: unset;
}
footer {
padding: 25px 0;
text-align: center;
}
.title:hover {
text-decoration: none;
}
.title h1 {
font-size: 1.5em;
}
.inline {
width: auto !important;
}
.highlight,
.code {
padding: 1px 15px;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: 3px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
}
/* blog post list */
ul.h-feed {
list-style-type: none;
padding: unset;
}
ul.h-feed li {
display: flex;
}
ul.h-feed li span {
flex: 0 0 130px;
}
ul.h-feed li a:visited {
color: var(--visited-color);
}
.title {
text-decoration: none;
}
.filter {
margin-bottom: 0;
}
.skip {
position: absolute;
top: -3em;
background: var(--background-color);
}
.skip:focus {
top: 0;
}
article > header > h1 {
margin-bottom: 0;
}
article > header {
margin: 2rem 0 1rem;
}
.meta {
margin-top: 0;
margin-bottom: 0;
}
.date {
display: inline-block;
margin-right: 1ex;
font-size: small;
}
.tags {
font-size: small;
display: inline-block;
padding-inline-start: 0;
}
.p-categories {
padding-inline-start: 1ex;
}
.e-content {
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 2rem;
margin-bottom: 0.5ch;
}
p {
margin-top: 1ch;
}
}
.tags li {
list-style: none;
display: inline-block;
margin-inline-end: 1ex;
}
svg.rss-icon {
height: 1.5ex;
width: 1.5ex;
}
.changelog > summary {
font-size: large;
}
.changelog > ul {
list-style-type: none;
padding-left: unset;
margin-block-start: 0.5rex;
}
time {
font-variant-numeric: tabular-nums;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 0.5ch;
}
.day {
min-height: 6rem;
}
.past {
opacity: 0.5;
}
.day h3 {
margin-block: 0 0.5ch;
font-size: 1.1rem;
font-weight: normal;
}
.day.today h3 {
font-weight: bold;
}
.event {
font-size: 0.9rem;
}
.tentative {
opacity: 0.75;
}
.today {
background-color: var(--today-background-color);
}
.calendar footer {
font-size: small;
color: var(--muted-color);
padding: 1ch 0;
}
.calendar footer p {
margin: 0;
}
.only-small-portrait {
display: none;
}
@media only screen and (max-width: 768px) {
.calendar-grid {
display: flex;
flex-direction: column;
}
.past {
display: none;
}
.day {
min-height: revert;
}
}
@media only screen and (max-width: 768px) and (orientation: portrait) and (min-height: 768px) {
.only-small-portrait {
display: revert;
}
}
domain/web/templates/style.css (view raw)