summaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/styles/tlv-checkbox.less
blob: 9dd5873545cebff830ad98251c952e40c79c4c5d (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
76
77
78
79
80
81
82
83
84
85
86
87
.tlv-checkbox {
  font-family: clearview-book, Sans-Serif;
  font-size: 14px;
  display: inline-block;

  .tlv-checkbox-i {
    height: 0;
    /*visibility: hidden;*/
    display: none;
    width: 0;

    &:checked ~ .tlv-checkbox-label,
    &:checked:hover ~ .tlv-checkbox-label{
        &::before {
          .tlv-sprite;
          .checkbox-checked;
        }
    }

    &:disabled ~ .tlv-checkbox-label{
      pointer-events: none;
    }

    &:hover ~ .tlv-checkbox-label{
      &::before {
        .tlv-sprite;
        .checkbox-hover;
      }
    }
  }

  .tlv-checkbox-label {
    /*display: inline-block;*/
    display: block;
    vertical-align: middle;

    &::before {
      .tlv-sprite;
      .checkbox;
      content: '';
      display: inline-block;
      margin-right: 4px;
      margin-top: -2px;
      vertical-align: middle;
    }
  }
}


.tlv-radio {
  font-size: 14px;
  display: inline-block;

  .tlv-radio-i {
    height: 0;
    visibility: hidden;
    width: 0;

    &:checked ~ .tlv-radio-label{
      &::before {
        .tlv-sprite;
        .radio-checked;

      }
    }

    &:disabled ~ .tlv-radio-label{
      opacity: .6;
    }
  }

  .tlv-radio-label {
    display: inline-block;
    vertical-align: middle;
      margin-bottom: 0;

    &::before {
      .tlv-sprite;
      .radio;
      content: '';
      display: inline-block;
      margin-right: 4px;
      margin-top: -2px;
      vertical-align: middle;
    }
  }
}