From 7210d1c9597ae9b612120145338111a9352d2e9e Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Wed, 9 Jul 2025 23:50:22 +0200 Subject: [PATCH] style: fix padding --- assets/css/layout/_footer.scss | 10 +++++++--- assets/css/layout/_grid.scss | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/css/layout/_footer.scss b/assets/css/layout/_footer.scss index 11a25e7..fdbe1f1 100644 --- a/assets/css/layout/_footer.scss +++ b/assets/css/layout/_footer.scss @@ -1,13 +1,17 @@ .site-footer { grid-area: footer; display: block; - inline-size: 100%;; /* Overflows right of viewport otherwise */ - position: fixed; - inset-block-end: 0; + inline-size: 100%; /* Overflows right of viewport otherwise */ + + @include mq("medium") { + position: fixed; + inset-block-end: 0; + } & p { text-align: center; background: $light; + margin-block-start: 0; padding: 0.4em; margin-block-end: unset; border-block-end: none; diff --git a/assets/css/layout/_grid.scss b/assets/css/layout/_grid.scss index 1d5c1b4..793d1da 100644 --- a/assets/css/layout/_grid.scss +++ b/assets/css/layout/_grid.scss @@ -24,7 +24,7 @@ ". page-container ." "footer footer footer"; border: 2px solid black; - margin-inline: 2em; + margin: 2em; } &--homepage {