From 337e355ba229881487d361b58a46d55cff48c8a2 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sat, 25 Jun 2022 14:53:34 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Reduce=20whitespace=20at=20the?= =?UTF-8?q?=20top=20of=20prose=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #226 --- CHANGELOG.md | 1 + assets/css/compiled/main.css | 10 ++++++---- assets/css/main.css | 5 +++++ layouts/partials/toc.html | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee5c2468..67c569c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Search will now return results for all page types, including lists and taxonomies - Comments partials are now better considered within the page layout +- Reduced whitespace at the top of the main content block - Upgrade to Tailwind v3.1.4 ([#225](https://github.com/jpanther/congo/pull/225)) ### Fixed diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index f03f869a..e8fdb807 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1046,6 +1046,12 @@ body button { padding-left: 0px; } +/* Adjust first child within prose */ + +.prose div.min-w-0.max-w-prose > *:first-child { + margin-top: 0.75rem; +} + /* Table of Contents */ .toc ul, @@ -2898,10 +2904,6 @@ body button { order: 9999; } - .lg\:mt-3 { - margin-top: 0.75rem; - } - .lg\:hidden { display: none; } diff --git a/assets/css/main.css b/assets/css/main.css index 8a0d7428..7285f736 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -42,6 +42,11 @@ body button { @apply rtl:pl-0; } +/* Adjust first child within prose */ +.prose div.min-w-0.max-w-prose > *:first-child { + @apply mt-3; +} + /* Table of Contents */ .toc ul, .toc li { diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index bd32816e..7a46e177 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,4 +1,4 @@ -
+