From a906504dac4ae56bb9669a5c064fe25f0bb98c79 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Fri, 18 Jan 2019 10:10:28 +0000 Subject: [PATCH] Merge pull request #1416 from sharelatex/ja-no-header-margin-in-cards Remove top margin from header when at top of card GitOrigin-RevId: cbb7e2445476f48a3bf188d7062b05b1a1847cbf --- services/web/public/stylesheets/components/card.less | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/public/stylesheets/components/card.less b/services/web/public/stylesheets/components/card.less index afa0dd2480..54cc245c80 100644 --- a/services/web/public/stylesheets/components/card.less +++ b/services/web/public/stylesheets/components/card.less @@ -21,6 +21,13 @@ margin: 0; } } + + > :first-child { + margin-top: 0; + } + > :last-child { + margin-bottom: 0; + } } .card-thin {