From 2300a98adb582f71bdd6b619593c28a22a7e67a5 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Wed, 25 Sep 2024 09:55:25 -0500 Subject: [PATCH] Merge pull request #20602 from overleaf/jel-cms-bottom-align-card [web] Fix bottom alignment in cards on CMS BS5 GitOrigin-RevId: a09e7f21b0eab3642b7c22cec39a08842f8614a5 --- .../stylesheets/bootstrap-5/pages/cms.scss | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss index 5306bd5780..2b83faba82 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss @@ -542,13 +542,29 @@ } .bottom-align-last-entry { - display: flex; - flex-direction: column; + &.no-card { + display: flex; + flex-direction: column; - * { - &:last-child { - flex: 1; - align-content: end; + * { + &:last-child { + flex: 1; + align-content: end; + } + } + } + + &.card { + .card-body { + display: flex; + flex-direction: column; + + * { + &:last-child { + flex: 1; + align-content: end; + } + } } } }