|
11 | 11 | .#{$prefix}checkbox { |
12 | 12 | .#{$prefix}checkbox__label { |
13 | 13 | cursor: pointer; |
| 14 | + color: get('colors.gray.grayDark.hex'); |
14 | 15 | line-height: $base; |
15 | 16 | position: relative; |
16 | 17 | display: inline-block; |
|
36 | 37 | width: ($boxSize) + $borderWidth * 2; |
37 | 38 | height: ($boxSize) + $borderWidth * 2; |
38 | 39 | margin: -$borderWidth; |
39 | | - border: 2px solid get('colors.gray.gray.hex'); |
| 40 | + border: 2px solid get('colors.gray.grayDark.hex'); |
40 | 41 | border-radius: 0; |
41 | 42 | } |
42 | 43 | } |
43 | 44 |
|
44 | 45 | /* hide the input element */ |
45 | 46 | .#{$prefix}checkbox__input { |
46 | 47 | opacity: 0; |
47 | | - &:disabled + .#{$prefix}checkbox__label:before { |
48 | | - cursor: not-allowed; |
49 | | - background: get('colors.gray.grayLighter.hex'); |
50 | | - border: 2px solid get('colors.gray.gray.hex'); |
51 | | - } |
52 | 48 | &:disabled + .#{$prefix}checkbox__label { |
53 | 49 | cursor: not-allowed; |
| 50 | + color: get('colors.gray.textGray.hex'); |
54 | 51 | } |
55 | | - &:checked + .#{$prefix}checkbox__label:before { |
56 | | - font-family: zepicons; |
57 | | - content: '\f112'; |
58 | | - //content: '\2713'; |
59 | | - display: inline-block; |
60 | | - background: get('colors.gray.white.hex'); |
61 | | - line-height: $boxSize + $borderWidth; |
62 | | - font-size: 1.125rem; |
63 | | - text-align: center; |
64 | | - transform: scale(1); |
65 | | - @include themify($themes) { |
| 52 | + &:disabled + .#{$prefix}checkbox__label:before { |
| 53 | + border: 2px solid get('colors.gray.grayLight.hex'); |
| 54 | + } |
| 55 | + |
| 56 | + @include themify($themes) { |
| 57 | + &:checked + .#{$prefix}checkbox__label:before { |
| 58 | + font-family: zepicons; |
| 59 | + content: '\f112'; |
| 60 | + display: inline-block; |
| 61 | + background: get('colors.gray.white.hex'); |
| 62 | + line-height: $boxSize + $borderWidth; |
| 63 | + font-size: 1.125rem; |
| 64 | + text-align: center; |
| 65 | + transform: scale(1); |
66 | 66 | color: themed('primary'); |
67 | 67 | } |
68 | | - } |
69 | | - &:checked:focus + .#{$prefix}checkbox__label:before { |
70 | | - @include themify($themes) { |
| 68 | + &:checked:focus + .#{$prefix}checkbox__label:before { |
71 | 69 | box-shadow: 0 0 5px 1px themed('primary'); |
72 | 70 | background: get('colors.gray.white.hex'); |
73 | 71 | } |
74 | | - } |
75 | | - &:active + .#{$prefix}checkbox__label:before { |
76 | | - @include themify($themes) { |
| 72 | + &:active + .#{$prefix}checkbox__label:before { |
77 | 73 | background: themed('hover'); |
78 | 74 | } |
| 75 | + &:disabled:active + .#{$prefix}checkbox__label:before { |
| 76 | + background: get('colors.gray.white.hex'); |
| 77 | + } |
79 | 78 | } |
80 | 79 | } |
81 | 80 | } |
|
0 commit comments