From 6f9d4182859ba48e321625b2813a71937b0a8e5f Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 8 Aug 2022 17:30:43 -0700 Subject: [PATCH] Replace unnecessary use of
with something simpler --- assets/css/main.css | 3 ++- layouts/partials/processed-content.html | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 9eca4f9..904552b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -205,7 +205,7 @@ html { } figure, - p { + :not(li) > p { contain: inline-size layout; } @@ -333,6 +333,7 @@ html { contain: content; display: inline-block; padding: .75em .5em; + margin-top: -1em; } /* skip link: make it invisible until focused, and put it on the top. */ diff --git a/layouts/partials/processed-content.html b/layouts/partials/processed-content.html index b007bfb..dc9a573 100644 --- a/layouts/partials/processed-content.html +++ b/layouts/partials/processed-content.html @@ -6,7 +6,8 @@ {{- $referencesWithoutHeading := `(

)` -}} @@ -43,16 +44,19 @@ {{- $tocHeadingInside := `