From 4b281becdd4192a39228f7acd01505ceb9779ff0 Mon Sep 17 00:00:00 2001 From: MoxAmber Date: Thu, 19 Sep 2024 14:42:13 +0100 Subject: [PATCH] Merge pull request #20468 from overleaf/jel-cms-bs5-top-padding [web] Update top padding on CMS BS5 pages GitOrigin-RevId: c663886a9f28992a7056ac3f568980d1a5603699 --- .../frontend/stylesheets/bootstrap-5/pages/content.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/content.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/content.scss index 11f0de6517..f57b3895db 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/content.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/content.scss @@ -6,6 +6,10 @@ // TODO: consolidate cms.scss and content.scss .content-page { + &.content { + padding-top: $header-height; // remove extra padding added by .content. Keep .content selector to increase specificity + } + word-break: break-word; /* @@ -93,9 +97,7 @@ } .content-container > section:first-child { - /* header */ - padding-bottom: 0; - padding-top: 0; + padding-top: var(--spacing-15); } section.no-top-padding {