💄 Reduce whitespace at the top of prose content

Ref #226
pull/231/head
James Panther 2022-06-25 14:53:34 +10:00
parent 6fc462136f
commit 337e355ba2
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
4 changed files with 13 additions and 5 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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 {

View File

@ -1,4 +1,4 @@
<details open class="mt-0 overflow-hidden rounded-lg rtl:pr-5 ltr:pl-5 ltr:-ml-5 rtl:-mr-5 lg:mt-3">
<details open class="mt-0 overflow-hidden rounded-lg rtl:pr-5 ltr:pl-5 ltr:-ml-5 rtl:-mr-5">
<summary
class="block py-1 text-lg font-semibold cursor-pointer rtl:pr-5 ltr:pl-5 ltr:-ml-5 rtl:-mr-5 text-neutral-800 dark:text-neutral-100 lg:hidden bg-neutral-100 dark:bg-neutral-700"
>