From 31bda0f788d4769fee9202f082e8c71767a6d39c Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 20 Sep 2022 20:14:08 -0500 Subject: [PATCH] Wide page as helper class, disable prod. sourcemaps, reduce header size Header lineheight reduced slightly --- _config.yml | 4 +++- _layouts/base.html | 8 +------- _sass/glitch.scss | 1 + _sass/helpers.scss | 4 ++++ 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index 097ef9b..f56b53b 100644 --- a/_config.yml +++ b/_config.yml @@ -29,4 +29,6 @@ defaults: scope: path: "_pages" values: - permalink: "/:title:output_ext" \ No newline at end of file + permalink: "/:title:output_ext" +sass: + sourcemap: development \ No newline at end of file diff --git a/_layouts/base.html b/_layouts/base.html index 7b012fe..6ddf25c 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -45,12 +45,6 @@ layout: compress html, body { visibility: hidden; } - - {% if page.wide or layout.wide %} - body { - max-width: 60em !important; - } - {% endif %} @@ -58,7 +52,7 @@ layout: compress {% endif %} - + {{ content }} diff --git a/_sass/glitch.scss b/_sass/glitch.scss index 93998ef..445140b 100644 --- a/_sass/glitch.scss +++ b/_sass/glitch.scss @@ -1,6 +1,7 @@ header { max-width: 100vw; + line-height: 1; .stack { overflow: hidden; display: grid; diff --git a/_sass/helpers.scss b/_sass/helpers.scss index 23890a9..98ea987 100644 --- a/_sass/helpers.scss +++ b/_sass/helpers.scss @@ -22,3 +22,7 @@ p { border-width: thin 0; padding: 10px; } + +body.wide { + max-width: 60rem !important; +} \ No newline at end of file