forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-24 f39bc9d667e68526c79387d754e6304a80825ef5
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
.wowjoy-checkbox {
  cursor: pointer;
  display: inline-block;
}
input[type='checkbox']:checked {
  & + .wowjoy-checkbox__inner {
    border-color: #1890ff;
    &:before {
      content: '\2713';
      color: #1890ff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}
.wowjoy-checkbox__inner {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #dbdbdb;
  vertical-align: sub;
  margin-right: 5px;
}
.wowjoy-checkbox__text {
  display: inline-block;
  max-width: 80%;
  vertical-align: top;
  word-break: break-all;
}