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