| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 input[type='checkbox'] { | 6 input[type='checkbox'] { |
| 7 -webkit-box-shadow: inset 0 1px 2px white, | 7 -webkit-box-shadow: inset 0 1px 2px white, |
| 8 0 1px 2px rgba(0, 0, 0, .2); | 8 0 1px 2px rgba(0, 0, 0, .2); |
| 9 -webkit-appearance: none; | 9 -webkit-appearance: none; |
| 10 -webkit-margin-start: 0; | 10 -webkit-margin-start: 0; |
| 11 -webkit-margin-end: 5px; | 11 -webkit-margin-end: 3px; |
| 12 background: -webkit-linear-gradient(#fafafa, #dcdcdc); | 12 background: -webkit-linear-gradient(#fafafa, #dcdcdc); |
| 13 border-radius: 3px; | 13 border-radius: 3px; |
| 14 border: 1px solid #a0a0a0; | 14 border: 1px solid #a0a0a0; |
| 15 display: inline-block; | 15 display: inline-block; |
| 16 height: 16px; | 16 height: 16px; |
| 17 margin-bottom: 0; | 17 margin-bottom: 0; |
| 18 margin-top: 0; | 18 margin-top: 0; |
| 19 position: relative; | 19 position: relative; |
| 20 top: 3px; | 20 top: 3px; |
| 21 vertical-align: baseline; | 21 vertical-align: baseline; |
| 22 width: 16px; | 22 width: 16px; |
| 23 } | 23 } |
| 24 | 24 |
| 25 input[type='checkbox']:disabled { | 25 input[type='checkbox']:disabled { |
| 26 opacity: .75; | 26 opacity: .75; |
| 27 } | 27 } |
| 28 | 28 |
| 29 input[type='checkbox']:not(:disabled):not(.disabled):not(:active):hover { | 29 input[type='checkbox']:not(:disabled):not(:active):hover { |
| 30 background: -webkit-linear-gradient(#fff, #e6e6e6); | 30 background: -webkit-linear-gradient(#fff, #e6e6e6); |
| 31 text-shadow: 0 1px 0 rgba(255, 255, 255, 1); | 31 text-shadow: 0 1px 0 rgba(255, 255, 255, 1); |
| 32 } | 32 } |
| 33 | 33 |
| 34 input[type='checkbox']:active { | 34 input[type='checkbox']:not(:disabled):active { |
| 35 -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); | 35 -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); |
| 36 background: -webkit-linear-gradient(#f0f0f0, #bebebe); | 36 background: -webkit-linear-gradient(#f0f0f0, #bebebe); |
| 37 border: 1px solid #808080; | 37 border: 1px solid #808080; |
| 38 text-shadow: 0 1px 0 rgba(255, 255, 255, .25); | 38 text-shadow: 0 1px 0 rgba(255, 255, 255, .25); |
| 39 } | 39 } |
| 40 | 40 |
| 41 input[type='checkbox']:checked::before { | 41 input[type='checkbox']:checked::before { |
| 42 color: #808080; | 42 color: #808080; |
| 43 content: url('../images/checkmark.png'); | 43 content: url('../images/checkmark.png'); |
| 44 height: 16px; | 44 height: 16px; |
| 45 left: 2px; | 45 left: 2px; |
| 46 position: absolute; | 46 position: absolute; |
| 47 } | 47 } |
| 48 | 48 |
| 49 html[os=mac] input[type='checkbox']:checked::before { | 49 html[os=mac] input[type='checkbox']:checked::before { |
| 50 top: 2px; | 50 top: 2px; |
| 51 } | 51 } |
| 52 | 52 |
| 53 input[type='radio'] { | 53 input[type='radio'] { |
| 54 -webkit-box-shadow: inset 0 1px 2px white, | 54 -webkit-box-shadow: inset 0 1px 2px white, |
| 55 0 1px 2px rgba(0, 0, 0, .2); | 55 0 1px 2px rgba(0, 0, 0, .2); |
| 56 -webkit-appearance: none; | 56 -webkit-appearance: none; |
| 57 -webkit-margin-start: 0; | 57 -webkit-margin-start: 0; |
| 58 -webkit-margin-end: 5px; | 58 -webkit-margin-end: 3px; |
| 59 -webkit-transition: border 500ms; | 59 -webkit-transition: border 500ms; |
| 60 background: -webkit-linear-gradient(#fafafa, #dcdcdc); | 60 background: -webkit-linear-gradient(#fafafa, #dcdcdc); |
| 61 border-radius: 100%; | 61 border-radius: 100%; |
| 62 border: 1px solid #a0a0a0; | 62 border: 1px solid #a0a0a0; |
| 63 display: inline-block; | 63 display: inline-block; |
| 64 height: 15px; | 64 height: 15px; |
| 65 margin-top: 0; | 65 margin-top: 0; |
| 66 position: relative; | 66 position: relative; |
| 67 top: 2px; | 67 top: 3px; |
| 68 vertical-align: baseline; | 68 vertical-align: baseline; |
| 69 width: 15px; | 69 width: 15px; |
| 70 } | 70 } |
| 71 | 71 |
| 72 input[type='radio']:disabled { | 72 input[type='radio']:disabled { |
| 73 opacity: .75; | 73 opacity: .75; |
| 74 } | 74 } |
| 75 | 75 |
| 76 input[type='radio']:not(:disabled):not(.disabled):not(:active):hover { | 76 input[type='radio']:not(:disabled):not(:active):hover { |
| 77 background: -webkit-linear-gradient(#fff, #e6e6e6); | 77 background: -webkit-linear-gradient(#fff, #e6e6e6); |
| 78 text-shadow: 0 1px 0 rgba(255, 255, 255, 1); | 78 text-shadow: 0 1px 0 rgba(255, 255, 255, 1); |
| 79 } | 79 } |
| 80 | 80 |
| 81 input[type='radio']:active { | 81 input[type='radio']:not(:disabled):active { |
| 82 -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); | 82 -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); |
| 83 background: -webkit-linear-gradient(#f0f0f0, #bebebe); | 83 background: -webkit-linear-gradient(#f0f0f0, #bebebe); |
| 84 border: 1px solid #808080; | 84 border: 1px solid #808080; |
| 85 text-shadow: 0 1px 0 rgba(255, 255, 255, .25); | 85 text-shadow: 0 1px 0 rgba(255, 255, 255, .25); |
| 86 } | 86 } |
| 87 | 87 |
| 88 input[type='radio']:checked::before { | 88 input[type='radio']:checked::before { |
| 89 -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5); | 89 -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5); |
| 90 -webkit-margin-start: 4px; | 90 -webkit-margin-start: 4px; |
| 91 background: #808080; | 91 background: #808080; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 117 input[type='radio']:not(.custom-appearance):focus { | 117 input[type='radio']:not(.custom-appearance):focus { |
| 118 -webkit-box-shadow: inset 0 1px 2px white, | 118 -webkit-box-shadow: inset 0 1px 2px white, |
| 119 0 1px 2px rgba(0, 0, 0, .2), | 119 0 1px 2px rgba(0, 0, 0, .2), |
| 120 0 0 1px #c0c0c0, | 120 0 0 1px #c0c0c0, |
| 121 0 0 1px #c0c0c0, | 121 0 0 1px #c0c0c0, |
| 122 0 0 1px #c0c0c0; | 122 0 0 1px #c0c0c0; |
| 123 -webkit-transition: border-color 200ms; | 123 -webkit-transition: border-color 200ms; |
| 124 border-color: #4080fa; | 124 border-color: #4080fa; |
| 125 outline: none; | 125 outline: none; |
| 126 } | 126 } |
| 127 |
| 128 label:hover > input[type=checkbox]:disabled ~ span, |
| 129 label:hover > input[type=radio]:disabled ~ span { |
| 130 color: #888; |
| 131 } |
| 132 |
| 133 label:hover > input[type=checkbox]:not(:disabled) ~ span, |
| 134 label:hover > input[type=radio]:not(:disabled) ~ span { |
| 135 color: #222; |
| 136 } |
| OLD | NEW |