瀏覽代碼

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 年之前
父節點
當前提交
5f9790d762
共有 1 個文件被更改,包括 8 次插入 和 4 次删除
  1. 8 4
      services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss

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