Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-slider / paper-slider.css
blobaf769f4aeeb96d7e1d37d38cb03ee50398dfa6a4
1 /**
2 @license
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
9 */
11 :host {
12 display: inline-block;
13 width: 200px;
14 cursor: default;
15 -webkit-user-select: none;
16 -moz-user-select: none;
17 -ms-user-select: none;
18 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);
38 :host(:focus) {
39 outline: none;
42 #sliderContainer {
43 position: relative;
44 width: calc(100% - 32px);
45 height: 32px;
48 #sliderContainer.editable {
49 float: left;
50 width: calc(100% - 72px);
51 margin: 12px 0;
54 .bar-container {
55 position: absolute;
56 top: 0;
57 left: 16px;
58 height: 100%;
59 width: 100%;
60 overflow: hidden;
63 .ring > .bar-container {
64 left: 20px;
65 width: calc(100% - 4px);
66 transition: left 0.18s ease, width 0.18s ease;
69 .ring.expand:not(.pin) > .bar-container {
70 left: 30px;
71 width: calc(100% - 14px);
74 .ring.expand.dragging > .bar-container {
75 transition: none;
78 #sliderBar {
79 position: absolute;
80 top: 15px;
81 left: 0;
82 height: 2px;
83 width: 100%;
84 padding: 8px 0;
85 margin: -8px 0;
86 background-color: var(--paper-slider-bar-color, transparent);
89 .ring #sliderBar {
90 left: -4px;
91 width: calc(100% + 4px);
94 .ring.expand:not(.pin) #sliderBar {
95 left: -14px;
96 width: calc(100% + 14px);
99 .slider-markers {
100 position: absolute;
101 top: 15px;
102 left: 15px;
103 height: 2px;
104 width: calc(100% + 2px);
105 box-sizing: border-box;
106 pointer-events: none;
109 .slider-markers::after,
110 .slider-marker::after {
111 content: "";
112 display: block;
113 width: 2px;
114 height: 2px;
115 border-radius: 50%;
116 background-color: black;
119 .transiting #sliderBar::shadow #activeProgress {
120 -webkit-transition: -webkit-transform 0.08s ease;
121 transition: transform 0.08s ease;
124 #sliderKnob {
125 @apply(--layout-center-justified);
126 @apply(--layout-center);
127 @apply(--layout-horizontal);
129 position: absolute;
130 left: 0;
131 top: 0;
132 width: 32px;
133 height: 32px;
136 .transiting > #sliderKnob {
137 transition: left 0.08s ease;
140 #sliderKnob:focus {
141 outline: none;
144 #sliderKnob.dragging {
145 transition: none;
148 .snaps > #sliderKnob.dragging {
149 transition: -webkit-transform 0.08s ease;
150 transition: transform 0.08s ease;
153 #sliderKnobInner {
154 width: 12px;
155 height: 12px;
156 box-sizing: border-box;
157 -moz-box-sizing: border-box;
158 border-radius: 50%;
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 {
166 width: 100%;
167 height: 100%;
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 {
182 content: "";
183 position: absolute;
184 top: 0;
185 left: 0;
186 width: 26px;
187 height: 26px;
188 margin-left: 3px;
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);
211 position: absolute;
212 top: 0;
213 left: 0;
214 width: 32px;
215 height: 26px;
216 text-align: center;
217 color: var(--paper-slider-font-color, #fff);
218 font-size: 10px;
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 */
229 .slider-input {
230 width: 40px;
231 float: right;
232 overflow: hidden;
235 .slider-input::shadow input {
236 /* FIXME(ffu): should one be able set text-align directly on paper-input? */
237 text-align: center;
240 /* disabled state */
241 #sliderContainer.disabled {
242 pointer-events: none;
245 .disabled > #sliderKnob > #sliderKnobInner {
246 width: 8px;
247 height: 8px;
248 background-color: var(--paper-slider-disabled-knob-color, --google-grey-500);
251 .disabled.ring > #sliderKnob > #sliderKnobInner {
252 background-color: transparent;
255 paper-ripple {
256 color: var(--paper-slider-knob-color, --google-blue-700);