3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 display: inline-block
;
15 -webkit-user-select: none
;
16 -moz-user-select: none
;
17 -ms-user-select: none
;
19 -webkit-tap-highlight-color: rgba
(0, 0, 0, 0);
22 :host
(:not
([disabled
])) #
sliderBar::shadow #activeProgress
{
23 background-color: var
(--paper-slider-active-color
, --google-blue-700
);
26 :host
(:not
([disabled
])) #
sliderBar::shadow #secondaryProgress
{
27 background-color: var
(--paper-slider-secondary-color
, --google-blue-300
);
30 :host
([disabled
]) #
sliderBar::shadow #activeProgress
{
31 background-color: var
(--paper-slider-disabled-active-color
, --google-grey-500
);
34 :host
([disabled
]) #
sliderBar::shadow #secondaryProgress
{
35 background-color: var
(--paper-slider-disabled-secondary-color
, --google-grey-300
);
44 width: calc
(100% - 32px);
48 #sliderContainer.editable
{
50 width: calc
(100% - 72px);
63 .ring > .bar-container {
65 width: calc
(100% - 4px);
66 transition: left
0.18s ease
, width
0.18s ease
;
69 .ring.expand:not(.pin) > .bar-container {
71 width: calc
(100% - 14px);
74 .ring.expand.dragging > .bar-container {
86 background-color: var
(--paper-slider-bar-color
, transparent
);
91 width: calc
(100% + 4px);
94 .ring.expand:not(.pin) #sliderBar {
96 width: calc
(100% + 14px);
104 width: calc
(100% + 2px);
105 box-sizing: border-box
;
106 pointer-events: none
;
109 .slider-markers::after
,
110 .slider-marker::after {
116 background-color: black
;
119 .transiting #sliderBar::shadow #activeProgress {
120 -webkit-transition: -webkit-transform
0.08s ease
;
121 transition: transform
0.08s ease
;
125 @apply
(--layout-center-justified
);
126 @apply
(--layout-center
);
127 @apply
(--layout-horizontal
);
136 .transiting > #sliderKnob {
137 transition: left
0.08s ease
;
144 #sliderKnob.dragging
{
148 .snaps > #sliderKnob.dragging {
149 transition: -webkit-transform
0.08s ease
;
150 transition: transform
0.08s ease
;
156 box-sizing: border-box
;
157 -moz-box-sizing: border-box
;
159 background-color: var
(--paper-slider-knob-color
, --google-blue-700
);
160 transition-property: height
, width
, background-color
, border
;
161 transition-duration: 0.1s;
162 transition-timing-function: ease
;
165 .expand:not(.pin) > #sliderKnob > #sliderKnobInner {
168 -webkit-transform: translateZ
(0);
169 transform: translateZ
(0);
172 .ring > #sliderKnob > #sliderKnobInner {
173 background-color: transparent
;
174 border: 2px solid
#c8c8c8;
177 #sliderKnobInner::before
{
178 background-color: var
(--paper-slider-pin-color
, --google-blue-700
);
181 .pin > #sliderKnob > #sliderKnobInner::before {
189 border-radius: 50% 50% 50% 0;
190 -webkit-transform: rotate
(-45deg) scale
(0) translate
(0);
191 transform: rotate
(-45deg) scale
(0) translate
(0);
194 #sliderKnobInner::before
,
195 #sliderKnobInner::after
{
196 transition: -webkit-transform
.2s ease
, background-color
.18s ease
;
197 transition: transform
.2s ease
, background-color
.18s ease
;
200 .pin.ring > #sliderKnob > #sliderKnobInner::before {
201 background-color: #c8c8c8;
204 .pin.expand > #sliderKnob > #sliderKnobInner::before {
205 -webkit-transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
206 transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
209 .pin > #sliderKnob > #sliderKnobInner::after {
210 content: attr
(value
);
217 color: var
(--paper-slider-font-color
, #fff);
219 -webkit-transform: scale
(0) translate
(0);
220 transform: scale
(0) translate
(0);
223 .pin.expand > #sliderKnob > #sliderKnobInner::after {
224 -webkit-transform: scale
(1) translate
(0, -17px);
225 transform: scale
(1) translate
(0, -17px);
228 /* editable: paper-input */
235 .slider-input::shadow input {
236 /* FIXME(ffu): should one be able set text-align directly on paper-input? */
241 #sliderContainer.disabled
{
242 pointer-events: none
;
245 .disabled > #sliderKnob > #sliderKnobInner {
248 background-color: var
(--paper-slider-disabled-knob-color
, --google-grey-500
);
251 .disabled.ring > #sliderKnob > #sliderKnobInner {
252 background-color: transparent
;
256 color: var
(--paper-slider-knob-color
, --google-blue-700
);