diff options
author | Henrik Paul <henrik@vaadin.com> | 2014-12-10 11:51:45 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-12 12:23:05 +0000 |
commit | 992d8bf70bb13ce90aa78623737af1d811fc779d (patch) | |
tree | af2234f45b18a6ba6fe89710c3e522c40f612398 /WebContent/VAADIN/themes/reindeer | |
parent | 2ed3d92ef894656ead3f17e1816cdc1517c3d4e6 (diff) | |
download | vaadin-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/reindeer')
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/grid/grid.scss | 62 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/grid/img/focus-bg-light.png | bin | 0 -> 946 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/grid/img/focus-header-bg-light.png | bin | 0 -> 959 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/grid/img/focus-sel-bg-light.png | bin | 0 -> 954 bytes |
4 files changed, 37 insertions, 25 deletions
diff --git a/WebContent/VAADIN/themes/reindeer/grid/grid.scss b/WebContent/VAADIN/themes/reindeer/grid/grid.scss index 1fa0a743a6..09bc03ad73 100644 --- a/WebContent/VAADIN/themes/reindeer/grid/grid.scss +++ b/WebContent/VAADIN/themes/reindeer/grid/grid.scss @@ -1,11 +1,8 @@ @mixin reindeer-grid($primary-stylename : v-grid) { - // TODO: check/set these values - $scrollbar-size: 15px; - $header-height: 22px; - $grid-border-main: 1px solid #c2c3c4; $grid-border-light: 1px solid #d4d4d4; + $grid-background-light: #d4d7d9; .#{$primary-stylename} { outline: none; @@ -21,7 +18,7 @@ .#{$primary-stylename}-header, .#{$primary-stylename}-footer { .#{$primary-stylename}-cell { - background: transparent repeat-x; + background: $grid-background-light repeat-x; background-image: url(img/header-bg-light.png); border: $grid-border-main; border-right: none; @@ -37,6 +34,24 @@ border-left: none; } } + + .#{$primary-stylename}-cell-active { + border-right: 1px solid transparent; + border-color: #0f68ba; + padding-right: 3px; + } + + .#{$primary-stylename}-cell-active:first-child { + border-left: 1px solid #0f68ba; + padding-left: 5px; + } + + } + + .#{$primary-stylename}-cell.frozen { + /* TODO this probably should be a SCSS mixin */ + -webkit-box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1); + box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1); } .#{$primary-stylename}-header { @@ -74,7 +89,7 @@ .#{$primary-stylename}-row-active { .#{$primary-stylename}-cell { - background: none; + background: #d6dfe9 url(img/focus-bg-light.png) repeat-x; } .#{$primary-stylename}-cell-active { @@ -98,10 +113,15 @@ border-color: #466c90; } + // Selected and focused .#{$primary-stylename}-cell-active { border-color: #b1cde4; } } + + .#{$primary-stylename}-row-active.#{$primary-stylename}-row-selected > .#{$primary-stylename}-cell { + background: #d6dfe9 url(img/focus-sel-bg-light.png) repeat-x; + } } // Sort indicators @@ -116,6 +136,11 @@ top: 0px; } + .#{$primary-stylename} th.#{$primary-stylename}-cell-active:after, + .#{$primary-stylename} th.#{$primary-stylename}-cell-active:after { + right: 4px; + } + .#{$primary-stylename} th.sort-asc:after { background-image: url(img/desc-light.png); } @@ -141,30 +166,17 @@ } // Fillers - .#{$primary-stylename}-filler-x { + .#{$primary-stylename}-horizontalscrollbarbackground, + .#{$primary-stylename}-footercorner, + .#{$primary-stylename}-headercorner { @include box-sizing(border-box); - background: transparent repeat-x; + background: $grid-background-light repeat-x; background-image: url(img/header-bg-light.png); border: $grid-border-light; - border-top: none; - bottom: 0px; - height: $scrollbar-size; - left: 0; - position: absolute; - width: 100%; } - .#{$primary-stylename}-filler-y { - @include box-sizing(border-box); - background: transparent repeat-x; - background-image: url(img/header-bg-light.png); - border: $grid-border-light; - border-left: none; - height: $header-height; - position: absolute; - right: 0; - top: 0px; - width: $scrollbar-size; + .#{$primary-stylename}-footercorner { + border-top: none; } } diff --git a/WebContent/VAADIN/themes/reindeer/grid/img/focus-bg-light.png b/WebContent/VAADIN/themes/reindeer/grid/img/focus-bg-light.png Binary files differnew file mode 100644 index 0000000000..20b34474c7 --- /dev/null +++ b/WebContent/VAADIN/themes/reindeer/grid/img/focus-bg-light.png diff --git a/WebContent/VAADIN/themes/reindeer/grid/img/focus-header-bg-light.png b/WebContent/VAADIN/themes/reindeer/grid/img/focus-header-bg-light.png Binary files differnew file mode 100644 index 0000000000..4e83df03cb --- /dev/null +++ b/WebContent/VAADIN/themes/reindeer/grid/img/focus-header-bg-light.png diff --git a/WebContent/VAADIN/themes/reindeer/grid/img/focus-sel-bg-light.png b/WebContent/VAADIN/themes/reindeer/grid/img/focus-sel-bg-light.png Binary files differnew file mode 100644 index 0000000000..249fd5917c --- /dev/null +++ b/WebContent/VAADIN/themes/reindeer/grid/img/focus-sel-bg-light.png |