Center things a bit

This commit is contained in:
Nathan McCarty 2025-02-04 03:18:19 -05:00
parent 37e92392ca
commit 7df154596b
3 changed files with 15 additions and 5 deletions

View file

@ -15,6 +15,7 @@ method generate-post(Str:D $title, Str:D $content, BlogMeta:D $meta) {
# Use Iosevka Alie as the monospace font
link :rel<stylesheet>,
:href<https://static.stranger.systems/fonts/IosevkaAlie/IosevkaAile.css>;
style %?RESOURCES<main.css>.slurp;
style %?RESOURCES<code.css>.slurp;
# TODO: Add description
# TODO: Add header links

View file

@ -1,12 +1,8 @@
/* TODO: Move this somewhere else */
:root {
color-scheme: light dark;
}
code {
font-family: "Iosevka Aile Web", monospace;
background-color: light-dark(#fbf3db, #103c48);
color: light-dark(#53676d, #adbcbc);
min-width: 80ch;
}
pre > code {

13
resources/main.css Normal file
View file

@ -0,0 +1,13 @@
:root {
color-scheme: light dark;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
.post-body {
max-width: 80%;
}