summaryrefslogtreecommitdiffstats
path: root/public/css/widget/custom-var-table.less
blob: 46f1984d0e14b602d0cecef59a03090efbcb110b (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
.custom-var-table {
  .level-1 th {
    padding-left: .5em;
  }

  .level-2 th {
    padding-left: 1em;
  }

  .level-3 th {
    padding-left: 1.5em;
  }

  .level-4 th {
    padding-left: 2em;
  }

  .level-5 th {
    padding-left: 2.5em;
  }

  .level-6 th {
    padding-left: 3em;
  }

  thead th {
    padding-left: 0;
    text-align: left;
    font-weight: bold;
    font-size: 1.167em;

    > span {
      :nth-child(1),
      :nth-child(2) {
        display: none;
      }
    }
  }

  &.can-collapse thead th > span, // Icinga Web 2 < 2.12
  &[data-can-collapse] thead th > span { // >= 2.12
    :nth-child(1) {
      display: none;
    }

    :nth-child(2) {
      display: inline-block;
    }
  }

  &.collapsed thead th > span {
    :nth-child(1) {
      display: inline-block;
    }

    :nth-child(2) {
      display: none;
    }
  }
}