From e77bddf56b80c0f9ebcb1c3322c8086af7231330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 7 Mar 2018 12:42:26 +0100 Subject: [PATCH] Css hack to add margin on first or last visible inputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/apps.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/css/apps.scss b/core/css/apps.scss index 1389938a32..9f8a33956e 100644 --- a/core/css/apps.scss +++ b/core/css/apps.scss @@ -903,6 +903,15 @@ kbd { } } } + /* css hack, only first not hidden*/ + &:not(.hidden):not([style*='display: none']) { + &:first-of-type input { + margin-top: 10px; + } + &:last-of-type input { + margin-bottom: 10px; + } + } > button { padding: 0; span {