Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2015 Google Inc. | 3 * Copyright (C) 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 /* Chromium default media controls */ | 26 /* Chromium default media controls */ |
| 27 | 27 |
| 28 /* WARNING: This css file can only style <audio> and <video> elements */ | 28 /* WARNING: This css file can only style <audio> and <video> elements */ |
| 29 | 29 |
| 30 audio:not([controls]) { | 30 audio:not([controls]) { |
| 31 display: none !important; | 31 display: none !important; |
| 32 } | 32 } |
| 33 | 33 |
| 34 audio { | 34 audio { |
| 35 width: 300px; | 35 width: 300px; |
| 36 height: 48px; | 36 height: 32px; |
| 37 } | 37 } |
| 38 | 38 |
| 39 audio::-webkit-media-controls, | 39 audio::-webkit-media-controls, |
| 40 video::-webkit-media-controls { | 40 video::-webkit-media-controls { |
| 41 width: inherit; | 41 width: inherit; |
| 42 height: inherit; | 42 height: inherit; |
| 43 position: relative; | 43 position: relative; |
| 44 direction: ltr; | 44 direction: ltr; |
| 45 display: flex; | 45 display: flex; |
| 46 flex-direction: column; | 46 flex-direction: column; |
| 47 justify-content: flex-end; | 47 justify-content: flex-end; |
| 48 align-items: center; | 48 align-items: center; |
| 49 } | 49 } |
| 50 | 50 |
| 51 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure { | 51 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure { |
| 52 width: 100%; | 52 width: 100%; |
| 53 height: 48px; | 53 height: 32px; |
| 54 flex-shrink: 0; | 54 flex-shrink: 0; |
| 55 bottom: 0; | 55 bottom: 0; |
| 56 text-indent: 0; | 56 text-indent: 0; |
| 57 padding: 0; | 57 padding: 0; |
| 58 margin: 0; | 58 margin: 0; |
| 59 box-sizing: border-box; | 59 box-sizing: border-box; |
| 60 } | 60 } |
| 61 | 61 |
| 62 audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel { | 62 audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel { |
| 63 display: flex; | 63 display: flex; |
| 64 flex-direction: row; | 64 flex-direction: row; |
| 65 align-items: center; | 65 align-items: center; |
| 66 /* We use flex-start here to ensure that the play button is visible even | 66 /* We use flex-start here to ensure that the play button is visible even |
| 67 * if we are too small to show all controls. | 67 * if we are too small to show all controls. |
| 68 */ | 68 */ |
| 69 justify-content: flex-start; | 69 justify-content: flex-start; |
| 70 -webkit-user-select: none; | 70 -webkit-user-select: none; |
| 71 position: relative; | 71 position: relative; |
| 72 width: 100%; | 72 width: 100%; |
| 73 z-index: 0; | 73 z-index: 0; |
| 74 overflow: hidden; | 74 overflow: hidden; |
| 75 text-align: right; | 75 text-align: right; |
| 76 bottom: auto; | 76 bottom: auto; |
| 77 height: 48px; | 77 height: 32px; |
| 78 min-width: 48px; | 78 min-width: 48px; |
| 79 line-height: 32px; | |
| 79 background-color: #fafafa; | 80 background-color: #fafafa; |
| 80 /* The duration is also specified in MediaControlElements.cpp and LayoutTest s/media/media-controls.js */ | 81 /* The duration is also specified in MediaControlElements.cpp and LayoutTest s/media/media-controls.js */ |
| 81 transition: opacity 0.3s; | 82 transition: opacity 0.3s; |
| 82 | 83 |
| 83 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif ; | 84 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif ; |
| 84 font-size: 14px; | 85 font-size: 12px; |
| 85 font-weight: normal; /* Make sure that we don't inherit non-defaults. */ | 86 font-weight: normal; /* Make sure that we don't inherit non-defaults. */ |
| 86 font-style: normal; | 87 font-style: normal; |
| 87 } | 88 } |
| 88 | 89 |
| 89 video:-webkit-full-page-media { | 90 video:-webkit-full-page-media { |
| 90 margin: auto; | 91 margin: auto; |
| 91 position: absolute; | 92 position: absolute; |
| 92 top: 0; | 93 top: 0; |
| 93 right: 0; | 94 right: 0; |
| 94 bottom: 0; | 95 bottom: 0; |
| 95 left: 0; | 96 left: 0; |
| 96 } | 97 } |
| 97 | 98 |
| 98 audio:-webkit-full-page-media, video:-webkit-full-page-media { | 99 audio:-webkit-full-page-media, video:-webkit-full-page-media { |
| 99 max-height: 100%; | 100 max-height: 100%; |
| 100 max-width: 100%; | 101 max-width: 100%; |
| 101 } | 102 } |
| 102 | 103 |
| 103 audio:-webkit-full-page-media::-webkit-media-controls-panel, | 104 audio:-webkit-full-page-media::-webkit-media-controls-panel, |
| 104 video:-webkit-full-page-media::-webkit-media-controls-panel { | 105 video:-webkit-full-page-media::-webkit-media-controls-panel { |
| 105 bottom: 0px; | 106 bottom: 0px; |
| 106 } | 107 } |
| 107 | 108 |
| 108 audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-bu tton { | 109 audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-bu tton { |
| 109 -webkit-appearance: media-mute-button; | 110 -webkit-appearance: media-mute-button; |
| 110 display: flex; | 111 display: flex; |
| 111 flex: none; | 112 flex: none; |
| 112 border: none; | 113 box-sizing: content-box; |
| 113 width: 48px; | 114 width: 32px; |
| 114 height: 48px; | 115 height: 32px; |
| 115 line-height: 48px; | 116 padding: 0px; |
| 116 padding: 12px; | 117 border-width: 0px; |
| 117 background-color: initial; | 118 background-color: initial; |
| 118 color: inherit; | 119 color: inherit; |
| 119 } | 120 } |
| 120 | 121 |
| 121 audio::-webkit-media-controls-overlay-enclosure { | 122 audio::-webkit-media-controls-overlay-enclosure { |
| 122 display: none; | 123 display: none; |
| 123 } | 124 } |
| 124 | 125 |
| 125 video::-webkit-media-controls-overlay-enclosure { | 126 video::-webkit-media-controls-overlay-enclosure { |
| 126 display: flex; | 127 display: flex; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 138 overflow: hidden; | 139 overflow: hidden; |
| 139 } | 140 } |
| 140 | 141 |
| 141 video::-webkit-media-controls-overlay-play-button { | 142 video::-webkit-media-controls-overlay-play-button { |
| 142 -webkit-appearance: media-overlay-play-button; | 143 -webkit-appearance: media-overlay-play-button; |
| 143 display: flex; | 144 display: flex; |
| 144 position: absolute; | 145 position: absolute; |
| 145 top: 0; | 146 top: 0; |
| 146 left: 0; | 147 left: 0; |
| 147 margin: 0; | 148 margin: 0; |
| 148 border: none; | 149 border-width: 0px; |
|
philipj_slow
2016/04/01 08:47:31
A pet peeve of mine: 0px==0. There are a bunch of
| |
| 149 background-color: transparent; | 150 background-color: transparent; |
| 150 width: 100%; | 151 width: 100%; |
| 151 height: 100%; | 152 height: 100%; |
| 152 padding: 0; | 153 padding: 0; |
| 153 } | 154 } |
| 154 | 155 |
| 155 video::-internal-media-controls-overlay-cast-button { | 156 video::-internal-media-controls-overlay-cast-button { |
| 156 -webkit-appearance: -internal-media-overlay-cast-off-button; | 157 -webkit-appearance: -internal-media-overlay-cast-off-button; |
| 157 display: flex; | 158 display: flex; |
| 158 position: absolute; | 159 position: absolute; |
| 159 top: 8px; | 160 top: 8px; |
| 160 left: 8px; | 161 left: 8px; |
| 161 margin-left: 0px; | 162 margin-left: 0px; |
| 162 margin-top: 0px; | 163 margin-top: 0px; |
| 163 border: none; | 164 border-width: 0px; |
| 164 background-color: transparent; | 165 background-color: transparent; |
| 165 width: 48px; | 166 width: 32px; |
| 166 height: 48px; | 167 height: 32px; |
| 167 padding: 0; | 168 padding: 0; |
| 168 transition: opacity 0.3s; | 169 transition: opacity 0.3s; |
| 169 } | 170 } |
| 170 | 171 |
| 171 audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-bu tton { | 172 audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-bu tton { |
| 172 -webkit-appearance: media-play-button; | 173 -webkit-appearance: media-play-button; |
| 173 display: flex; | 174 display: flex; |
| 174 flex: none; | 175 flex: none; |
| 175 border-sizing: border-box; | 176 box-sizing: content-box; |
| 176 width: 48px; | 177 width: 32px; |
| 177 height: 48px; | 178 height: 32px; |
| 178 line-height: 48px; | 179 padding: 0px; |
| 179 padding: 12px; | 180 border-width: 0px; |
| 180 background-color: initial; | 181 background-color: initial; |
| 181 color: inherit; | 182 color: inherit; |
| 182 } | 183 } |
| 183 | 184 |
| 184 audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls- timeline-container { | 185 audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls- timeline-container { |
| 185 -webkit-appearance: media-controls-background; | 186 -webkit-appearance: media-controls-background; |
| 186 display: flex; | 187 display: flex; |
| 187 flex-direction: row; | 188 flex-direction: row; |
| 188 align-items: center; | 189 align-items: center; |
| 189 justify-content: flex-end; | 190 justify-content: flex-end; |
| 190 flex: 1 1; | 191 flex: 1 1; |
| 191 -webkit-user-select: none; | 192 -webkit-user-select: none; |
| 192 height: 48px; | 193 height: 48px; |
| 193 padding: 0; | 194 padding: 0; |
| 194 min-width: 0; | 195 min-width: 0; |
| 195 } | 196 } |
| 196 | 197 |
| 197 audio::-webkit-media-controls-current-time-display, video::-webkit-media-control s-current-time-display { | 198 audio::-webkit-media-controls-current-time-display, video::-webkit-media-control s-current-time-display { |
| 198 -webkit-appearance: media-current-time-display; | 199 -webkit-appearance: media-current-time-display; |
| 199 -webkit-user-select: none; | 200 -webkit-user-select: none; |
| 200 flex: none; | 201 flex: none; |
| 201 display: flex; | 202 display: flex; |
| 202 border: none; | 203 border: none; |
| 203 cursor: default; | 204 cursor: default; |
| 204 | 205 |
| 205 height: 48px; | 206 height: 32px; |
| 206 | 207 |
| 207 /* text runs right to the edge of the container */ | 208 /* text runs right to the edge of the container */ |
| 208 padding: 0; | 209 padding: 0; |
| 209 | 210 |
| 210 line-height: 48px; | |
| 211 color: #5a5a5a; | 211 color: #5a5a5a; |
| 212 | 212 |
| 213 letter-spacing: normal; | 213 letter-spacing: normal; |
| 214 word-spacing: normal; | 214 word-spacing: normal; |
| 215 text-transform: none; | 215 text-transform: none; |
| 216 text-indent: 0; | 216 text-indent: 0; |
| 217 text-shadow: none; | 217 text-shadow: none; |
| 218 text-decoration: none; | 218 text-decoration: none; |
| 219 } | 219 } |
| 220 | 220 |
| 221 audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-contr ols-time-remaining-display { | 221 audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-contr ols-time-remaining-display { |
| 222 -webkit-appearance: media-current-time-display; | 222 -webkit-appearance: media-current-time-display; |
| 223 -webkit-user-select: none; | 223 -webkit-user-select: none; |
| 224 flex: none; | 224 flex: none; |
| 225 display: flex; | 225 display: flex; |
| 226 border: none; | 226 border: none; |
| 227 cursor: default; | 227 cursor: default; |
| 228 | 228 |
| 229 height: 48px; | 229 height: 32px; |
| 230 | 230 |
| 231 /* text runs right to the edge of the container, plus a little on | 231 /* text runs right to the edge of the container, plus a little on |
| 232 * the left to pad the leading "/" */ | 232 * the left to pad the leading "/" */ |
| 233 padding: 0 0 0 4px; | 233 padding: 0 0 0 4px; |
| 234 | 234 |
| 235 line-height: 48px; | |
| 236 color: #5a5a5a; | 235 color: #5a5a5a; |
| 237 | 236 |
| 238 letter-spacing: normal; | 237 letter-spacing: normal; |
| 239 word-spacing: normal; | 238 word-spacing: normal; |
| 240 text-transform: none; | 239 text-transform: none; |
| 241 text-indent: 0; | 240 text-indent: 0; |
| 242 text-shadow: none; | 241 text-shadow: none; |
| 243 text-decoration: none; | 242 text-decoration: none; |
| 244 } | 243 } |
| 245 | 244 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 width: 48px; | 306 width: 48px; |
| 308 height: 48px; | 307 height: 48px; |
| 309 padding: 0px; | 308 padding: 0px; |
| 310 } | 309 } |
| 311 | 310 |
| 312 audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-f ullscreen-button { | 311 audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-f ullscreen-button { |
| 313 -webkit-appearance: media-enter-fullscreen-button; | 312 -webkit-appearance: media-enter-fullscreen-button; |
| 314 display: flex; | 313 display: flex; |
| 315 flex: none; | 314 flex: none; |
| 316 overflow: hidden; | 315 overflow: hidden; |
| 317 border: none; | 316 box-sizing: content-box; |
| 318 width: 48px; | 317 width: 32px; |
| 319 height: 48px; | 318 height: 32px; |
| 320 line-height: 48px; | 319 padding: 0px; |
| 320 border-width: 0px; | |
| 321 background-color: initial; | 321 background-color: initial; |
| 322 color: inherit; | 322 color: inherit; |
| 323 } | 323 } |
| 324 | 324 |
| 325 audio::-internal-media-controls-cast-button, video::-internal-media-controls-cas t-button { | 325 audio::-internal-media-controls-cast-button, video::-internal-media-controls-cas t-button { |
| 326 -webkit-appearance: -internal-media-cast-off-button; | 326 -webkit-appearance: -internal-media-cast-off-button; |
| 327 display: flex; | 327 display: flex; |
| 328 flex: none; | 328 flex: none; |
| 329 border: none; | 329 box-sizing: content-box; |
| 330 width: 48px; | 330 width: 32px; |
| 331 height: 48px; | 331 height: 32px; |
| 332 line-height: 48px; | 332 padding: 0px; |
| 333 border-width: 0px; | |
| 333 margin-left: 0px; | 334 margin-left: 0px; |
| 334 margin-right: 0px; | 335 margin-right: 0px; |
| 335 padding: 12px; | |
| 336 background-color: initial; | 336 background-color: initial; |
| 337 color: inherit; | 337 color: inherit; |
| 338 } | 338 } |
| 339 | 339 |
| 340 audio::-webkit-media-controls-toggle-closed-captions-button { | 340 audio::-webkit-media-controls-toggle-closed-captions-button { |
| 341 display: none; | 341 display: none; |
| 342 } | 342 } |
| 343 | 343 |
| 344 video::-webkit-media-controls-toggle-closed-captions-button { | 344 video::-webkit-media-controls-toggle-closed-captions-button { |
| 345 -webkit-appearance: media-toggle-closed-captions-button; | 345 -webkit-appearance: media-toggle-closed-captions-button; |
| 346 display: flex; | 346 display: flex; |
| 347 flex: none; | 347 flex: none; |
| 348 border: none; | 348 box-sizing: content-box; |
| 349 width: 48px; | 349 width: 32px; |
| 350 height: 48px; | 350 height: 32px; |
| 351 line-height: 48px; | 351 padding: 0px; |
| 352 border-width: 0px; | |
| 352 margin-left: 0px; | 353 margin-left: 0px; |
| 353 margin-right: 0px; | 354 margin-right: 0px; |
| 354 padding: 12px; | |
| 355 background-color: initial; | 355 background-color: initial; |
| 356 color: inherit; | 356 color: inherit; |
| 357 } | 357 } |
| 358 | 358 |
| 359 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con trols-fullscreen-volume-slider { | 359 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con trols-fullscreen-volume-slider { |
| 360 display: none; | 360 display: none; |
| 361 } | 361 } |
| 362 | 362 |
| 363 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { | 363 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media -controls-fullscreen-volume-min-button { |
| 364 display: none; | 364 display: none; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 font-weight: bold; | 435 font-weight: bold; |
| 436 } | 436 } |
| 437 | 437 |
| 438 video::cue(u) { | 438 video::cue(u) { |
| 439 text-decoration: underline; | 439 text-decoration: underline; |
| 440 } | 440 } |
| 441 | 441 |
| 442 video::cue(i) { | 442 video::cue(i) { |
| 443 font-style: italic; | 443 font-style: italic; |
| 444 } | 444 } |
| OLD | NEW |