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.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
;
14 -webkit-user-select: none
;
15 -moz-user-select: none
;
16 -ms-user-select: none
;
18 -webkit-tap-highlight-color: rgba
(0,0,0,0);
27 width: calc
(100% - 32px);
31 #sliderContainer.editable
{
33 width: calc
(100% - 72px);
46 .ring > .bar-container {
48 width: calc
(100% - 4px);
49 transition: left
0.18s ease
, width
0.18s ease
;
52 .ring.expand:not(.pin) > .bar-container {
54 width: calc
(100% - 14px);
57 .ring.expand.dragging > .bar-container {
73 width: calc
(100% + 4px);
76 .ring.expand:not(.pin) #sliderBar {
78 width: calc
(100% + 14px);
86 width: calc
(100% + 2px);
87 box-sizing: border-box
;
91 .slider-markers::after, .slider-marker::after {
97 background-color: black
;
100 #sliderBar::shadow #activeProgress
{
101 background-color: #3f51b5;
104 .transiting #sliderBar::shadow #activeProgress {
105 transition: -webkit-transform
0.08s ease
;
106 transition: transform
0.08s ease
;
117 .transiting > #sliderKnob {
118 transition: left
0.08s ease
;
125 #sliderKnob.dragging
{
129 .snaps > #sliderKnob.dragging {
130 transition: -webkit-transform
0.08s ease
;
131 transition: transform
0.08s ease
;
137 box-sizing: border-box
;
138 -moz-box-sizing: border-box
;
140 background-color: #3f51b5;
141 /* FIXME(ffu): can't use the following. https://github.com/Polymer/platform/issues/53 */
142 /* transition-property: height, width, background-color, border;
143 transition-duration: 0.1s;
144 transition-timing-function: ease; */
145 transition: height
0.18s ease
, width
0.18s ease
;
148 .expand:not(.pin) > #sliderKnob > #sliderKnobInner {
151 -webkit-transform: translateZ
(0);
152 transform: translateZ
(0);
155 .ring > #sliderKnob > #sliderKnobInner {
156 background-color: transparent
;
157 border: 2px solid
#c8c8c8;
160 #sliderKnobInner::before
{
161 background-color: #3f51b5;
164 .pin > #sliderKnob > #sliderKnobInner::before {
172 border-radius: 50% 50% 50% 0;
173 -webkit-transform: rotate
(-45deg) scale
(0) translate
(0);
174 transform: rotate
(-45deg) scale
(0) translate
(0);
177 #sliderKnobInner::before
, #
sliderKnobInner::after
{
178 transition: -webkit-transform
.2s ease
, background-color
.18s ease
;
179 transition: transform
.2s ease
, background-color
.18s ease
;
182 .pin.ring > #sliderKnob > #sliderKnobInner::before {
183 background-color: #c8c8c8;
186 .pin.expand > #sliderKnob > #sliderKnobInner::before {
187 -webkit-transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
188 transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
191 .pin > #sliderKnob > #sliderKnobInner::after {
192 content: attr
(value
);
201 -webkit-transform: scale
(0) translate
(0);
202 transform: scale
(0) translate
(0);
205 .pin.expand > #sliderKnob > #sliderKnobInner::after {
206 -webkit-transform: scale
(1) translate
(0, -17px);
207 transform: scale
(1) translate
(0, -17px);
210 /* editable: paper-input */
217 .slider-input::shadow input {
218 /* FIXME(ffu): should one be able set text-align directly on paper-input? */
223 #sliderContainer.disabled
{
224 pointer-events: none
;
227 .disabled > #sliderKnob > #sliderKnobInner {
230 background-color: #c8c8c8;
233 .disabled.ring > #sliderKnob > #sliderKnobInner {
234 background-color: transparent
;
237 #sliderContainer.disabled #
sliderBar::shadow #activeProgress
{
238 background-color: #c8c8c8;