Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css

Issue 2671413004: DevTools: introduce spritesheet assembler. (Closed)
Patch Set: rebaseline tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The Chromium Authors. All rights reserved. 2 * Copyright 2015 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 * { 7 * {
8 /* This is required for correct sizing of flex items because we rely 8 /* This is required for correct sizing of flex items because we rely
9 * on an old version of the flexbox spec. 9 * on an old version of the flexbox spec.
10 * Longer-term we should remove this, see crbug.com/473625 */ 10 * Longer-term we should remove this, see crbug.com/473625 */
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 [is=ui-icon] { 325 [is=ui-icon] {
326 display: inline-block; 326 display: inline-block;
327 flex-shrink: 0; 327 flex-shrink: 0;
328 } 328 }
329 329
330 .icon-mask { 330 .icon-mask {
331 background-color: rgb(110, 110, 110); 331 background-color: rgb(110, 110, 110);
332 } 332 }
333 333
334 .spritesheet-smallicons:not(.icon-mask) { 334 [is=ui-icon]:not(.icon-mask) {
335 background-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Image s/smallIcons_2x.png) 2x); 335 background-image: -webkit-image-set(url(Images/icons_spritesheet.png) 1x, ur l(Images/icons_spritesheet_2x.png) 2x);
336 background-size: 190px 30px; 336 background-size: var(--spritesheet-size);
337 background-position: var(--spritesheet-position);
337 } 338 }
338 339
339 .spritesheet-smallicons.icon-mask { 340 [is=ui-icon].icon-mask {
340 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x); 341 -webkit-mask-image: -webkit-image-set(url(Images/icons_spritesheet.png) 1x, url(Images/icons_spritesheet_2x.png) 2x);
341 -webkit-mask-size: 190px 30px; 342 -webkit-mask-size: var(--spritesheet-size);
343 -webkit-mask-position: var(--spritesheet-position);
342 } 344 }
343 345
344 .spritesheet-largeicons:not(.icon-mask) { 346 .force-white-icons [is=ui-icon], [is=ui-icon].force-white-icons {
345 background-image: -webkit-image-set(url(Images/toolbarButtonGlyphs.png) 1x, url(Images/toolbarButtonGlyphs_2x.png) 2x); 347 -webkit-mask-image: -webkit-image-set(url(Images/icons_spritesheet.png) 1x, url(Images/icons_spritesheet_2x.png) 2x);
346 background-size: 352px 168px; 348 -webkit-mask-size: var(--spritesheet-size);
347 } 349 -webkit-mask-position: var(--spritesheet-position);
348 350 background: white !important;
349 .spritesheet-largeicons.icon-mask {
350 -webkit-mask-image: -webkit-image-set(url(Images/toolbarButtonGlyphs.png) 1x , url(Images/toolbarButtonGlyphs_2x.png) 2x);
351 -webkit-mask-size: 352px 168px;
352 }
353
354 .spritesheet-resourceicons:not(.icon-mask) {
355 background-image: -webkit-image-set(url(Images/resourceGlyphs.png) 1x, url(I mages/resourceGlyphs_2x.png) 2x);
356 background-size: 140px 20px;
357 }
358
359 .spritesheet-resourceicons.icon-mask {
360 -webkit-mask-image: -webkit-image-set(url(Images/resourceGlyphs.png) 1x, url (Images/resourceGlyphs_2x.png) 2x);
361 -webkit-mask-size: 140px 20px;
362 }
363
364 .force-white-icons [is=ui-icon].spritesheet-smallicons, [is=ui-icon].force-white -icons.spritesheet-smallicons {
365 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x);
366 -webkit-mask-size: 190px 30px;
367 background-image: unset;
368 background-size: unset;
369 background: unset;
370 background-color: white;
371 }
372
373 .force-white-icons [is=ui-icon].spritesheet-largeicons, [is=ui-icon].force-white -icons.spritesheet-largeicons {
374 -webkit-mask-image: -webkit-image-set(url(Images/toolbarButtonGlyphs.png) 1x , url(Images/toolbarButtonGlyphs_2x.png) 2x);
375 -webkit-mask-size: 352px 168px;
376 background-image: unset;
377 background-size: unset;
378 background: unset;
379 background-color: white;
380 }
381
382 .force-white-icons [is=ui-icon].spritesheet-resourceicons, [is=ui-icon].force-wh ite-icons.spritesheet-resourceicons {
383 -webkit-mask-image: -webkit-image-set(url(Images/resourceGlyphs.png) 1x, url (Images/resourceGlyphs_2x.png) 2x);
384 -webkit-mask-size: 140px 20px;
385 background-image: unset;
386 background-size: unset;
387 background: unset;
388 background-color: white;
389 } 351 }
390 352
391 .glass-pane { 353 .glass-pane {
392 position: absolute; 354 position: absolute;
393 top: 0; 355 top: 0;
394 bottom: 0; 356 bottom: 0;
395 left: 0; 357 left: 0;
396 right: 0; 358 right: 0;
397 overflow: hidden; 359 overflow: hidden;
398 } 360 }
399 361
400 .glass-pane-content { 362 .glass-pane-content {
401 display: flex; 363 display: flex;
402 } 364 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Icon.js ('k') | third_party/WebKit/Source/devtools/front_end/ui/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698