summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@vaadin.com>2014-08-07 14:21:19 +0300
committerArtur Signell <artur@vaadin.com>2014-08-11 18:32:52 +0000
commit5ffd6f3da371d0d8d8054bb9ccf6f65f6fd3d2cb (patch)
tree40d3a1b42bcd3467952f900e1f33e5f87391919f /WebContent
parent017af24016f223ed80d3efc88b0683c957a7b281 (diff)
downloadvaadin-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')
-rw-r--r--WebContent/VAADIN/themes/tests-valo-dark/_variables.scss3
-rw-r--r--WebContent/VAADIN/themes/valo/components/_csslayout.scss7
2 files changed, 7 insertions, 3 deletions
diff --git a/WebContent/VAADIN/themes/tests-valo-dark/_variables.scss b/WebContent/VAADIN/themes/tests-valo-dark/_variables.scss
index 21bcd00ae9..ea40e1eb89 100644
--- a/WebContent/VAADIN/themes/tests-valo-dark/_variables.scss
+++ b/WebContent/VAADIN/themes/tests-valo-dark/_variables.scss
@@ -9,10 +9,11 @@ $v-font-family: Roboto, sans-serif;
$v-font-weight: 400;
$v-font-weight--header: 400;
$v-bevel: inset 0 1px 2px v-tint, inset 0 0 1px (v-tint 0.1);
-$v-shadow: 0 0 0 3px darken($v-background-color, 3%), 0 1px 1px 3px lighten($v-background-color, 5%);
+$v-shadow: 0 0 0 3px rgba(0,0,0,0.32), 0 1px 0 3px rgba(255,255,255,0.14);
$v-textfield-bevel: inset 0 2px 2px v-shade;
$v-textfield-shadow: $v-shadow;
$v-unit-size: 40px;
$v-overlay-shadow: 0 0 0 3px (v-shade 8), 0 5px 10px (v-shade 4);
+$v-component-group-spacing: 6px;
@import "../valo/valo";
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 {