Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | .tlv-checkbox { |
| 2 | font-family: clearview-book, Sans-Serif; |
| 3 | font-size: 14px; |
| 4 | display: inline-block; |
| 5 | |
| 6 | .tlv-checkbox-i { |
| 7 | height: 0; |
| 8 | /*visibility: hidden;*/ |
| 9 | display: none; |
| 10 | width: 0; |
| 11 | |
| 12 | &:checked ~ .tlv-checkbox-label, |
| 13 | &:checked:hover ~ .tlv-checkbox-label{ |
| 14 | &::before { |
| 15 | .tlv-sprite; |
| 16 | .checkbox-checked; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | &:disabled ~ .tlv-checkbox-label{ |
| 21 | pointer-events: none; |
| 22 | } |
| 23 | |
| 24 | &:hover ~ .tlv-checkbox-label{ |
| 25 | &::before { |
| 26 | .tlv-sprite; |
| 27 | .checkbox-hover; |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | .tlv-checkbox-label { |
| 33 | /*display: inline-block;*/ |
| 34 | display: block; |
| 35 | vertical-align: middle; |
| 36 | |
| 37 | &::before { |
| 38 | .tlv-sprite; |
| 39 | .checkbox; |
| 40 | content: ''; |
| 41 | display: inline-block; |
| 42 | margin-right: 4px; |
| 43 | margin-top: -2px; |
| 44 | vertical-align: middle; |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | |
| 50 | .tlv-radio { |
| 51 | font-size: 14px; |
| 52 | display: inline-block; |
| 53 | |
| 54 | .tlv-radio-i { |
| 55 | height: 0; |
| 56 | visibility: hidden; |
| 57 | width: 0; |
| 58 | |
| 59 | &:checked ~ .tlv-radio-label{ |
| 60 | &::before { |
| 61 | .tlv-sprite; |
| 62 | .radio-checked; |
| 63 | |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | &:disabled ~ .tlv-radio-label{ |
| 68 | opacity: .6; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | .tlv-radio-label { |
| 73 | display: inline-block; |
| 74 | vertical-align: middle; |
| 75 | margin-bottom: 0; |
| 76 | |
| 77 | &::before { |
| 78 | .tlv-sprite; |
| 79 | .radio; |
| 80 | content: ''; |
| 81 | display: inline-block; |
| 82 | margin-right: 4px; |
| 83 | margin-top: -2px; |
| 84 | vertical-align: middle; |
| 85 | } |
| 86 | } |
| 87 | } |