File: control_panel.css

package info (click to toggle)
chromium-browser 41.0.2272.118-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,189,132 kB
  • sloc: cpp: 9,691,462; ansic: 3,341,451; python: 712,689; asm: 518,779; xml: 208,926; java: 169,820; sh: 119,353; perl: 68,907; makefile: 28,311; yacc: 13,305; objc: 11,385; tcl: 3,186; cs: 2,225; sql: 2,217; lex: 2,215; lisp: 1,349; pascal: 1,256; awk: 407; ruby: 155; sed: 53; php: 14; exp: 11
file content (426 lines) | stat: -rw-r--r-- 10,430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
/* Copyright 2014 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* Controls bar. */
.controls {
  align-items: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 64px;
  justify-content: center;
  padding: 0;
}

.controls .upper-controls {
  height: 32px;
  width: 100%
}

.controls .lower-controls {
  height: 32px;
  width: 100%
}

.audio-controls {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0;
}

/* Customized scrollbar for the playlist. */

.media-button {
  background-color: #fff;
  border: 0;
  height: 32px;
  outline: none;  /* TODO(yoshiki): Show outline only on keyboard focus. */
  padding: 0;
  position: relative;
  width: 32px;
}

.media-button:active {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_pressed.png) 1x,
      url(../assets/200/player_button_pressed.png) 2x);
}

.media-button > div,
.media-button.toggle > label > span {
  display: inline-block;
  height: 100%;
  pointer-events: none;
  transition: opacity 100ms linear;
  width: 100%;
}

.media-button > div {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
}

.media-button[state='default']:not(.disabled) > .default,
.media-button[state='ended']:not(.disabled) > .ended,
.media-button[state='playing']:not(.disabled) > .playing,
.media-button.disabled > .disabled {
  opacity: 1;
}

/* Custom sliders for progress and volume. */

/* Customize the standard input[type='range']. */

/* Time controls: a slider and a text time display. */

.time-controls {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: center;
}

.custom-slider.progress {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  position: relative;
  z-index: 0;  /* Make a layer which includes the thumb on slider. */
}

.custom-slider.progress > input[type='range']::-webkit-slider-thumb {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_handler.png) 1x,
      url(../assets/200/player_timeline_handler.png) 2x);
  width: 28px;
}

.custom-slider.progress > input[type='range']::-webkit-slider-thumb:hover {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_handler.png) 1x,
      url(../assets/200/player_timeline_handler.png) 2x);
}

.custom-slider.progress > input[type='range']::-webkit-slider-thumb:active {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_handler_pressed.png) 1x,
      url(../assets/200/player_timeline_handler_pressed.png) 2x);
}

.custom-slider.progress.disabled > input[type='range']::-webkit-slider-thumb {
  background-image: none;
}

.time-controls > .time {
  cursor: default;
  height: 100%;
  position: relative;
  width: 53px;
}

.time-controls > .time.disabled {
  opacity: 0;
}

.custom-slider > input[type='range'] {
  -webkit-appearance: none !important;  /* Hide the default thumb icon. */
  background: transparent;  /* Hide the standard slider bar */
  height: 100%;
  left: -2px;  /* Required to align the input element with the parent. */
  outline: none;
  position: absolute;
  top: -2px;
  width: 100%;
}

/* Custom thumb icon. */
.custom-slider > input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-position: center center;
  background-repeat: no-repeat;
  height: 24px;
  position: relative;
  z-index: 2;
}

/* Custom slider bar (we hide the standard one). */
.custom-slider > .bar {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_base_center.png) 1x,
      url(../assets/200/player_timeline_base_center.png) 2x);
  /* In order to match the horizontal position of the standard slider bar
     left and right must be equal to 1/2 of the thumb icon width. */
  bottom: 15px;
  left: 14px;  /* Exactly 1/2 of the thumb width */
  pointer-events: none;  /* Mouse events pass through to the standard input. */
  position: absolute;
  right: 14px;
  top: 15px;
}

.custom-slider > .bar > .filled,
.custom-slider > .bar > .cap {
  bottom: 0;
  position: absolute;
  top: 0;
}

/* The filled portion of the slider bar to the left of the thumb. */
.custom-slider > .bar > .filled {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_played_center.png) 1x,
      url(../assets/200/player_timeline_played_center.png) 2x);
  border-left-style: none;
  border-right-style: none;
  left: 0;
  width: 0; /* The element style.width is manipulated from the code. */
}

/* Rounded caps to the left and right of the slider bar. */
.custom-slider > .bar > .cap {
  width: 1px;
}

