diff options
author | Patrik Lindström <patrik@vaadin.com> | 2015-09-22 12:01:17 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-10-07 13:15:38 +0000 |
commit | d1e8d68248dd9ec97378fa9b909e29dde4358073 (patch) | |
tree | 4a3cee8071cf97d89833e540e669504dec695917 /WebContent | |
parent | ec8f3e9bc6955e9916e297b74a12b4a431b69928 (diff) | |
download | vaadin-framework-d1e8d68248dd9ec97378fa9b909e29dde4358073.tar.gz vaadin-framework-d1e8d68248dd9ec97378fa9b909e29dde4358073.zip |
Add handles to Grid default header for column drag resize (#16838)
Change-Id: If8399a13585ae691ea3b3ee4a41a1a38b342adb9
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/VAADIN/themes/base/grid/grid.scss | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/base/grid/grid.scss b/WebContent/VAADIN/themes/base/grid/grid.scss index a176114fb6..5ae62940f4 100644 --- a/WebContent/VAADIN/themes/base/grid/grid.scss +++ b/WebContent/VAADIN/themes/base/grid/grid.scss @@ -260,6 +260,16 @@ $v-grid-details-border-bottom-stripe: 1px solid darken($v-grid-row-background-co } } + .#{$primaryStyleName}-column-resize-handle { + position: absolute; + width: 20px; + top: 0px; + bottom: 0px; + right: -10px; + cursor: col-resize; + z-index: 10; + } + // Footer .#{$primaryStyleName}-footer { @@ -278,6 +288,18 @@ $v-grid-details-border-bottom-stripe: 1px solid darken($v-grid-row-background-co } } + // Header and footer content + + .#{$primaryStyleName}-column-header-content, + .#{$primaryStyleName}-column-footer-content { + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + // Hackish, needed to override the "v-grid-cell > *" rule above + line-height: $v-grid-row-height; + vertical-align: baseline; + } + // Decorative elements .#{$primaryStyleName}-header-deco { |