aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-11-27 18:15:19 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-03 11:13:07 +0000
commitefae54d2159de0d609e2a314929405426017ca9e (patch)
tree6a2c62d74aad965f6a3f559be2bf60c21d41f7db /WebContent/VAADIN/themes
parent17c59f77f78ab3807be9484ca2aab183f3055912 (diff)
downloadvaadin-framework-efae54d2159de0d609e2a314929405426017ca9e.tar.gz
vaadin-framework-efae54d2159de0d609e2a314929405426017ca9e.zip
Use consistent stylenames for zebra striping in valo (#13334)
Change-Id: Ieced4208f30749ea99fa40bc64de18647006d5d1
Diffstat (limited to 'WebContent/VAADIN/themes')
-rw-r--r--WebContent/VAADIN/themes/valo/components/_grid.scss18
1 files changed, 9 insertions, 9 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss
index 9007c0660e..b318b7c120 100644
--- a/WebContent/VAADIN/themes/valo/components/_grid.scss
+++ b/WebContent/VAADIN/themes/valo/components/_grid.scss
@@ -114,21 +114,21 @@ $grid-border: valo-border($color: $grid-background-color, $strength: 0.8);
.#{$primary-stylename}-row {
border-bottom: $grid-border;
- &:nth-child(odd) td {
- $bg-lightness: if(color-luminance($grid-background-color) < 10, 4%, -4%);
- background-color: scale-color($grid-background-color, $lightness: $bg-lightness);
- }
-
- &:nth-child(even) td {
- background-color: $grid-background-color;
- }
-
&.#{$primary-stylename}-row-active td {
@include valo-gradient($v-selection-color);
color: $grid-background-color;
border-color: adjust-color($v-selection-color, $lightness: -8%, $saturation: -8%);
}
}
+
+ .#{$primary-stylename}-row > td {
+ background-color: $grid-background-color;
+ }
+
+ .#{$primary-stylename}-row-stripe > td {
+ $bg-lightness: if(color-luminance($grid-background-color) < 10, 4%, -4%);
+ background-color: scale-color($grid-background-color, $lightness: $bg-lightness);
+ }
}
}