Przeglądaj źródła

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
Jessica Lawshe 1 rok temu
rodzic
commit
5f9790d762

+ 8 - 4
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;
+      }
     }
   }
 }