aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN')
-rw-r--r--WebContent/VAADIN/themes/base/escalator/escalator.scss11
-rw-r--r--WebContent/VAADIN/themes/base/grid/grid.scss29
-rw-r--r--WebContent/VAADIN/themes/valo/components/_grid.scss9
3 files changed, 49 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/base/escalator/escalator.scss b/WebContent/VAADIN/themes/base/escalator/escalator.scss
index 606dc6a7dd..7949b52882 100644
--- a/WebContent/VAADIN/themes/base/escalator/escalator.scss
+++ b/WebContent/VAADIN/themes/base/escalator/escalator.scss
@@ -133,4 +133,15 @@
z-index: 1;
}
+ .#{$primaryStyleName}-spacer {
+ position: absolute;
+ display: block;
+
+ background-color: $background-color;
+
+ > td {
+ width: 100%;
+ height: 100%;
+ }
+ }
}
diff --git a/WebContent/VAADIN/themes/base/grid/grid.scss b/WebContent/VAADIN/themes/base/grid/grid.scss
index e4a4a1d920..14de4a2447 100644
--- a/WebContent/VAADIN/themes/base/grid/grid.scss
+++ b/WebContent/VAADIN/themes/base/grid/grid.scss
@@ -14,6 +14,7 @@ $v-grid-row-focused-background-color: null !default;
$v-grid-header-row-height: null !default;
$v-grid-header-font-size: $v-font-size !default;
$v-grid-header-background-color: $v-grid-row-background-color !default;
+$v-grid-header-drag-marked-color: $v-grid-row-selected-background-color !default;
$v-grid-footer-row-height: $v-grid-header-row-height !default;
$v-grid-footer-font-size: $v-grid-header-font-size !default;
@@ -52,6 +53,30 @@ $v-grid-editor-background-color: $v-grid-row-background-color !default;
border: $v-grid-border;
}
+ .#{$primaryStyleName} .header-drag-table {
+ border-spacing: 0;
+ position: relative;
+ table-layout: fixed;
+ width: inherit; // a decent default fallback
+
+ .#{$primaryStyleName}-header {
+ position: absolute;
+ > .#{$primaryStyleName}-cell {
+ border: $v-grid-border;
+ margin-top: -10px;
+ opacity: 0.9;
+ filter: alpha(opacity=90); // IE8
+ z-index: 30000;
+ }
+
+ > .#{$primaryStyleName}-drop-marker {
+ background-color: $v-grid-header-drag-marked-color;
+ position: absolute;
+ width: 3px;
+ }
+ }
+ }
+
// Common cell styles
.#{$primaryStyleName}-cell {
@@ -328,6 +353,10 @@ $v-grid-editor-background-color: $v-grid-row-background-color !default;
.#{$primaryStyleName}-editor-save {
margin-right: 4px;
}
+
+ .#{$primaryStyleName}-spacer {
+ border: $v-grid-border;
+ }
// Renderers
diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss
index 4cac9c5e43..0d6d2ff0a6 100644
--- a/WebContent/VAADIN/themes/valo/components/_grid.scss
+++ b/WebContent/VAADIN/themes/valo/components/_grid.scss
@@ -40,6 +40,15 @@ $v-grid-animations-enabled: $v-animations-enabled !default;
text-shadow: valo-text-shadow($font-color: valo-font-color($v-grid-header-background-color), $background-color: $v-grid-header-background-color);
}
+ .#{$primary-stylename}-header .#{$primary-stylename}-cell.dragged {
+ @include opacity(0.5, false);
+ @include transition (opacity .3s ease-in-out);
+ }
+
+ .#{$primary-stylename}-header .#{$primary-stylename}-cell.dragged-column-header {
+ margin-top: round($v-grid-row-height/-2);
+ }
+
.#{$primary-stylename}-footer .#{$primary-stylename}-cell {
@include valo-gradient($v-grid-footer-background-color);
text-shadow: valo-text-shadow($font-color: valo-font-color($v-grid-footer-background-color), $background-color: $v-grid-footer-background-color);