From 0373d34e91bea889f84f57b9a688b820e0be7596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 2 Dec 2022 15:46:12 +0100 Subject: [PATCH] notice: fix margin if box starts with a table #411 --- static/css/theme.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/static/css/theme.css b/static/css/theme.css index 210e76411f..3e360cd7d0 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -466,18 +466,20 @@ div.box > .box-label { } div.box > .box-content { - padding-bottom: .1rem; + padding-top: 1rem; + padding-bottom: 1rem; padding-left: 1rem; padding-right: 1rem; } -#body div.box > .box-content > :first-child { +#body div.box > .box-content > :first-child, +#body div.box > .box-content > :first-child :first-child { margin-top: 0; - padding-top: 1rem; } -#body div.box > .box-content > :last-child { - margin-bottom: 1rem; +#body div.box > .box-content > :last-child, +#body div.box > .box-content > :last-child :last-child { + margin-bottom: 0; } /* attachments shortcode */