summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_grid.scss
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN/themes/valo/components/_grid.scss')
-rw-r--r--WebContent/VAADIN/themes/valo/components/_grid.scss40
1 files changed, 39 insertions, 1 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss
index 4cac9c5e43..c07d330410 100644
--- a/WebContent/VAADIN/themes/valo/components/_grid.scss
+++ b/WebContent/VAADIN/themes/valo/components/_grid.scss
@@ -3,7 +3,8 @@
$v-grid-row-background-color: valo-table-background-color() !default;
$v-grid-row-stripe-background-color: scale-color($v-grid-row-background-color, $lightness: if(color-luminance($v-grid-row-background-color) < 10, 4%, -4%)) !default;
-$v-grid-border: flatten-list(valo-border($color: $v-grid-row-background-color, $strength: 0.8)) !default;
+$v-grid-border-color-source: $v-grid-row-background-color !default;
+$v-grid-border: flatten-list(valo-border($color: $v-grid-border-color-source, $strength: 0.8)) !default;
$v-grid-cell-focused-border: max(2px, first-number($v-border)) solid $v-selection-color !default;
$v-grid-row-height: $v-table-row-height !default;
@@ -16,6 +17,12 @@ $v-grid-cell-padding-horizontal: $v-table-cell-padding-horizontal !default;
$v-grid-animations-enabled: $v-animations-enabled !default;
+$v-grid-details-marker-width: first-number($v-grid-border) * 2 !default;
+$v-grid-details-marker-color: $v-selection-color !default;
+$v-grid-details-border-top: valo-border($color: $v-grid-border-color-source, $strength: 0.3) !default;
+$v-grid-details-border-top-stripe: valo-border($color: $v-grid-row-stripe-background-color, $strength: 0.3) !default;
+$v-grid-details-border-bottom: $v-grid-cell-horizontal-border !default;
+$v-grid-details-border-bottom-stripe: $v-grid-cell-horizontal-border !default;
@import "../../base/grid/grid";
@@ -40,6 +47,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);
@@ -166,6 +182,28 @@ $v-grid-animations-enabled: $v-animations-enabled !default;
padding: round($v-layout-spacing-vertical / 2) round($v-layout-spacing-horizontal / 2);
margin: 0;
outline: none;
+ }
+
+ .#{$primary-stylename}-spacer {
+ margin-top: first-number($v-grid-border) * -1;
+ }
+
+ // Sidebar
+ .#{$primary-stylename}-sidebar.v-contextmenu {
+ &.opened {
+ .#{$primary-stylename}-sidebar-button:after {
+ font-size: 20px;
+ }
+
+ .#{$primary-stylename}-sidebar-content {
+ margin: 0 0 2px;
+ padding: 4px 4px 2px;
+ }
+ }
+
+ &.closed {
+ @include valo-gradient($v-grid-header-background-color);
+ }
}
// Customize scrollbars