summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/runo/grid/grid.scss
blob: 1f049c5fb02e93bb0993705c2b2b504621f23a00 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Variables defined in runo.scss

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

  .#{$primaryStyleName}-header,
  .#{$primaryStyleName}-footer {
    .#{$primaryStyleName}-cell {
      background-image: url(img/header-bg.png);
      color: #393a3c;
      text-shadow: #fff 0 1px 0;
      @include box-shadow(inset 1px 0 0 #fff);
    }
  }

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

  // Selected row
  .#{$primaryStyleName}-row-selected {
    color: #fff;

    // Selected and focused
    > .#{$primaryStyleName}-cell-focused:before {
      border-color: lighten($v-grid-row-selected-background-color, 20%);
    }
  }
  
  // Sidebar
  .#{$primaryStyleName}-sidebar.v-contextmenu {

    .#{$primaryStyleName}-sidebar-content {
      background-color: transparent;
      
      .gwt-MenuBar {
        border: none;
      }
    }

    .v-on:before, .v-off:before {
      content: none;
      font-size: 0;
      margin-right: 0;
    }
  }

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

    &:after {
      content: attr(sort-order);
      background: transparent no-repeat right 50%;
      width: 30px;
      height: 36px;
      top: 0;
    }
  }

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

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

  .#{$primaryStyleName}-editor-footer {
    background: #e7e9ea;
  }

}