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

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

Issue 2482593003: DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css (Closed)
Patch Set: Created 4 years, 1 month 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 (c) 2014 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2014 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 :host { 7 :host {
8 flex: none; 8 flex: none;
9 padding: 0 2px; 9 padding: 0 2px;
10 } 10 }
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 311 }
312 312
313 .large-list-toolbar-item.toolbar-glyph { 313 .large-list-toolbar-item.toolbar-glyph {
314 -webkit-mask-position: -224px 0; 314 -webkit-mask-position: -224px 0;
315 } 315 }
316 316
317 .record-toolbar-item.toolbar-glyph { 317 .record-toolbar-item.toolbar-glyph {
318 -webkit-mask-position: -288px 0; 318 -webkit-mask-position: -288px 0;
319 } 319 }
320 320
321 .toolbar-state-on .record-toolbar-item.toolbar-glyph { 321 .active-recording-toolbar-item.toolbar-glyph {
322 -webkit-mask-position: -288px -24px; 322 -webkit-mask-position: -288px -24px;
323 } 323 }
324 324
325 .camera-toolbar-item.toolbar-glyph { 325 .camera-toolbar-item.toolbar-glyph {
326 -webkit-mask-position: -96px -24px; 326 -webkit-mask-position: -96px -24px;
327 } 327 }
328 328
329 .step-in-toolbar-item.toolbar-glyph { 329 .step-in-toolbar-item.toolbar-glyph {
330 -webkit-mask-position: -64px -72px; 330 -webkit-mask-position: -64px -72px;
331 } 331 }
(...skipping 20 matching lines...) Expand all
352 } 352 }
353 353
354 .pause-on-exceptions-toolbar-item.toolbar-glyph { 354 .pause-on-exceptions-toolbar-item.toolbar-glyph {
355 -webkit-mask-position: -256px 0; 355 -webkit-mask-position: -256px 0;
356 } 356 }
357 357
358 .pause-toolbar-item.toolbar-glyph { 358 .pause-toolbar-item.toolbar-glyph {
359 -webkit-mask-position: -32px -72px; 359 -webkit-mask-position: -32px -72px;
360 } 360 }
361 361
362 .toolbar-state-on .pause-toolbar-item.toolbar-glyph { 362 .resume-toolbar-item.toolbar-glyph {
363 -webkit-mask-position: 0 -72px; 363 -webkit-mask-position: 0 -72px;
364 } 364 }
365 365
366 .toolbar-state-on .breakpoint-toolbar-item.toolbar-glyph { 366 .breakpoint-toolbar-item.toolbar-glyph {
367 -webkit-mask-position: -32px 0; 367 -webkit-mask-position: -32px 0;
368 } 368 }
369 369
370 .breakpoint-toolbar-item.toolbar-glyph { 370 .deactivate-breakpoint-toolbar-item.toolbar-glyph {
371 -webkit-mask-position: 0 -24px; 371 -webkit-mask-position: 0 -24px;
372 } 372 }
373 373
374 .notification-toolbar-item.toolbar-glyph { 374 .notification-toolbar-item.toolbar-glyph {
375 -webkit-mask-position: -32px -120px; 375 -webkit-mask-position: -32px -120px;
376 } 376 }
377 377
378 .format-toolbar-item.toolbar-glyph { 378 .format-toolbar-item.toolbar-glyph {
379 -webkit-mask-position: -256px -24px; 379 -webkit-mask-position: -256px -24px;
380 } 380 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 412 }
413 413
414 .eyedropper-toolbar-item.toolbar-glyph { 414 .eyedropper-toolbar-item.toolbar-glyph {
415 -webkit-mask-position: -288px -120px; 415 -webkit-mask-position: -288px -120px;
416 } 416 }
417 417
418 .add-toolbar-item.toolbar-glyph { 418 .add-toolbar-item.toolbar-glyph {
419 -webkit-mask-position: -224px -120px; 419 -webkit-mask-position: -224px -120px;
420 } 420 }
421 421
422 .toolbar-state-pause-outline .animation-control-toolbar-item.toolbar-glyph { 422 .animation-play-item.toolbar-glyph {
423 -webkit-mask-position: -320px -48px;
424 }
425
426 .animation-replay-item.toolbar-glyph {
427 -webkit-mask-position: -320px -24px;
428 }
429
430 .animation-pause-item.toolbar-glyph {
423 -webkit-mask-position: -320px 0px; 431 -webkit-mask-position: -320px 0px;
424 } 432 }
425 433
426 .toolbar-state-replay-outline .animation-control-toolbar-item.toolbar-glyph {
427 -webkit-mask-position: -320px -24px;
428 background-color: rgb(66, 129, 235) !important;
429 }
430
431 .toolbar-state-play-outline .animation-control-toolbar-item.toolbar-glyph {
432 -webkit-mask-position: -320px -48px;
433 background-color: rgb(66, 129, 235) !important;
434 }
435
436 .box-shadow-toolbar-item.toolbar-glyph { 434 .box-shadow-toolbar-item.toolbar-glyph {
437 -webkit-mask-position: -160px -48px; 435 -webkit-mask-position: -160px -48px;
438 } 436 }
439 437
440 .text-shadow-toolbar-item.toolbar-glyph { 438 .text-shadow-toolbar-item.toolbar-glyph {
441 -webkit-mask-position: -192px -48px; 439 -webkit-mask-position: -192px -48px;
442 } 440 }
443 441
444 .background-color-toolbar-item.toolbar-glyph { 442 .background-color-toolbar-item.toolbar-glyph {
445 -webkit-mask-position: -96px -144px; 443 -webkit-mask-position: -96px -144px;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 480 }
483 481
484 .folder-toolbar-item.toolbar-glyph { 482 .folder-toolbar-item.toolbar-glyph {
485 -webkit-mask-position: -224px -144px; 483 -webkit-mask-position: -224px -144px;
486 } 484 }
487 485
488 .goto-source-toolbar-item.toolbar-glyph { 486 .goto-source-toolbar-item.toolbar-glyph {
489 -webkit-mask-position: 0 -120px; 487 -webkit-mask-position: 0 -120px;
490 } 488 }
491 489
492 .toolbar-state-left-show .sidebar-toolbar-item.toolbar-glyph { 490 .show-left-sidebar-item.toolbar-glyph {
493 -webkit-mask-position: -160px -72px; 491 -webkit-mask-position: -160px -72px;
494 } 492 }
495 493
496 .toolbar-state-left-hide .sidebar-toolbar-item.toolbar-glyph { 494 .hide-left-sidebar-item.toolbar-glyph {
497 -webkit-mask-position: -192px -72px; 495 -webkit-mask-position: -192px -72px;
498 } 496 }
499 497
500 .toolbar-state-right-show .sidebar-toolbar-item.toolbar-glyph { 498 .show-right-sidebar-item.toolbar-glyph {
501 -webkit-mask-position: -288px -72px; 499 -webkit-mask-position: -160px -72px;
500 transform: rotate(180deg);
502 } 501 }
503 502
504 .toolbar-state-right-hide .sidebar-toolbar-item.toolbar-glyph { 503 .hide-right-sidebar-item.toolbar-glyph {
505 -webkit-mask-position: -256px -72px; 504 -webkit-mask-position: -192px -72px;
505 transform: rotate(180deg);
506 } 506 }
507 507
508 .toolbar-state-top-show .sidebar-toolbar-item.toolbar-glyph { 508 .show-top-sidebar-item.toolbar-glyph {
509 -webkit-mask-position: -160px -72px; 509 -webkit-mask-position: -160px -72px;
510 transform: translate(4px, 0) rotate(90deg); 510 transform: translate(4px, 0) rotate(90deg);
511 } 511 }
512 512
513 .toolbar-state-top-hide .sidebar-toolbar-item.toolbar-glyph { 513 .hide-top-sidebar-item.toolbar-glyph {
514 -webkit-mask-position: -192px -72px; 514 -webkit-mask-position: -192px -72px;
515 transform: translate(4px, -1px) rotate(90deg); 515 transform: translate(4px, 1px) rotate(90deg);
516 } 516 }
517 517
518 .toolbar-state-bottom-show .sidebar-toolbar-item.toolbar-glyph { 518 .show-bottom-sidebar-item.toolbar-glyph {
519 -webkit-mask-position: -288px -72px; 519 -webkit-mask-position: -160px -72px;
520 transform: translate(4px, 0) rotate(90deg); 520 transform: translate(4px, 0) rotate(-90deg);
521 } 521 }
522 522
523 .toolbar-state-bottom-hide .sidebar-toolbar-item.toolbar-glyph { 523 .hide-bottom-sidebar-item.toolbar-glyph {
524 -webkit-mask-position: -256px -72px; 524 -webkit-mask-position: -192px -72px;
525 transform: translate(4px, -1px) rotate(90deg); 525 transform: translate(4px, 1px) rotate(-90deg);
526 } 526 }
527 527
528 .toolbar-state-on .record-toolbar-item.toolbar-glyph, 528 .active-recording-toolbar-item.toolbar-glyph,
lushnikov 2016/11/05 17:36:38 this should be just .toolbar-state-active {
lushnikov 2016/11/07 05:05:06 Nah, this has to stay like this to support dark th
dgozman 2016/11/07 18:32:45 I don't get it.
lushnikov 2016/11/08 01:44:45 Removed the active state at all. Now there's a set
529 .toolbar-state-active .filter-toolbar-item.toolbar-glyph, 529 .toolbar-state-active .filter-toolbar-item.toolbar-glyph,
530 .toolbar-state-active .block-toolbar-item.toolbar-glyph { 530 .toolbar-state-active .block-toolbar-item.toolbar-glyph {
531 background-color: rgb(216, 0, 0) !important; 531 background-color: rgb(216, 0, 0) !important;
532 } 532 }
533 533
534 :host-context(.-theme-with-dark-background) .toolbar-state-active .filter-toolba r-item.toolbar-glyph, 534 :host-context(.-theme-with-dark-background) .toolbar-state-active .filter-toolba r-item.toolbar-glyph,
lushnikov 2016/11/05 17:36:38 ditto here: :host-context(.-theme-with-dark-backg
lushnikov 2016/11/07 05:05:06 Ditto.
535 :host-context(.-theme-with-dark-background) .toolbar-state-active .block-toolbar -item.toolbar-glyph, 535 :host-context(.-theme-with-dark-background) .toolbar-state-active .block-toolbar -item.toolbar-glyph,
536 :host-context(.-theme-with-dark-background) .toolbar-state-on .record-toolbar-it em.toolbar-glyph { 536 :host-context(.-theme-with-dark-background) .active-recording-toolbar-item.toolb ar-glyph {
537 background-color: hsl(0, 100%, 65%) !important; 537 background-color: hsl(0, 100%, 65%) !important;
538 } 538 }
539 539
540 span.toolbar-select-container.toolbar-item.warning { 540 span.toolbar-select-container.toolbar-item.warning {
541 background: #ffd7d7; 541 background: #ffd7d7;
542 padding: 0 5px 0 0; 542 padding: 0 5px 0 0;
543 margin-right: 1px; 543 margin-right: 1px;
544 } 544 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698