From a0ac4eae7bc4b15f51bbcd401c1273b697c6bf06 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 23 Nov 2016 14:58:31 +0100 Subject: [PATCH] Style updates - only add space between buttons that are visible - smaller left-padding of lists in boxes - less vertical margin around horizontal layouted boxes - add span-width, spacer, double-spacer and flex-spacer helpers spacer creates a 10x10 pixel space double-spacer a 20x20 pixel space flex-spacer uses space variably --- app/assets/stylesheets/zammad.scss | 33 +++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 2db4636db..de71c75dd 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -608,7 +608,7 @@ pre code.hljs { margin-left: 15px; } -.vertical > .btn + .btn { +.vertical > .btn:not(.hidden) + .btn { margin-left: 0; margin-top: 10px; } @@ -5389,6 +5389,10 @@ footer { margin-top: 12px; } + .box ul { + padding-left: 10px; + } + .box .two-columns { margin-left: -4px; margin-right: -4px; @@ -5438,6 +5442,15 @@ footer { } } +.horizontal > .box { + margin-top: 4px; + margin-bottom: 4px; + + & + .box { + border-left-width: 0; + } +} + .formset-inset { margin: 34px -24px 24px; padding: 19px 24px 24px; @@ -8439,6 +8452,10 @@ body.fit { align-self: end; } +.span-width { + flex-basis: 100%; +} + .two-columns, .three-columns, .wrap { @@ -8473,3 +8490,17 @@ body.fit { margin-left: auto; margin-right: auto; } + +.spacer { + width: 10px; + height: 10px; +} + +.double-spacer { + width: 20px; + height: 20px; +} + +.flex-spacer { + flex: 1; +}