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

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

Issue 2740913003: DevTools: [Icons] do not set background-position in every UI.Icon (Closed)
Patch Set: fix suggestbox Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Icon.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 font-size: 13px; 320 font-size: 13px;
321 overflow: auto; 321 overflow: auto;
322 z-index: 500; 322 z-index: 500;
323 } 323 }
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 [is=ui-icon].icon-mask {
331 background-color: rgb(110, 110, 110); 331 background-color: rgb(110, 110, 110);
332 -webkit-mask-position: var(--spritesheet-position);
333 }
334
335 [is=ui-icon]:not(.icon-mask) {
336 background-position: var(--spritesheet-position);
332 } 337 }
333 338
334 .spritesheet-smallicons:not(.icon-mask) { 339 .spritesheet-smallicons:not(.icon-mask) {
335 background-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Image s/smallIcons_2x.png) 2x); 340 background-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Image s/smallIcons_2x.png) 2x);
336 background-size: 190px 30px; 341 background-size: 190px 30px;
337 } 342 }
338 343
339 .spritesheet-smallicons.icon-mask { 344 .spritesheet-smallicons.icon-mask {
340 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x); 345 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x);
341 -webkit-mask-size: 190px 30px; 346 -webkit-mask-size: 190px 30px;
(...skipping 20 matching lines...) Expand all
362 } 367 }
363 368
364 .spritesheet-arrowicons { 369 .spritesheet-arrowicons {
365 background-image: url(Images/popoverArrows.png); 370 background-image: url(Images/popoverArrows.png);
366 background-size: 19px 76px; 371 background-size: 19px 76px;
367 } 372 }
368 373
369 .force-white-icons [is=ui-icon].spritesheet-smallicons, [is=ui-icon].force-white -icons.spritesheet-smallicons { 374 .force-white-icons [is=ui-icon].spritesheet-smallicons, [is=ui-icon].force-white -icons.spritesheet-smallicons {
370 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x); 375 -webkit-mask-image: -webkit-image-set(url(Images/smallIcons.png) 1x, url(Ima ges/smallIcons_2x.png) 2x);
371 -webkit-mask-size: 190px 30px; 376 -webkit-mask-size: 190px 30px;
372 background-image: unset; 377 -webkit-mask-position: var(--spritesheet-position);
373 background-size: unset; 378 background: white !important;
374 background: unset;
375 background-color: white;
376 } 379 }
377 380
378 .force-white-icons [is=ui-icon].spritesheet-largeicons, [is=ui-icon].force-white -icons.spritesheet-largeicons { 381 .force-white-icons [is=ui-icon].spritesheet-largeicons, [is=ui-icon].force-white -icons.spritesheet-largeicons {
379 -webkit-mask-image: -webkit-image-set(url(Images/toolbarButtonGlyphs.png) 1x , url(Images/toolbarButtonGlyphs_2x.png) 2x); 382 -webkit-mask-image: -webkit-image-set(url(Images/toolbarButtonGlyphs.png) 1x , url(Images/toolbarButtonGlyphs_2x.png) 2x);
380 -webkit-mask-size: 352px 168px; 383 -webkit-mask-size: 352px 168px;
381 background-image: unset; 384 -webkit-mask-position: var(--spritesheet-position);
382 background-size: unset; 385 background: white !important;
383 background: unset;
384 background-color: white;
385 } 386 }
386 387
387 .force-white-icons [is=ui-icon].spritesheet-resourceicons, [is=ui-icon].force-wh ite-icons.spritesheet-resourceicons { 388 .force-white-icons [is=ui-icon].spritesheet-resourceicons, [is=ui-icon].force-wh ite-icons.spritesheet-resourceicons {
388 -webkit-mask-image: -webkit-image-set(url(Images/resourceGlyphs.png) 1x, url (Images/resourceGlyphs_2x.png) 2x); 389 -webkit-mask-image: -webkit-image-set(url(Images/resourceGlyphs.png) 1x, url (Images/resourceGlyphs_2x.png) 2x);
389 -webkit-mask-size: 140px 20px; 390 -webkit-mask-size: 140px 20px;
390 background-image: unset; 391 -webkit-mask-position: var(--spritesheet-position);
391 background-size: unset; 392 background: white !important;
392 background: unset;
393 background-color: white;
394 } 393 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Icon.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698