summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo
diff options
context:
space:
mode:
authorHenrik Paul <henrik@vaadin.com>2014-12-10 11:51:45 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-12 12:23:05 +0000
commit992d8bf70bb13ce90aa78623737af1d811fc779d (patch)
treeaf2234f45b18a6ba6fe89710c3e522c40f612398 /WebContent/VAADIN/themes/valo
parent2ed3d92ef894656ead3f17e1816cdc1517c3d4e6 (diff)
downloadvaadin-framework-992d8bf70bb13ce90aa78623737af1d811fc779d.tar.gz
vaadin-framework-992d8bf70bb13ce90aa78623737af1d811fc779d.zip
Patches up the themes for Grid a bit (#13334)
Change-Id: I1231b8097d06d8230ddee640894ceaf749dab0ee
Diffstat (limited to 'WebContent/VAADIN/themes/valo')
-rw-r--r--WebContent/VAADIN/themes/valo/components/_grid.scss69
1 files changed, 48 insertions, 21 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss
index ee973921b9..dbf25273a4 100644
--- a/WebContent/VAADIN/themes/valo/components/_grid.scss
+++ b/WebContent/VAADIN/themes/valo/components/_grid.scss
@@ -19,10 +19,6 @@ $grid-cell-padding-vertical: round(($v-table-row-height - $v-font-size)/2);
@include base-escalator($primary-stylename);
- // TODO: check/set these values
- $scrollbar-size: 15px;
- $header-height: 39px;
-
.#{$primary-stylename} {
outline: none;
}
@@ -196,28 +192,29 @@ $grid-cell-padding-vertical: round(($v-table-row-height - $v-font-size)/2);
}
// Fillers
- .#{$primary-stylename}-filler-x {
+ .#{$primary-stylename}-horizontalscrollbarbackground,
+ .#{$primary-stylename}-headercorner,
+ .#{$primary-stylename}-footercorner {
@include box-sizing(border-box);
@include valo-gradient($v-background-color);
border: $grid-border;
- border-top: none;
- bottom: 0px;
- height: $scrollbar-size;
- left: 0;
- position: absolute;
- width: 100%;
}
- .#{$primary-stylename}-filler-y {
- @include box-sizing(border-box);
- @include valo-gradient($v-background-color);
- border: $grid-border;
- border-left: none;
- height: $header-height;
- position: absolute;
- right: 0;
- top: 0px;
- width: $scrollbar-size;
+ .#{$primary-stylename}-horizontalscrollbarbackground {
+ border-top: none;
+ }
+
+ .#{$primary-stylename}-headercorner,
+ .#{$primary-stylename}-footercorner {
+ border-left: none;
+ }
+
+ .#{$primary-stylename}-footercorner {
+ border-top: none;
+ }
+
+ .#{$primary-stylename}-headercorner {
+ border-bottom: none;
}
}
@@ -232,6 +229,21 @@ $grid-cell-padding-vertical: round(($v-table-row-height - $v-font-size)/2);
font-size: $v-table-header-font-size;
padding: $grid-cell-padding-vertical $v-table-cell-padding-horizontal $grid-cell-padding-vertical - $v-table-border-width;
}
+
+ // Active state
+ .#{$primary-stylename}-cell-active {
+ border: $grid-cell-active-border-width solid $v-selection-color;
+ padding-top: $grid-cell-padding-vertical - $grid-cell-active-border-width;
+ padding-right: $v-table-cell-padding-horizontal - $grid-cell-active-border-width;
+ padding-bottom: $grid-cell-padding-vertical - $grid-cell-active-border-width;
+ padding-left: $v-table-cell-padding-horizontal - round($grid-cell-active-border-width/2);
+ }
+
+ & .#{$primary-stylename}-cell-active:first-child {
+ border-left: $grid-cell-active-border-width solid $v-selection-color;
+ padding-left: $v-table-cell-padding-horizontal - $grid-cell-active-border-width;
+ }
+
}
@mixin valo-grid-footer-style {
@@ -245,4 +257,19 @@ $grid-cell-padding-vertical: round(($v-table-row-height - $v-font-size)/2);
font-size: $v-table-header-font-size;
padding: $grid-cell-padding-vertical $v-table-cell-padding-horizontal $grid-cell-padding-vertical - $v-table-border-width;
}
+
+ // Active state
+ .#{$primary-stylename}-cell-active {
+ border: $grid-cell-active-border-width solid $v-selection-color;
+ padding-top: $grid-cell-padding-vertical - round($grid-cell-active-border-width/2);
+ padding-right: $v-table-cell-padding-horizontal - $grid-cell-active-border-width;
+ padding-bottom: $grid-cell-padding-vertical - $grid-cell-active-border-width;
+ padding-left: $v-table-cell-padding-horizontal - round($grid-cell-active-border-width/2);
+ }
+
+ & .#{$primary-stylename}-cell-active:first-child {
+ border-left: $grid-cell-active-border-width solid $v-selection-color;
+ padding-left: $v-table-cell-padding-horizontal - $grid-cell-active-border-width;
+ }
+
}