Blame view

frontend/themes/markup/src/scss/custom/_checkbox.scss 679 Bytes
d1f8bd40   Alexey Boroda   first commit
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
  input[type=checkbox] {
    display: none!important;
  }
  label.checkbox {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
  }
  label.checkbox:before {
    display: inline-block;
    border: 1px solid $brand-primary;
    border-radius: 1px;
  }
  input[type=checkbox]:checked+label.checkbox:before, label.checkbox:before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: absolute;
    left: 0;
    top: 0;
  }
  input[type=checkbox]:checked+label.checkbox:before {
    border-radius: 1px;
    display: inline-block;
    border: 1px solid $brand-primary;
    background: url(../img/check.png) center no-repeat #fffade;
  }