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 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif; | 47 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif; |
48 justify-content: flex-end; | 48 justify-content: flex-end; |
49 align-items: center; | 49 align-items: center; |
50 } | 50 } |
51 | 51 |
52 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure
{ | 52 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure
{ |
53 width: 100%; | 53 width: 100%; |
54 height: 48px; | 54 height: 32px; |
55 flex-shrink: 0; | 55 flex-shrink: 0; |
56 bottom: 0; | 56 bottom: 0; |
57 text-indent: 0; | 57 text-indent: 0; |
58 padding: 0; | 58 padding: 0; |
59 margin: 0; | 59 margin: 0; |
60 box-sizing: border-box; | 60 box-sizing: border-box; |
61 } | 61 } |
62 | 62 |
63 audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel { | 63 audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel { |
64 display: flex; | 64 display: flex; |
65 flex-direction: row; | 65 flex-direction: row; |
66 align-items: center; | 66 align-items: center; |
67 /* We use flex-start here to ensure that the play button is visible even | 67 /* We use flex-start here to ensure that the play button is visible even |
68 * if we are too small to show all controls. | 68 * if we are too small to show all controls. |
69 */ | 69 */ |
70 justify-content: flex-start; | 70 justify-content: flex-start; |
71 -webkit-user-select: none; | 71 -webkit-user-select: none; |
72 position: relative; | 72 position: relative; |
73 width: 100%; | 73 width: 100%; |
74 z-index: 0; | 74 z-index: 0; |
75 overflow: hidden; | 75 overflow: hidden; |
76 text-align: right; | 76 text-align: right; |
77 bottom: auto; | 77 bottom: auto; |
78 height: 48px; | 78 height: 32px; |
79 min-width: 48px; | 79 min-width: 48px; |
| 80 line-height: 32px; |
80 background-color: #fafafa; | 81 background-color: #fafafa; |
81 /* The duration is also specified in MediaControlElements.cpp and LayoutTest
s/media/media-controls.js */ | 82 /* The duration is also specified in MediaControlElements.cpp and LayoutTest
s/media/media-controls.js */ |
82 transition: opacity 0.3s; | 83 transition: opacity 0.3s; |
83 | 84 |
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 audio:-webkit-full-page-media, video:-webkit-full-page-media { | 90 audio:-webkit-full-page-media, video:-webkit-full-page-media { |
90 max-height: 100%; | 91 max-height: 100%; |
91 max-width: 100%; | 92 max-width: 100%; |
92 } | 93 } |
93 | 94 |
94 audio:-webkit-full-page-media::-webkit-media-controls-panel, | 95 audio:-webkit-full-page-media::-webkit-media-controls-panel, |
95 video:-webkit-full-page-media::-webkit-media-controls-panel { | 96 video:-webkit-full-page-media::-webkit-media-controls-panel { |
96 bottom: 0px; | 97 bottom: 0px; |
97 } | 98 } |
98 | 99 |
99 audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-bu
tton { | 100 audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-bu
tton { |
100 -webkit-appearance: media-mute-button; | 101 -webkit-appearance: media-mute-button; |
101 display: flex; | 102 display: flex; |
102 flex: none; | 103 flex: none; |
103 border: none; | 104 box-sizing: border-box; |
104 width: 48px; | 105 width: 32px; |
105 height: 48px; | 106 height: 32px; |
106 line-height: 48px; | 107 padding: 0px; |
107 padding: 12px; | 108 border-width: 0px; |
108 background-color: initial; | 109 background-color: initial; |
109 color: inherit; | 110 color: inherit; |
110 } | 111 } |
111 | 112 |
112 audio::-webkit-media-controls-overlay-enclosure { | 113 audio::-webkit-media-controls-overlay-enclosure { |
113 display: none; | 114 display: none; |
114 } | 115 } |
115 | 116 |
116 video::-webkit-media-controls-overlay-enclosure { | 117 video::-webkit-media-controls-overlay-enclosure { |
117 display: flex; | 118 display: flex; |
(...skipping 11 matching lines...) Expand all Loading... |
129 overflow: hidden; | 130 overflow: hidden; |
130 } | 131 } |
131 | 132 |
132 video::-webkit-media-controls-overlay-play-button { | 133 video::-webkit-media-controls-overlay-play-button { |
133 -webkit-appearance: media-overlay-play-button; | 134 -webkit-appearance: media-overlay-play-button; |
134 display: flex; | 135 display: flex; |
135 position: absolute; | 136 position: absolute; |
136 top: 0; | 137 top: 0; |
137 left: 0; | 138 left: 0; |
138 margin: 0; | 139 margin: 0; |
139 border: none; | 140 border-width: 0px; |
140 background-color: transparent; | 141 background-color: transparent; |
141 width: 100%; | 142 width: 100%; |
142 height: 100%; | 143 height: 100%; |
143 padding: 0; | 144 padding: 0; |
144 } | 145 } |
145 | 146 |
146 video::-internal-media-controls-overlay-cast-button { | 147 video::-internal-media-controls-overlay-cast-button { |
147 -webkit-appearance: -internal-media-overlay-cast-off-button; | 148 -webkit-appearance: -internal-media-overlay-cast-off-button; |
148 display: flex; | 149 display: flex; |
149 position: absolute; | 150 position: absolute; |
150 top: 8px; | 151 top: 8px; |
151 left: 8px; | 152 left: 8px; |
152 margin-left: 0px; | 153 margin-left: 0px; |
153 margin-top: 0px; | 154 margin-top: 0px; |
154 border: none; | 155 border-width: 0px; |
155 background-color: transparent; | 156 background-color: transparent; |
156 width: 48px; | 157 width: 32px; |
157 height: 48px; | 158 height: 32px; |
158 padding: 0; | 159 padding: 0; |
159 transition: opacity 0.3s; | 160 transition: opacity 0.3s; |
160 } | 161 } |
161 | 162 |
162 audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-bu
tton { | 163 audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-bu
tton { |
163 -webkit-appearance: media-play-button; | 164 -webkit-appearance: media-play-button; |
164 display: flex; | 165 display: flex; |
165 flex: none; | 166 flex: none; |
166 border-sizing: border-box; | 167 box-sizing: border-box; |
167 width: 48px; | 168 width: 32px; |
168 height: 48px; | 169 height: 32px; |
169 line-height: 48px; | 170 padding: 0px; |
170 padding: 12px; | 171 border-width: 0px; |
171 background-color: initial; | 172 background-color: initial; |
172 color: inherit; | 173 color: inherit; |
173 } | 174 } |
174 | 175 |
175 audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-
timeline-container { | 176 audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-
timeline-container { |
176 -webkit-appearance: media-controls-background; | 177 -webkit-appearance: media-controls-background; |
177 display: flex; | 178 display: flex; |
178 flex-direction: row; | 179 flex-direction: row; |
179 align-items: center; | 180 align-items: center; |
180 justify-content: flex-end; | 181 justify-content: flex-end; |
181 flex: 1 1; | 182 flex: 1 1; |
182 -webkit-user-select: none; | 183 -webkit-user-select: none; |
183 height: 48px; | 184 height: 48px; |
184 padding: 0; | 185 padding: 0; |
185 min-width: 0; | 186 min-width: 0; |
186 } | 187 } |
187 | 188 |
188 audio::-webkit-media-controls-current-time-display, video::-webkit-media-control
s-current-time-display { | 189 audio::-webkit-media-controls-current-time-display, video::-webkit-media-control
s-current-time-display { |
189 -webkit-appearance: media-current-time-display; | 190 -webkit-appearance: media-current-time-display; |
190 -webkit-user-select: none; | 191 -webkit-user-select: none; |
191 flex: none; | 192 flex: none; |
192 display: flex; | 193 display: flex; |
193 border: none; | 194 border: none; |
194 cursor: default; | 195 cursor: default; |
195 | 196 |
196 height: 48px; | 197 height: 32px; |
197 | 198 |
198 /* text runs right to the edge of the container */ | 199 /* text runs right to the edge of the container */ |
199 padding: 0; | 200 padding: 0; |
200 | 201 |
201 line-height: 48px; | |
202 color: #5a5a5a; | 202 color: #5a5a5a; |
203 | 203 |
204 letter-spacing: normal; | 204 letter-spacing: normal; |
205 word-spacing: normal; | 205 word-spacing: normal; |
206 text-transform: none; | 206 text-transform: none; |
207 text-indent: 0; | 207 text-indent: 0; |
208 text-shadow: none; | 208 text-shadow: none; |
209 text-decoration: none; | 209 text-decoration: none; |
210 } | 210 } |
211 | 211 |
212 audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-contr
ols-time-remaining-display { | 212 audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-contr
ols-time-remaining-display { |
213 -webkit-appearance: media-current-time-display; | 213 -webkit-appearance: media-current-time-display; |
214 -webkit-user-select: none; | 214 -webkit-user-select: none; |
215 flex: none; | 215 flex: none; |
216 display: flex; | 216 display: flex; |
217 border: none; | 217 border: none; |
218 cursor: default; | 218 cursor: default; |
219 | 219 |
220 height: 48px; | 220 height: 32px; |
221 | 221 |
222 /* text runs right to the edge of the container, plus a little on | 222 /* text runs right to the edge of the container, plus a little on |
223 * the left to pad the leading "/" */ | 223 * the left to pad the leading "/" */ |
224 padding: 0 0 0 4px; | 224 padding: 0 0 0 4px; |
225 | 225 |
226 line-height: 48px; | |
227 color: #5a5a5a; | 226 color: #5a5a5a; |
228 | 227 |
229 letter-spacing: normal; | 228 letter-spacing: normal; |
230 word-spacing: normal; | 229 word-spacing: normal; |
231 text-transform: none; | 230 text-transform: none; |
232 text-indent: 0; | 231 text-indent: 0; |
233 text-shadow: none; | 232 text-shadow: none; |
234 text-decoration: none; | 233 text-decoration: none; |
235 } | 234 } |
236 | 235 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 width: 48px; | 297 width: 48px; |
299 height: 48px; | 298 height: 48px; |
300 padding: 0px; | 299 padding: 0px; |
301 } | 300 } |
302 | 301 |
303 audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-f
ullscreen-button { | 302 audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-f
ullscreen-button { |
304 -webkit-appearance: media-enter-fullscreen-button; | 303 -webkit-appearance: media-enter-fullscreen-button; |
305 display: flex; | 304 display: flex; |
306 flex: none; | 305 flex: none; |
307 overflow: hidden; | 306 overflow: hidden; |
308 border: none; | 307 box-sizing: border-box; |
309 width: 48px; | 308 width: 32px; |
310 height: 48px; | 309 height: 32px; |
311 line-height: 48px; | 310 padding: 0px; |
| 311 border-width: 0px; |
312 background-color: initial; | 312 background-color: initial; |
313 color: inherit; | 313 color: inherit; |
314 } | 314 } |
315 | 315 |
316 audio::-internal-media-controls-cast-button, video::-internal-media-controls-cas
t-button { | 316 audio::-internal-media-controls-cast-button, video::-internal-media-controls-cas
t-button { |
317 -webkit-appearance: -internal-media-cast-off-button; | 317 -webkit-appearance: -internal-media-cast-off-button; |
318 display: flex; | 318 display: flex; |
319 flex: none; | 319 flex: none; |
320 border: none; | 320 box-sizing: border-box; |
321 width: 48px; | 321 width: 32px; |
322 height: 48px; | 322 height: 32px; |
323 line-height: 48px; | 323 padding: 0px; |
| 324 border-width: 0px; |
324 margin-left: 0px; | 325 margin-left: 0px; |
325 margin-right: 0px; | 326 margin-right: 0px; |
326 padding: 12px; | |
327 background-color: initial; | 327 background-color: initial; |
328 color: inherit; | 328 color: inherit; |
329 } | 329 } |
330 | 330 |
331 audio::-webkit-media-controls-toggle-closed-captions-button { | 331 audio::-webkit-media-controls-toggle-closed-captions-button { |
332 display: none; | 332 display: none; |
333 } | 333 } |
334 | 334 |
335 video::-webkit-media-controls-toggle-closed-captions-button { | 335 video::-webkit-media-controls-toggle-closed-captions-button { |
336 -webkit-appearance: media-toggle-closed-captions-button; | 336 -webkit-appearance: media-toggle-closed-captions-button; |
337 display: flex; | 337 display: flex; |
338 flex: none; | 338 flex: none; |
339 border: none; | 339 box-sizing: border-box; |
340 width: 48px; | 340 width: 32px; |
341 height: 48px; | 341 height: 32px; |
342 line-height: 48px; | 342 padding: 0px; |
| 343 border-width: 0px; |
343 margin-left: 0px; | 344 margin-left: 0px; |
344 margin-right: 0px; | 345 margin-right: 0px; |
345 padding: 12px; | |
346 background-color: initial; | 346 background-color: initial; |
347 color: inherit; | 347 color: inherit; |
348 } | 348 } |
349 | 349 |
350 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con
trols-fullscreen-volume-slider { | 350 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-con
trols-fullscreen-volume-slider { |
351 display: none; | 351 display: none; |
352 } | 352 } |
353 | 353 |
354 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media
-controls-fullscreen-volume-min-button { | 354 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media
-controls-fullscreen-volume-min-button { |
355 display: none; | 355 display: none; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 font-weight: bold; | 485 font-weight: bold; |
486 } | 486 } |
487 | 487 |
488 video::cue(u) { | 488 video::cue(u) { |
489 text-decoration: underline; | 489 text-decoration: underline; |
490 } | 490 } |
491 | 491 |
492 video::cue(i) { | 492 video::cue(i) { |
493 font-style: italic; | 493 font-style: italic; |
494 } | 494 } |
OLD | NEW |