diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2014-08-07 14:21:19 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2014-08-11 18:32:52 +0000 |
commit | 5ffd6f3da371d0d8d8054bb9ccf6f65f6fd3d2cb (patch) | |
tree | 40d3a1b42bcd3467952f900e1f33e5f87391919f /WebContent/VAADIN/themes/valo | |
parent | 017af24016f223ed80d3efc88b0683c957a7b281 (diff) | |
download | vaadin-framework-5ffd6f3da371d0d8d8054bb9ccf6f65f6fd3d2cb.tar.gz vaadin-framework-5ffd6f3da371d0d8d8054bb9ccf6f65f6fd3d2cb.zip |
Make component group spacing adjustable with a variable (Valo)
Use in the dark variation to prevent overlapping box-shadows.
Change-Id: I622caebd92a14396ab84a9919e4d181d8fd54f3f
Diffstat (limited to 'WebContent/VAADIN/themes/valo')
-rw-r--r-- | WebContent/VAADIN/themes/valo/components/_csslayout.scss | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_csslayout.scss b/WebContent/VAADIN/themes/valo/components/_csslayout.scss index ee7cd933c5..95bdcc5a3a 100644 --- a/WebContent/VAADIN/themes/valo/components/_csslayout.scss +++ b/WebContent/VAADIN/themes/valo/components/_csslayout.scss @@ -1,3 +1,6 @@ +$v-component-group-spacing: null !default; + + @mixin valo-csslayout ($primary-stylename: v-csslayout, $include-additional-styles: contains($v-included-additional-styles, csslayout)){ @if $include-additional-styles { .#{$primary-stylename}-well { @@ -54,9 +57,9 @@ $v-border-width: first-number($v-border); @if $v-border-width > 0 { - margin-left: -$v-border-width; + margin-left: $v-component-group-spacing or -$v-border-width; } @else { - margin-left: 1px; + margin-left: $v-component-group-spacing or 1px; } &:first-child { |