summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_treetable.scss
blob: e025df2bc96c93640e3e6a8db6e235c23b5517a4 (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
/**
 *
 *
 * @param {string} $primary-stylename (v-treetable) - 
 *
 * @group treetable
 */
@mixin valo-treetable ($primary-stylename: v-treetable) {
  .#{$primary-stylename} {
    [class*="caption-container"],
    [class*="footer-container"],
    [class*="cell-wrapper"] {
      @include box-sizing(content-box);
      padding-left: 0;
      padding-right: 0;
    }

    [class*="cell-wrapper"] {
      min-height: $v-font-size;
    }

    [class*="caption-container"] {
      padding-left: $v-table-cell-padding-horizontal;
    }

    [class*="caption-container-align-right"] {
      padding-left: $v-table-cell-padding-horizontal + $v-table-resizer-width;
    }

    [class*="footer-container"] {
      padding-right: $v-table-cell-padding-horizontal;
    }

    [class*="cell-content"] {
      padding-left: $v-table-cell-padding-horizontal;
      padding-right: $v-table-cell-padding-horizontal;

      &:first-child {
        padding-left: $v-table-cell-padding-horizontal + $v-table-border-width;
      }
    }
  }

  .#{$primary-stylename}-treespacer {
    display: inline-block;
    position: absolute;
    width: round($v-unit-size/2) !important;
    margin-left: round($v-unit-size/-2) - round($v-table-cell-padding-horizontal/2);
    text-align: center;
    cursor: pointer;
  }

  .#{$primary-stylename}-node-closed:before {
    @include valo-tree-collapsed-icon-style;
  }

  .#{$primary-stylename}-node-open:before {
    @include valo-tree-expanded-icon-style($force: true);
  }
}