summaryrefslogtreecommitdiffstats
path: root/public/css/widget/view-mode-switcher.less
blob: 7eda2a8898d70ee54f302b0bdd3e79e7a8275146 (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
.view-mode-switcher {
  list-style-type: none;
  margin: 0 0 0.25em 0;
  padding: 0;
  display: flex;

  input {
    display: none;
  }

  label {
    color: @control-color;
    line-height: 1;
    background: @low-sat-blue;
    padding: 14/16*.25em 14/16*.5em;
    font-size: 16/12em;
    height: 24/16em; // desired pixel height / font-size
    cursor: pointer;

    &:first-of-type {
      border-top-left-radius: 0.25em;
      border-bottom-left-radius: 0.25em;
    }

    &:last-of-type {
      border-top-right-radius: 0.25em;
      border-bottom-right-radius: 0.25em;
    }

    &:not(:last-of-type) {
      border-right: 1px solid @low-sat-blue-dark;
    }

    i {
      // fix height for Chrome
      display: block;
    }
  }

  input[checked] + label {
    background-color: @control-color;
    color: @text-color-on-icinga-blue;
    cursor: default;
  }
}