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);
20 --paper-progress-active-color: var
(--paper-slider-active-color
, --google-blue-700
);
21 --paper-progress-secondary-color: var
(--paper-slider-secondary-color
, --google-blue-300
);
22 --paper-progress-disabled-active-color: var
(--paper-slider-disabled-active-color
, --google-grey-500
);
23 --paper-progress-disabled-secondary-color: var
(--paper-slider-disabled-secondary-color
, --google-grey-300
);
26 /* focus shows the ripple */
33 width: calc
(100% - 32px);
37 #sliderContainer.editable
{
39 width: calc
(100% - 72px);
52 .ring > .bar-container {
54 width: calc
(100% - 4px);
55 transition: left
0.18s ease
, width
0.18s ease
;
58 .ring.expand:not(.pin) > .bar-container {
60 width: calc
(100% - 14px);
63 .ring.expand.dragging > .bar-container {
74 background-color: var
(--paper-slider-bar-color
, transparent
);
75 --paper-progress-height: var
(--paper-slider-height
, 2px);
80 width: calc
(100% + 4px);
83 .ring.expand:not(.pin) #sliderBar {
85 width: calc
(100% + 14px);
93 width: calc
(100% + 2px);
94 box-sizing: border-box
;
98 .slider-markers::after
,
99 .slider-marker::after {
105 background-color: black
;
109 @apply
(--layout-center-justified
);
110 @apply
(--layout-center
);
111 @apply
(--layout-horizontal
);
120 .transiting > #sliderKnob {
121 transition: left
0.08s ease
;
128 #sliderKnob.dragging
{
132 .snaps > #sliderKnob.dragging {
133 transition: -webkit-transform
0.08s ease
;
134 transition: transform
0.08s ease
;
141 background-color: var
(--paper-slider-knob-color
, --google-blue-700
);
143 -moz-box-sizing: border-box
;
144 box-sizing: border-box
;
146 transition-property: height
, width
, background-color
, border
;
147 transition-duration: 0.1s;
148 transition-timing-function: ease
;
151 .expand:not(.pin) > #sliderKnob > #sliderKnobInner {
155 -webkit-transform: translateZ
(0);
156 transform: translateZ
(0);
159 .ring > #sliderKnob > #sliderKnobInner {
160 background-color: var
(--paper-slider-knob-start-color
, transparent
);
161 border: 2px solid var
(--paper-slider-knob-start-border-color
, #c8c8c8);
164 #sliderKnobInner::before
{
165 background-color: var
(--paper-slider-pin-color
, --google-blue-700
);
168 .pin > #sliderKnob > #sliderKnobInner::before {
176 border-radius: 50% 50% 50% 0;
178 -webkit-transform: rotate
(-45deg) scale
(0) translate
(0);
179 transform: rotate
(-45deg) scale
(0) translate
(0);
182 #sliderKnobInner::before
,
183 #sliderKnobInner::after
{
184 transition: -webkit-transform
.2s ease
, background-color
.18s ease
;
185 transition: transform
.2s ease
, background-color
.18s ease
;
188 .pin.ring > #sliderKnob > #sliderKnobInner::before {
189 background-color: var
(--paper-slider-pin-start-color
, #c8c8c8);
192 .pin.expand > #sliderKnob > #sliderKnobInner::before {
193 -webkit-transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
194 transform: rotate
(-45deg) scale
(1) translate
(17px, -17px);
197 .pin > #sliderKnob > #sliderKnobInner::after {
198 content: attr
(value
);
205 color: var
(--paper-slider-font-color
, #fff);
208 -webkit-transform: scale
(0) translate
(0);
209 transform: scale
(0) translate
(0);
212 .pin.expand > #sliderKnob > #sliderKnobInner::after {
213 -webkit-transform: scale
(1) translate
(0, -17px);
214 transform: scale
(1) translate
(0, -17px);
217 /* editable: paper-input */
225 --paper-input-container-input: {
231 #sliderContainer.disabled
{
232 pointer-events: none
;
235 .disabled > #sliderKnob > #sliderKnobInner {
238 background-color: var
(--paper-slider-disabled-knob-color
, --google-grey-500
);
241 .disabled.ring > #sliderKnob > #sliderKnobInner {
242 background-color: transparent
;
246 color: var
(--paper-slider-knob-color
, --google-blue-700
);