Changeset 181178 in webkit
- Timestamp:
- Mar 6, 2015, 1:29:29 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181174 r181178 1 2015-03-05 Roger Fong <roger_fong@apple.com> 2 3 Reskin Captions button and container on OSX. 4 https://bugs.webkit.org/show_bug.cgi?id=142383. 5 <rdar://problem/20061466> 6 7 Reviewed by Eric Carlson. 8 9 * Modules/mediacontrols/mediaControlsApple.css: 10 (audio::-webkit-media-controls-toggle-closed-captions-button): Create new captions button icon. 11 Update caption container to match rest of media controls better. 12 (audio::-webkit-media-controls-closed-captions-container): 13 (audio::-webkit-media-controls-closed-captions-container .list): 14 (audio::-webkit-media-controls-closed-captions-container h3): 15 (audio::-webkit-media-controls-closed-captions-container ul): 16 (audio::-webkit-media-controls-closed-captions-container li): 17 (audio::-webkit-media-controls-closed-captions-container li:focus): 18 (audio::-webkit-media-controls-closed-captions-container li:hover): 19 Fix up some fonts to make fonts between captions, status display and time displays consistent. 20 (audio::-webkit-media-controls-status-display): 21 (audio::-webkit-media-controls-time-remaining-display): 22 1 23 2015-03-06 Jer Noble <jer.noble@apple.com> 2 24 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
r181122 r181178 230 230 video::-webkit-media-controls-toggle-closed-captions-button, 231 231 audio::-webkit-media-controls-toggle-closed-captions-button { 232 width: 1 5px;232 width: 16px; 233 233 margin-right: 16px; 234 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 02 105" fill="white"><path d="M98.766,43.224c0-23.163-21.775-41.94-48.637-41.94c-26.859,0-48.635,18.777-48.635,41.94c0,18.266,13.546,33.796,32.444,39.549c1.131,8.356,26.037,24.255,22.864,19.921c-4.462-6.096-5.159-13.183-5.07-17.566C77.85,84.397,98.766,65.923,98.766,43.224z" fill="url(#gradient)"/></svg>');234 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="white"><defs> <clipPath id="cut-hole"><rect x="0" y="0" width="16" height="10"/><rect x="0" y="10" width="9" height="1"/><rect x="11" y="10" width="5" height="1"/></clipPath></defs> <rect x="0.5" y="0.5" rx="1" ry="1" width="15" height="10" clip-path="url(#cut-hole)"/><path d="M 2,5.5 h 4"/><path d="M 7,5.5 h 7"/><path d="M 3,7.5 h 2"/><path d="M 6,7.5 h 3"/><path d="M 10,7.5 h 3"/><path d="M 8.5,10.5 L 8.5,12.75 L 11,10"/></svg>'); 235 235 outline: 0; 236 236 } … … 247 247 overflow-x: hidden; 248 248 overflow-y: scroll; 249 background-color: rgba(0, 0, 0, 0.8 5);250 border: 3px solid rgba(128, 128, 128, 0.75);251 border-radius: 10px;249 background-color: rgba(0, 0, 0, 0.8); 250 border: 1px solid rgba(128, 128, 128, 0.75); 251 border-radius: 6px; 252 252 cursor: default; 253 253 z-index: 2; … … 258 258 audio::-webkit-media-controls-closed-captions-container .list { 259 259 display: block; 260 font-family: "Helvetica Bold", Helvetica, sans-serif;261 font-size: 1 0pt;260 font-family: "Helvetica Neue", Helvetica, sans-serif; 261 font-size: 11px; 262 262 -webkit-user-select: none; 263 263 } … … 266 266 audio::-webkit-media-controls-closed-captions-container h3 { 267 267 margin: 0; 268 color: rgb(1 17, 117, 117);268 color: rgb(140, 140, 140); 269 269 text-shadow: 0 1px 0 black; 270 -webkit-margin-start: 23px;270 -webkit-margin-start: 16px; 271 271 padding-top: 4px; 272 font-weight: bold; 273 font-size: 10pt; 272 font-size: 11px; 274 273 } 275 274 … … 277 276 audio::-webkit-media-controls-closed-captions-container ul { 278 277 list-style-type: none; 279 margin: 0 0 4px 0;278 margin: 0 0 8px 0; 280 279 padding: 0; 281 font-weight: bold;282 280 } 283 281 … … 289 287 text-shadow: 0 1px 0 black; 290 288 margin: 0; 291 padding-left: 37px;292 padding-right: 35px;289 padding-left: 28px; 290 padding-right: 28px; 293 291 padding-top: 0.15em; 294 292 padding-bottom: 0.2em; … … 304 302 audio::-webkit-media-controls-closed-captions-container li:focus { 305 303 outline: 0; 306 background- image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.3)), color-stop(1, rgba(255, 255, 255, 0.2)));304 background-color: rgba(140, 140, 140, .5); 307 305 } 308 306 309 307 video::-webkit-media-controls-closed-captions-container li:hover, 310 308 audio::-webkit-media-controls-closed-captions-container li:hover { 311 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(79, 112, 246)), color-stop(1, rgb(26, 68, 243))); 312 border-top: 1px solid rgb(70, 103, 234); 313 border-bottom: 1px solid rgb(3, 54, 229); 309 background-color: rgba(26, 68, 243, 0.6); 314 310 } 315 311 … … 354 350 audio::-webkit-media-controls-status-display { 355 351 cursor: default; 356 font : -webkit-small-control;357 font-size: 9px;352 font-family: "Helvetica Neue", Helvetica, sans-serif; 353 font-size: 11px; 358 354 overflow: hidden; 359 355 color: white; … … 400 396 overflow-y: hidden; 401 397 overflow-x: hidden; 402 font-family: 'Helvetica Neue';398 font-family: "Helvetica Neue", Helvetica, sans-serif; 403 399 font-size: 11px; 404 400 color: white;
Note:
See TracChangeset
for help on using the changeset viewer.