| OLD | NEW |
| 1 /* | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 5 */ | |
| 6 | 4 |
| 7 .media-button { | 5 .media-button { |
| 6 background-position: center center; |
| 7 background-repeat: no-repeat; |
| 8 height: 28px; |
| 8 position: relative; | 9 position: relative; |
| 9 width: 28px; | 10 width: 28px; |
| 10 height: 28px; | |
| 11 background-repeat: no-repeat; | |
| 12 background-position: center center; | |
| 13 } | 11 } |
| 14 | 12 |
| 15 .media-button > div { | 13 .media-button > div { |
| 14 -webkit-transition: opacity 100ms linear; |
| 15 height: 100%; |
| 16 opacity: 0; |
| 17 pointer-events: none; |
| 16 position: absolute; | 18 position: absolute; |
| 17 pointer-events: none; | |
| 18 width: 100%; | 19 width: 100%; |
| 19 height: 100%; | |
| 20 -webkit-transition: opacity 100ms linear; | |
| 21 opacity: 0; | |
| 22 } | 20 } |
| 23 | 21 |
| 24 .media-button[state='0']:not(.disabled):not(:hover):not(:active) > .state0.norma
l, | 22 .media-button[state='0']:not(.disabled):not(:hover):not(:active) > .state0.norma
l, |
| 25 .media-button[state='0']:not(.disabled):hover > .state0.hover, | 23 .media-button[state='0']:not(.disabled):hover > .state0.hover, |
| 26 .media-button[state='0']:not(.disabled):active > .state0.active, | 24 .media-button[state='0']:not(.disabled):active > .state0.active, |
| 27 .media-button[state='1']:not(.disabled):not(:hover):not(:active) > .state1.norma
l, | 25 .media-button[state='1']:not(.disabled):not(:hover):not(:active) > .state1.norma
l, |
| 28 .media-button[state='1']:not(.disabled):hover > .state1.hover, | 26 .media-button[state='1']:not(.disabled):hover > .state1.hover, |
| 29 .media-button[state='1']:not(.disabled):active > .state1.active, | 27 .media-button[state='1']:not(.disabled):active > .state1.active, |
| 30 .media-button.disabled > .disabled { | 28 .media-button.disabled > .disabled { |
| 31 opacity: 1; | 29 opacity: 1; |
| 32 } | 30 } |
| 33 | 31 |
| 34 /* Custom sliders for progress and volume. */ | 32 /* Custom sliders for progress and volume. */ |
| 35 | 33 |
| 36 /* Customize the standard input[type='range']. */ | 34 /* Customize the standard input[type='range']. */ |
| 37 .custom-slider > input[type='range'] { | 35 .custom-slider > input[type='range'] { |
| 36 -webkit-appearance: none !important; /* Hide the default thumb icon. */ |
| 37 background: transparent; /* Hide the standard slider bar */ |
| 38 height: 100%; |
| 39 left: -2px; /* Required to align the input element with the parent. */ |
| 38 position: absolute; | 40 position: absolute; |
| 39 -webkit-appearance: none !important; /* Hide the default thumb icon. */ | |
| 40 left: -2px; /* Required to align the input element with the parent. */ | |
| 41 top: -2px; | 41 top: -2px; |
| 42 width: 100%; | 42 width: 100%; |
| 43 height: 100%; | |
| 44 background: transparent; /* Hide the standard slider bar */ | |
| 45 } | 43 } |
| 46 | 44 |
| 47 /* Custom thumb icon. */ | 45 /* Custom thumb icon. */ |
| 48 .custom-slider > input[type='range']::-webkit-slider-thumb { | 46 .custom-slider > input[type='range']::-webkit-slider-thumb { |
| 49 position: relative; | |
| 50 -webkit-appearance: none; | 47 -webkit-appearance: none; |
| 51 z-index: 2; | |
| 52 height: 24px; | |
| 53 background-position: center center; | 48 background-position: center center; |
| 54 background-repeat: no-repeat; | 49 background-repeat: no-repeat; |
| 50 height: 24px; |
| 51 position: relative; |
| 52 z-index: 2; |
| 55 } | 53 } |
| 56 | 54 |
| 57 /* Custom slider bar (we hide the standard one). */ | 55 /* Custom slider bar (we hide the standard one). */ |
| 58 .custom-slider > .bar { | 56 .custom-slider > .bar { |
| 59 position: absolute; | |
| 60 /* In order to match the horizontal position of the standard slider bar | 57 /* In order to match the horizontal position of the standard slider bar |
| 61 left and right must be equal to 1/2 of the thumb icon width. */ | 58 left and right must be equal to 1/2 of the thumb icon width. */ |
| 59 border-bottom-style: solid; |
| 60 border-top-style: solid; |
| 61 border-width: 1px; |
| 62 bottom: 11px; |
| 63 pointer-events: none; /* Mouse events pass through to the standard input. */ |
| 64 position: absolute; |
| 62 top: 11px; | 65 top: 11px; |
| 63 bottom: 11px; | |
| 64 border-width: 1px; | |
| 65 border-top-style: solid; | |
| 66 border-bottom-style: solid; | |
| 67 pointer-events: none; /* Mouse events pass through to the standard input. */ | |
| 68 } | 66 } |
| 69 | 67 |
| 70 .custom-slider > .bar > .filled, | 68 .custom-slider > .bar > .filled, |
| 71 .custom-slider > .bar > .cap { | 69 .custom-slider > .bar > .cap { |
| 70 border-style: solid; |
| 71 border-width: 1px; |
| 72 bottom: -1px; |
| 72 position: absolute; | 73 position: absolute; |
| 73 top: -1px; | 74 top: -1px; |
| 74 bottom: -1px; | |
| 75 border-width: 1px; | |
| 76 border-style: solid; | |
| 77 } | 75 } |
| 78 | 76 |
| 79 /* The filled portion of the slider bar to the left of the thumb. */ | 77 /* The filled portion of the slider bar to the left of the thumb. */ |
| 80 .custom-slider > .bar > .filled { | 78 .custom-slider > .bar > .filled { |
| 81 width: 0; /* The element style.width is manipulated from the code. */ | |
| 82 left: 0; | |
| 83 border-left-style: none; | 79 border-left-style: none; |
| 84 border-right-style: none; | 80 border-right-style: none; |
| 81 left: 0; |
| 82 width: 0; /* The element style.width is manipulated from the code. */ |
| 85 } | 83 } |
| 86 | 84 |
| 87 /* Rounded caps to the left and right of the slider bar. */ | 85 /* Rounded caps to the left and right of the slider bar. */ |
| 88 .custom-slider > .bar > .cap { | 86 .custom-slider > .bar > .cap { |
| 89 width: 4px; | 87 width: 4px; |
| 90 } | 88 } |
| 91 | 89 |
| 92 /* Left cap is always filled, should be the same color as .filled. */ | 90 /* Left cap is always filled, should be the same color as .filled. */ |
| 93 .custom-slider > .bar > .cap.left { | 91 .custom-slider > .bar > .cap.left { |
| 94 right: 100%; | 92 border-bottom-left-radius: 4px; |
| 95 border-right-style: none; | 93 border-right-style: none; |
| 96 border-top-left-radius: 4px; | 94 border-top-left-radius: 4px; |
| 97 border-bottom-left-radius: 4px; | 95 right: 100%; |
| 98 } | 96 } |
| 99 | 97 |
| 100 /* Right cap is always not filled. */ | 98 /* Right cap is always not filled. */ |
| 101 .custom-slider > .bar > .cap.right { | 99 .custom-slider > .bar > .cap.right { |
| 102 left: 100%; | 100 border-bottom-right-radius: 4px; |
| 103 border-left-style: none; | 101 border-left-style: none; |
| 104 border-top-right-radius: 4px; | 102 border-top-right-radius: 4px; |
| 105 border-bottom-right-radius: 4px; | 103 left: 100%; |
| 106 } | 104 } |
| 107 | 105 |
| 108 .custom-slider > .bar, | 106 .custom-slider > .bar, |
| 109 .custom-slider > .bar > .cap.right { | 107 .custom-slider > .bar > .cap.right { |
| 110 background-color: rgba(0, 0, 0, 0.5); | 108 background-color: rgba(0, 0, 0, 0.5); |
| 111 border-color: #808080; | 109 border-color: #808080; |
| 112 } | 110 } |
| 113 | 111 |
| 114 .custom-slider > .bar > .filled, | 112 .custom-slider > .bar > .filled, |
| 115 .custom-slider > .bar > .cap.left { | 113 .custom-slider > .bar > .cap.left { |
| 116 background-image: -webkit-linear-gradient(#c3c3c3, #d9d9d9); | 114 background-image: -webkit-linear-gradient(#c3c3c3, #d9d9d9); |
| 117 border-color: #d9d9d9; | 115 border-color: #d9d9d9; |
| 118 } | 116 } |
| 119 | 117 |
| 120 .custom-slider.disabled > .bar > .filled, | 118 .custom-slider.disabled > .bar > .filled, |
| 121 .custom-slider.disabled > .bar > .cap.left { | 119 .custom-slider.disabled > .bar > .cap.left { |
| 120 background-color: rgba(0, 0, 0, 0.5); |
| 122 background-image: none; | 121 background-image: none; |
| 123 background-color: rgba(0, 0, 0, 0.5); | |
| 124 } | 122 } |
| 125 | 123 |
| 126 .custom-slider.disabled > .bar, | 124 .custom-slider.disabled > .bar, |
| 127 .custom-slider.disabled > .bar > .filled, | 125 .custom-slider.disabled > .bar > .filled, |
| 128 .custom-slider.disabled > .bar > .cap { | 126 .custom-slider.disabled > .bar > .cap { |
| 129 border-color: #404040; | 127 border-color: #404040; |
| 130 } | 128 } |
| 131 | 129 |
| 132 .media-button.disabled, | 130 .media-button.disabled, |
| 133 .custom-slider.disabled, | 131 .custom-slider.disabled, |
| 134 .custom-slider.readonly { | 132 .custom-slider.readonly { |
| 135 pointer-events: none; | 133 pointer-events: none; |
| 136 } | 134 } |
| 137 | 135 |
| 138 /* Progress seek marker (precise time shown on mouse hover. */ | 136 /* Progress seek marker (precise time shown on mouse hover. */ |
| 139 | 137 |
| 140 /* Thin vertical line across the slider bar */ | 138 /* Thin vertical line across the slider bar */ |
| 141 .custom-slider > .bar > .seek-mark { | 139 .custom-slider > .bar > .seek-mark { |
| 140 background-color: #202020; |
| 141 bottom: -1px; |
| 142 left: 0; |
| 142 position: absolute; | 143 position: absolute; |
| 143 left: 0; | 144 top: -1px; |
| 144 width: 0; | 145 width: 0; |
| 145 top: -1px; | |
| 146 bottom: -1px; | |
| 147 background-color: #202020; | |
| 148 } | 146 } |
| 149 | 147 |
| 150 .custom-slider > .bar > .seek-mark.visible { | 148 .custom-slider > .bar > .seek-mark.visible { |
| 151 width: 1px; | 149 width: 1px; |
| 152 } | 150 } |
| 153 | 151 |
| 154 .custom-slider > .bar > .seek-mark.inverted { | 152 .custom-slider > .bar > .seek-mark.inverted { |
| 155 background-color: #808080; | 153 background-color: #808080; |
| 156 } | 154 } |
| 157 | 155 |
| 158 /* Text label giving the precise time corresponding to the hover position. */ | 156 /* Text label giving the precise time corresponding to the hover position. */ |
| 159 .custom-slider > .bar > .seek-mark > .seek-label { | 157 .custom-slider > .bar > .seek-mark > .seek-label { |
| 160 position: absolute; | 158 -webkit-box-align: center; |
| 161 left: 0; | 159 -webkit-box-orient: horizontal; |
| 162 bottom: 20px; | 160 -webkit-box-pack: center; |
| 163 | 161 -webkit-transition: height 150ms ease; |
| 164 font-size: 13px; | |
| 165 | |
| 166 height: 0; | |
| 167 -webkit-transition: height 0.15s ease; | |
| 168 | |
| 169 color: white; | |
| 170 background: #202020; | 162 background: #202020; |
| 171 border-top-left-radius: 2px; | 163 border-top-left-radius: 2px; |
| 172 border-top-right-radius: 2px; | 164 border-top-right-radius: 2px; |
| 165 bottom: 20px; |
| 166 color: white; |
| 173 display: -webkit-box; | 167 display: -webkit-box; |
| 174 -webkit-box-orient: horizontal; | 168 font-size: 13px; |
| 175 -webkit-box-align: center; | 169 height: 0; |
| 176 -webkit-box-pack: center; | 170 left: 0; |
| 177 | |
| 178 overflow: hidden; | 171 overflow: hidden; |
| 172 position: absolute; |
| 179 } | 173 } |
| 180 | 174 |
| 181 .custom-slider > .bar > .seek-mark.visible > .seek-label { | 175 .custom-slider > .bar > .seek-mark.visible > .seek-label { |
| 182 height: 15px; | 176 height: 15px; |
| 183 } | 177 } |
| 184 | 178 |
| 185 /* Media controls in order of appearance. */ | 179 /* Media controls in order of appearance. */ |
| 186 | 180 |
| 187 /* Play/pause button. */ | 181 /* Play/pause button. */ |
| 188 | 182 |
| 189 .media-button.play { | 183 .media-button.play { |
| 190 margin-left: -7px; | 184 margin-left: -7px; |
| 191 margin-right: -7px; | 185 margin-right: -7px; |
| 192 } | 186 } |
| 193 | 187 |
| 194 .media-button.play > .state0.normal { | 188 .media-button.play > .state0.normal { |
| 195 background-image: url(../images/media/media_play.png); | 189 background-image: url(../images/media/media_play.png); |
| 196 } | 190 } |
| 197 | 191 |
| 198 .media-button.play > .state0.hover { | 192 .media-button.play > .state0.hover { |
| 199 background-image: url(../images/media/media_play_hover.png); | 193 background-image: url(../images/media/media_play_hover.png); |
| 200 } | 194 } |
| 201 | 195 |
| 202 .media-button.play > .state0.active { | 196 .media-button.play > .state0.active { |
| 203 background-image: url(../images/media/media_play_down.png); | 197 background-image: url(../images/media/media_play_down.png); |
| 204 } | 198 } |
| 205 | 199 |
| 206 .media-button.play > .state1.normal{ | 200 .media-button.play > .state1.normal { |
| 207 background-image: url(../images/media/media_pause.png); | 201 background-image: url(../images/media/media_pause.png); |
| 208 } | 202 } |
| 209 | 203 |
| 210 .media-button.play > .state1.hover { | 204 .media-button.play > .state1.hover { |
| 211 background-image: url(../images/media/media_pause_hover.png); | 205 background-image: url(../images/media/media_pause_hover.png); |
| 212 } | 206 } |
| 213 | 207 |
| 214 .media-button.play > .state1.active { | 208 .media-button.play > .state1.active { |
| 215 background-image: url(../images/media/media_pause_down.png); | 209 background-image: url(../images/media/media_pause_down.png); |
| 216 } | 210 } |
| 217 | 211 |
| 218 .media-button.play > .disabled { | 212 .media-button.play > .disabled { |
| 219 background-image: url(../images/media/media_play_disabled.png); | 213 background-image: url(../images/media/media_play_disabled.png); |
| 220 } | 214 } |
| 221 | 215 |
| 222 /* Time controls: a slider and a text time display. */ | 216 /* Time controls: a slider and a text time display. */ |
| 223 | 217 |
| 224 .time-controls { | 218 .time-controls { |
| 219 -webkit-box-align: center; |
| 220 -webkit-box-flex: 1; |
| 221 -webkit-box-orient: horizontal; |
| 222 -webkit-box-pack: center; |
| 223 display: -webkit-box; |
| 225 height: 100%; | 224 height: 100%; |
| 226 display: -webkit-box; | |
| 227 -webkit-box-orient: horizontal; | |
| 228 -webkit-box-align: center; | |
| 229 -webkit-box-pack: center; | |
| 230 -webkit-box-flex: 1; | |
| 231 } | 225 } |
| 232 | 226 |
| 233 .custom-slider.progress { | 227 .custom-slider.progress { |
| 234 position: relative; | 228 -webkit-box-flex: 1; |
| 229 display: -webkit-box; |
| 235 height: 100%; | 230 height: 100%; |
| 236 display: -webkit-box; | |
| 237 -webkit-box-flex: 1; | |
| 238 margin-left: -9px; /* Set the margins at the edges of the slider bar. */ | 231 margin-left: -9px; /* Set the margins at the edges of the slider bar. */ |
| 239 margin-right: -9px; | 232 margin-right: -9px; |
| 233 position: relative; |
| 240 } | 234 } |
| 241 | 235 |
| 242 .custom-slider.progress > input[type='range']::-webkit-slider-thumb { | 236 .custom-slider.progress > input[type='range']::-webkit-slider-thumb { |
| 237 background-image: url(../images/media/media_slider_thumb.png); |
| 243 width: 28px; | 238 width: 28px; |
| 244 background-image: url(../images/media/media_slider_thumb.png); | |
| 245 } | 239 } |
| 246 | 240 |
| 247 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:hover { | 241 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:hover { |
| 248 background-image: url(../images/media/media_slider_thumb_hover.png); | 242 background-image: url(../images/media/media_slider_thumb_hover.png); |
| 249 } | 243 } |
| 250 | 244 |
| 251 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:active { | 245 .custom-slider.progress > input[type='range']::-webkit-slider-thumb:active { |
| 252 background-image: url(../images/media/media_slider_thumb_down.png); | 246 background-image: url(../images/media/media_slider_thumb_down.png); |
| 253 } | 247 } |
| 254 | 248 |
| 255 .custom-slider.progress.disabled > input[type='range']::-webkit-slider-thumb { | 249 .custom-slider.progress.disabled > input[type='range']::-webkit-slider-thumb { |
| 256 background-image: none; | 250 background-image: none; |
| 257 } | 251 } |
| 258 | 252 |
| 259 .custom-slider.progress > .bar { | 253 .custom-slider.progress > .bar { |
| 260 left: 14px; /* Exactly 1/2 of the thumb width */ | 254 left: 14px; /* Exactly 1/2 of the thumb width */ |
| 261 right: 14px; | 255 right: 14px; |
| 262 } | 256 } |
| 263 | 257 |
| 264 /* Time display. */ | 258 /* Time display. */ |
| 265 | 259 |
| 266 .time-controls > .time { | 260 .time-controls > .time { |
| 267 position: relative; | |
| 268 height: 100%; | 261 height: 100%; |
| 269 margin-left: 15px; | 262 margin-left: 15px; |
| 263 position: relative; |
| 270 } | 264 } |
| 271 | 265 |
| 272 .time-controls > .time.disabled { | 266 .time-controls > .time.disabled { |
| 273 opacity: 0; | 267 opacity: 0; |
| 274 } | 268 } |
| 275 | 269 |
| 276 /* Invisible div used to compute the width required for the elapsed time. */ | 270 /* Invisible div used to compute the width required for the elapsed time. */ |
| 277 .time-controls > .time > .duration { | 271 .time-controls > .time > .duration { |
| 278 color: transparent; | 272 color: transparent; |
| 279 } | 273 } |
| 280 | 274 |
| 281 .time-controls > .time > .current { | 275 .time-controls > .time > .current { |
| 276 -webkit-box-align: center; |
| 277 -webkit-box-orient: horizontal; |
| 278 -webkit-box-pack: end; |
| 279 bottom: 0; |
| 280 color: white; |
| 281 display: -webkit-box; |
| 282 position: absolute; | 282 position: absolute; |
| 283 right: 0; | 283 right: 0; |
| 284 top: 0; | 284 top: 0; |
| 285 bottom: 0; | |
| 286 display: -webkit-box; | |
| 287 -webkit-box-orient: horizontal; | |
| 288 -webkit-box-align: center; | |
| 289 -webkit-box-pack: end; | |
| 290 color: white; | |
| 291 } | 285 } |
| 292 | 286 |
| 293 /* Volume controls: sound button and volume slider */ | 287 /* Volume controls: sound button and volume slider */ |
| 294 | 288 |
| 295 .volume-controls { | 289 .volume-controls { |
| 290 -webkit-box-align: center; |
| 291 -webkit-box-orient: horizontal; |
| 292 -webkit-box-pack: center; |
| 293 display: -webkit-box; |
| 296 height: 100%; | 294 height: 100%; |
| 297 display: -webkit-box; | |
| 298 -webkit-box-orient: horizontal; | |
| 299 -webkit-box-align: center; | |
| 300 -webkit-box-pack: center; | |
| 301 } | 295 } |
| 302 | 296 |
| 303 /* Sound button */ | 297 /* Sound button */ |
| 304 | 298 |
| 305 .media-button.sound { | 299 .media-button.sound { |
| 300 background-position: -2px center; |
| 306 margin-left: -4px; | 301 margin-left: -4px; |
| 307 margin-right: -2px; | 302 margin-right: -2px; |
| 308 background-position: -2px center; | |
| 309 } | 303 } |
| 310 | 304 |
| 311 .media-button.sound[level='0'] > .normal { | 305 .media-button.sound[level='0'] > .normal { |
| 312 background-image: url(../images/media/media_sound_disabled.png); | 306 background-image: url(../images/media/media_sound_disabled.png); |
| 313 } | 307 } |
| 314 | 308 |
| 315 .media-button.sound[level='0'] > .hover { | 309 .media-button.sound[level='0'] > .hover { |
| 316 background-image: url(../images/media/media_sound_disabled_hover.png); | 310 background-image: url(../images/media/media_sound_disabled_hover.png); |
| 317 } | 311 } |
| 318 | 312 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 354 } |
| 361 | 355 |
| 362 | 356 |
| 363 .media-button.sound > .disabled { | 357 .media-button.sound > .disabled { |
| 364 background-image: url(../images/media/media_sound_full_disabled.png); | 358 background-image: url(../images/media/media_sound_full_disabled.png); |
| 365 } | 359 } |
| 366 | 360 |
| 367 /* Volume slider. */ | 361 /* Volume slider. */ |
| 368 | 362 |
| 369 .custom-slider.volume { | 363 .custom-slider.volume { |
| 370 position: relative; | |
| 371 height: 100%; | 364 height: 100%; |
| 372 width: 60px; | |
| 373 margin-left: -4px; | 365 margin-left: -4px; |
| 374 margin-right: -4px; | 366 margin-right: -4px; |
| 367 position: relative; |
| 368 width: 60px; |
| 375 } | 369 } |
| 376 | 370 |
| 377 .custom-slider.volume > input[type='range']::-webkit-slider-thumb { | 371 .custom-slider.volume > input[type='range']::-webkit-slider-thumb { |
| 372 background-image: url(../images/media/media_volume_slider_thumb.png); |
| 378 width: 20px; | 373 width: 20px; |
| 379 background-image: url(../images/media/media_volume_slider_thumb.png); | |
| 380 } | 374 } |
| 381 | 375 |
| 382 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:hover { | 376 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:hover { |
| 383 background-image: url(../images/media/media_volume_slider_thumb_hover.png); | 377 background-image: url(../images/media/media_volume_slider_thumb_hover.png); |
| 384 } | 378 } |
| 385 | 379 |
| 386 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:active { | 380 .custom-slider.volume > input[type='range']::-webkit-slider-thumb:active { |
| 387 background-image: url(../images/media/media_volume_slider_thumb_down.png); | 381 background-image: url(../images/media/media_volume_slider_thumb_down.png); |
| 388 } | 382 } |
| 389 | 383 |
| 390 .custom-slider.volume.disabled > input[type='range']::-webkit-slider-thumb { | 384 .custom-slider.volume.disabled > input[type='range']::-webkit-slider-thumb { |
| 391 background-image: none; | 385 background-image: none; |
| 392 } | 386 } |
| 393 | 387 |
| 394 .custom-slider.volume > .bar { | 388 .custom-slider.volume > .bar { |
| 395 left: 10px; /* Exactly 1/2 of the thumb width */ | 389 left: 10px; /* Exactly 1/2 of the thumb width */ |
| 396 right: 10px; | 390 right: 10px; |
| 397 } | 391 } |
| 398 | 392 |
| 399 /* Horizontal video control bar, all controls in a row. */ | 393 /* Horizontal video control bar, all controls in a row. */ |
| 400 | 394 |
| 401 .video-controls { | 395 .video-controls { |
| 402 pointer-events: auto; | 396 -webkit-box-align: center; |
| 403 | 397 -webkit-box-orient: horizontal; |
| 398 -webkit-box-pack: center; |
| 399 background: #202020; |
| 400 border-radius: 5px; |
| 401 display: -webkit-box; |
| 404 font-size: 15px; | 402 font-size: 15px; |
| 405 height: 30px; | 403 height: 30px; |
| 406 border-radius: 5px; | 404 opacity: 0.8; |
| 407 | |
| 408 padding-left: 15px; | 405 padding-left: 15px; |
| 409 padding-right: 15px; | 406 padding-right: 15px; |
| 410 | 407 pointer-events: auto; |
| 411 opacity: 0.8; | |
| 412 | |
| 413 background: #202020; | |
| 414 | |
| 415 display: -webkit-box; | |
| 416 -webkit-box-orient: horizontal; | |
| 417 -webkit-box-align: center; | |
| 418 -webkit-box-pack: center; | |
| 419 } | 408 } |
| 420 | 409 |
| 421 .video-controls .time-controls, | 410 .video-controls .time-controls, |
| 422 .video-controls .volume-controls { | 411 .video-controls .volume-controls { |
| 423 margin-left: 15px; | 412 margin-left: 15px; |
| 424 } | 413 } |
| 425 | 414 |
| 426 /* Fullscreen button. */ | 415 /* Fullscreen button. */ |
| 427 /* There is no final decision whether we need a separate icon when toggled. */ | 416 /* There is no final decision whether we need a separate icon when toggled. */ |
| 428 | 417 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 441 | 430 |
| 442 .media-button.fullscreen > .active { | 431 .media-button.fullscreen > .active { |
| 443 background-image: url(../images/media/media_fullscreen_down.png); | 432 background-image: url(../images/media/media_fullscreen_down.png); |
| 444 } | 433 } |
| 445 | 434 |
| 446 .media-button.fullscreen > .disabled { | 435 .media-button.fullscreen > .disabled { |
| 447 background-image: url(../images/media/media_fullscreen_disabled.png); | 436 background-image: url(../images/media/media_fullscreen_disabled.png); |
| 448 } | 437 } |
| 449 | 438 |
| 450 .playback-state-icon { | 439 .playback-state-icon { |
| 440 -webkit-transform: scaleX(1) scaleY(1); |
| 441 -webkit-transition-duration: 500ms; |
| 442 -webkit-transition-property: webkit-transform, opacity; |
| 443 -webkit-transition-timing-function: linear; |
| 444 background-color: #202020; |
| 445 background-position: center center; |
| 446 background-repeat: no-repeat; |
| 447 border-radius: 2.5px; |
| 448 display: none; |
| 449 height: 32px; |
| 450 left: 50%; |
| 451 margin-left: -16px; |
| 452 margin-top: -16px; |
| 453 opacity: 1; |
| 454 pointer-events: none; |
| 451 position: absolute; | 455 position: absolute; |
| 452 left: 50%; | |
| 453 top: 50%; | 456 top: 50%; |
| 454 width: 32px; | 457 width: 32px; |
| 455 height: 32px; | |
| 456 margin-left: -16px; | |
| 457 margin-top: -16px; | |
| 458 border-radius: 2.5px; | |
| 459 pointer-events: none; | |
| 460 display: none; | |
| 461 | |
| 462 background-color: #202020; | |
| 463 background-repeat: no-repeat; | |
| 464 background-position: center center; | |
| 465 | |
| 466 opacity: 1; | |
| 467 -webkit-transform: scaleX(1) scaleY(1); | |
| 468 | |
| 469 -webkit-transition-property: webkit-transform, opacity; | |
| 470 -webkit-transition-duration: 500ms; | |
| 471 -webkit-transition-timing-function: linear; | |
| 472 | |
| 473 z-index: 2; | 458 z-index: 2; |
| 474 } | 459 } |
| 475 | 460 |
| 476 .playback-state-icon[visible] { | 461 .playback-state-icon[visible] { |
| 477 display: block; | 462 display: block; |
| 478 } | 463 } |
| 479 | 464 |
| 480 .playback-state-icon[state] { | 465 .playback-state-icon[state] { |
| 466 -webkit-transform: scaleX(3) scaleY(3); |
| 481 opacity: 0; | 467 opacity: 0; |
| 482 -webkit-transform: scaleX(3) scaleY(3); | |
| 483 } | 468 } |
| 484 | 469 |
| 485 .playback-state-icon[state='play'] { | 470 .playback-state-icon[state='play'] { |
| 486 background-image: url(../images/media/media_play.png); | 471 background-image: url(../images/media/media_play.png); |
| 487 } | 472 } |
| 488 | 473 |
| 489 .playback-state-icon[state='pause'] { | 474 .playback-state-icon[state='pause'] { |
| 490 background-image: url(../images/media/media_pause.png); | 475 background-image: url(../images/media/media_pause.png); |
| 491 } | 476 } |
| OLD | NEW |