| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
| 6 Code distributed by Google as part of the polymer project is also | |
| 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
| 8 */ | |
| 9 | |
| 10 :host { | |
| 11 display: inline-block; | |
| 12 white-space: nowrap; | |
| 13 } | |
| 14 | |
| 15 :host(:focus) { | |
| 16 outline: none; | |
| 17 } | |
| 18 | |
| 19 #radioContainer { | |
| 20 position: relative; | |
| 21 width: 16px; | |
| 22 height: 16px; | |
| 23 cursor: pointer; | |
| 24 } | |
| 25 | |
| 26 #radioContainer.labeled { | |
| 27 display: inline-block; | |
| 28 vertical-align: middle; | |
| 29 } | |
| 30 | |
| 31 #ink { | |
| 32 position: absolute; | |
| 33 top: -16px; | |
| 34 left: -16px; | |
| 35 width: 48px; | |
| 36 height: 48px; | |
| 37 color: #5a5a5a; | |
| 38 } | |
| 39 | |
| 40 #ink[checked] { | |
| 41 color: #0f9d58; | |
| 42 } | |
| 43 | |
| 44 #offRadio { | |
| 45 position: absolute; | |
| 46 top: 0px; | |
| 47 left: 0px; | |
| 48 width: 12px; | |
| 49 height: 12px; | |
| 50 border-radius: 50%; | |
| 51 border: solid 2px; | |
| 52 border-color: #5a5a5a; | |
| 53 transition: border-color 0.28s; | |
| 54 } | |
| 55 | |
| 56 :host([checked]) #offRadio { | |
| 57 border-color: #009688; | |
| 58 } | |
| 59 | |
| 60 #onRadio { | |
| 61 position: absolute; | |
| 62 top: 4px; | |
| 63 left: 4px; | |
| 64 width: 8px; | |
| 65 height: 8px; | |
| 66 border-radius: 50%; | |
| 67 background-color: #009688; | |
| 68 -webkit-transform: scale(0); | |
| 69 transform: scale(0); | |
| 70 transition: -webkit-transform ease 0.28s; | |
| 71 transition: transform ease 0.28s; | |
| 72 } | |
| 73 | |
| 74 :host([checked]) #onRadio { | |
| 75 -webkit-transform: scale(1); | |
| 76 transform: scale(1); | |
| 77 } | |
| 78 | |
| 79 #radioLabel { | |
| 80 position: relative; | |
| 81 display: inline-block; | |
| 82 vertical-align: middle; | |
| 83 margin-left: 10px; | |
| 84 white-space: normal; | |
| 85 pointer-events: none; | |
| 86 } | |
| 87 | |
| 88 #radioLabel[hidden] { | |
| 89 display: none; | |
| 90 } | |
| 91 | |
| 92 /* disabled state */ | |
| 93 :host([disabled]) { | |
| 94 pointer-events: none; | |
| 95 } | |
| 96 | |
| 97 :host([disabled]) #offRadio, | |
| 98 :host([disabled]) #onRadio { | |
| 99 opacity: 0.33; | |
| 100 } | |
| 101 | |
| 102 :host([disabled]) #offRadio { | |
| 103 border-color: #5a5a5a; | |
| 104 } | |
| 105 | |
| 106 :host([disabled][checked]) #onRadio { | |
| 107 background-color: #5a5a5a; | |
| 108 } | |
| OLD | NEW |