summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/reindeer/grid/grid.scss
blob: 8dacb3ccce1108073c661716543d866d46ab324e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Variables defined in reindeer.scss

@mixin reindeer-grid($primaryStyleName: v-grid) {

  .#{$primaryStyleName}-header,
  .#{$primaryStyleName}-footer {
    .#{$primaryStyleName}-cell {
      background-image: url(img/header-bg-light.png);
      color: #222;
      font-weight: bold;
      text-shadow: #f3f5f8 0 1px 0;
      text-transform: uppercase;
    }
  }

  .#{$primaryStyleName}-header-deco,
  .#{$primaryStyleName}-footer-deco,
  .#{$primaryStyleName}-horizontal-scrollbar-deco {
    background-image: url(img/header-bg-light.png);
  }

  // Selected row
  .#{$primaryStyleName}-row-selected {
    color: #fff;
    text-shadow: #3b5a7a 0 1px 0;

    > .#{$primaryStyleName}-cell {
      background: #4d749f url(../common/img/sel-bg.png) repeat-x;
      border-color: #466c90;
    }

    // Selected and focused
    > .#{$primaryStyleName}-cell-focused:before {
      border-color: #b1cde4;
    }
  }

  // Sort indicators
  .#{$primaryStyleName} th.sort-asc,
  .#{$primaryStyleName} th.sort-desc {
    padding-right: 16px + $v-grid-cell-padding-horizontal;

    &:after {
      content: " " attr(sort-order);
      background: transparent no-repeat right 7px;
      width: 16px;
      height: 12px;
      top: 0;
    }
  }

  .#{$primaryStyleName} th.sort-asc:after {
    background-image: url(img/asc-light.png);
  }

  .#{$primaryStyleName} th.sort-desc:after {
    background-image: url(img/desc-light.png);
  }

}