From c389bfda23e516d246d5772f05d755832fcf8464 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 9 Oct 2022 14:15:10 -0500 Subject: Fix scaling on mobile --- config.toml | 4 +++- themes/markskitchen/layouts/_default/list.html | 2 +- themes/markskitchen/layouts/partials/head.html | 8 +------- themes/markskitchen/static/css/common.css | 20 ++++++++++++++++++++ 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index 22f883f..64c052a 100644 --- a/config.toml +++ b/config.toml @@ -4,11 +4,13 @@ theme = "markskitchen" baseURL = "https://marks.kitchen" paginate = 5 rssLimit = 10 -description = "Mark's personal blog and more, showcasing lots of programming projects." [author] name = "Mark Powers" +[params] +description = "Mark's personal blog and more, showcasing lots of programming projects." + [[menu.main]] identifier = "about" name = "About" diff --git a/themes/markskitchen/layouts/_default/list.html b/themes/markskitchen/layouts/_default/list.html index 5c745d6..45c8631 100644 --- a/themes/markskitchen/layouts/_default/list.html +++ b/themes/markskitchen/layouts/_default/list.html @@ -13,7 +13,7 @@ diff --git a/themes/markskitchen/layouts/partials/head.html b/themes/markskitchen/layouts/partials/head.html index 3bd261e..1dac155 100644 --- a/themes/markskitchen/layouts/partials/head.html +++ b/themes/markskitchen/layouts/partials/head.html @@ -6,13 +6,7 @@ - {{ if .Description }} - - {{ else if and .IsPage .Summary }} - - {{ else }} - - {{ end }} + diff --git a/themes/markskitchen/static/css/common.css b/themes/markskitchen/static/css/common.css index b52a0d7..0a248e5 100644 --- a/themes/markskitchen/static/css/common.css +++ b/themes/markskitchen/static/css/common.css @@ -1,3 +1,11 @@ +html { + max-width: 70ch; + padding: 3em 1em; + margin: auto; + line-height: 1.75; + font-size: 1.25em; +} + #main > .post + .post { margin-top: 2rem; } @@ -97,6 +105,12 @@ body { } } +@media screen and (max-width: 512px) { + .item-date { + display: none; + } +} + #header > nav { display: flex; flex-direction: row; @@ -104,6 +118,7 @@ body { flex-wrap: wrap; max-width: 768px; width: 100%; + margin: 1rem; } #header > nav > span > a { @@ -258,11 +273,16 @@ footer { dl > dt { font-weight: bold; } + dd { padding-left: 2em; padding-bottom: 1em; } +li { + margin-bottom: 0.5rem; +} + .email::after { content: "@marks.kitchen"; } -- cgit v1.2.3