/* Left cap is always filled, should be the same color as .filled. */
.custom-slider > .bar > .cap.left {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_played_left.png) 1x,
      url(../assets/200/player_timeline_played_left.png) 2x);
  right: 100%;
}

/* Right cap is always not filled. */
.custom-slider > .bar > .cap.right {
  background-image: -webkit-image-set(
      url(../assets/100/player_timeline_base_right.png) 1x,
      url(../assets/200/player_timeline_base_right.png) 2x);
  left: 100%;
}

.media-button.disabled,
.custom-slider.disabled,
.custom-slider.readonly {
  pointer-events: none;
}

/* Progress seek marker (precise time shown on mouse hover. */

/* Thin vertical line across the slider bar */
.custom-slider > .bar > .seek-mark {
  background-color: #202020;
  bottom: -1px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 0;
}

.custom-slider > .bar > .seek-mark.visible {
  width: 1px;
}

.custom-slider > .bar > .seek-mark.inverted {
  background-color: #808080;
}

/* Text label giving the precise time corresponding to the hover position. */
.custom-slider > .bar > .seek-mark > .seek-label {
  align-items: center;
  background: #202020;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  bottom: 19px;
  color: white;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  height: 15px;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  transition: opacity 150ms ease;
}

.custom-slider > .bar > .seek-mark.visible > .seek-label {
  opacity: 1;
}

/* Media controls in order of appearance. */

.audio-controls {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: center;
}

/* Play/pause button. */

.media-button.toggle input {
  position: absolute;
  visibility: hidden;
}

.media-button.shuffle-mode {
  margin-left: 5px;
  margin-right: 5px;
}

.media-button.shuffle-mode > label > .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_shuffle.png) 1x,
      url(../assets/200/player_button_shuffle.png) 2x);
  pointer-events: auto;
}

.media-button.shuffle-mode > label > input:checked + .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_shuffle_active.png) 1x,
      url(../assets/200/player_button_shuffle_active.png) 2x);
}

.media-button.repeat {
  margin-left: 5px;
  margin-right: 0;
}

.media-button.repeat > label > .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_repeat.png) 1x,
      url(../assets/200/player_button_repeat.png) 2x);
  pointer-events: auto;
}

.media-button.repeat > label > input:checked + .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_repeat_active.png) 1x,
      url(../assets/200/player_button_repeat_active.png) 2x);
}

.media-button.play {
  margin-left: 0;
  margin-right: 0;
}

.media-button.play > .ended {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_play.png) 1x,
      url(../assets/200/player_button_play.png) 2x);
}

.media-button.play > .playing {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_pause.png) 1x,
      url(../assets/200/player_button_pause.png) 2x);
}

.media-button.previous {
  margin-left: 5px;
  margin-right: 0;
}

.media-button.previous > .normal {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_previous.png) 1x,
      url(../assets/200/player_button_previous.png) 2x);
}

.media-button.next {
  margin-left: 0;
  margin-right: 5px;
}

.media-button.next > .normal {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_next.png) 1x,
      url(../assets/200/player_button_next.png) 2x);
}

.media-button.volume {
  margin-left: 5px;
  margin-right: 5px;
}

.media-button.volume > .normal {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_volume.png) 1x,
      url(../assets/200/player_button_volume.png) 2x);
}

.media-button.volume > label > .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_volume.png) 1x,
      url(../assets/200/player_button_volume.png) 2x);
  pointer-events: auto;
}

.media-button.volume > label > input:checked + .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_volume_active.png) 1x,
      url(../assets/200/player_button_volume_active.png) 2x);
}

.media-button.playlist {
  margin-left: 5px;
  margin-right: 5px;
}

.media-button.playlist > label > .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_playlist.png) 1x,
      url(../assets/200/player_button_playlist.png) 2x);
  pointer-events: auto;
}

.media-button.playlist > label > input:checked + .icon {
  background-image: -webkit-image-set(
      url(../assets/100/player_button_playlist_active.png) 1x,
      url(../assets/200/player_button_playlist_active.png) 2x);
}


/* Invisible div used to compute the width required for the elapsed time. */
.time-controls > .time > .duration,
.time-controls > .time > .current {
  align-items: center;
  color: #3d3d3d;
  display: flex;
  flex-direction: row;
  font-size: 12px;
  height: 100%;
  justify-content: flex-end;
  position: absolute;
  top: -1px;
}

.time-controls > .time > .duration {
  left: 0;
}

.time-controls > .time > .current {
  right: 0;
}

/* Volume controls: sound button and volume slider */

#volumeContainer {
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 2px 4px #777;
  height: 110px;
  position: fixed;
  width: 32px;
}

#volumeContainer.default-hidden {
  visibility: hidden;
}