2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.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/CONTRIBUTORS.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/PATENTS.txt
11 display: inline-block
;
20 display: inline-block
;
25 vertical-align: middle
;
34 color: var
(--paper-radio-button-unchecked-ink-color
, --primary-text-color
);
40 color: var
(--paper-radio-button-checked-ink-color
, --default-primary-color
);
45 box-sizing: content-box
;
52 background-color: var
(--paper-radio-button-unchecked-background-color
, transparent
);
53 border-color: var
(--paper-radio-button-unchecked-color
, --primary-text-color
);
54 transition: border-color
0.28s;
59 box-sizing: content-box
;
65 background-color: var
(--paper-radio-button-checked-color
, --default-primary-color
);
66 -webkit-transform: scale
(0);
68 transition: -webkit-transform ease
0.28s;
69 transition: transform ease
0.28s;
72 :host
([checked
]) #offRadio
{
73 border-color: var
(--paper-radio-button-checked-color
, --default-primary-color
);
76 :host
([checked
]) #onRadio
{
77 -webkit-transform: scale
(1);
83 display: inline-block
;
84 vertical-align: middle
;
88 color: var
(--paper-radio-button-label-color
, --primary-text-color
);
100 :host
([disabled
]) #offRadio
{
101 border-color: var
(--paper-radio-button-unchecked-color
, --primary-text-color
);
105 :host
([disabled
][checked
]) #onRadio
{
106 background-color: var
(--paper-radio-button-unchecked-color
, --primary-text-color
);
110 :host
([disabled
]) #radioLabel
{
111 /* slightly darker than the button, so that it's readable */