From 55d4e1d8e8eae2639595e5898c93eb3bd67b8760 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:50:21 -0600 Subject: [PATCH] Merge pull request #21802 from overleaf/jel-cms-card-body-margins [web] CMS BS5 - Fix margins not getting removed when row is within a card GitOrigin-RevId: 2cc8bde809d15936d99ccec7ed222166858b3ee4 --- .../frontend/stylesheets/bootstrap-5/pages/cms.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss index c046635b06..fc3abba14d 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss @@ -547,12 +547,16 @@ .row-within-card { .no-card { - > :first-child { - margin-top: 0; + div:first-child { + > :first-child { + margin-top: 0; + } } - > :last-child { - margin-bottom: 0; + div:last-child { + > :last-child { + margin-bottom: 0; + } } } }