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

Side by Side Diff: Source/devtools/front_end/elements/elementsPanel.css

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: only using latin1 in css Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 display: inline-block; 158 display: inline-block;
159 } 159 }
160 160
161 .styles-section { 161 .styles-section {
162 padding: 2px 2px 4px 4px; 162 padding: 2px 2px 4px 4px;
163 min-height: 18px; 163 min-height: 18px;
164 white-space: nowrap; 164 white-space: nowrap;
165 background-origin: padding; 165 background-origin: padding;
166 background-clip: padding; 166 background-clip: padding;
167 -webkit-user-select: text; 167 -webkit-user-select: text;
168 border-bottom: 1px solid rgb(191, 191, 191); 168 border-bottom: 1px solid #ccc;
169 position: relative; 169 position: relative;
170 } 170 }
171 171
172 .styles-section:last-child {
173 border-bottom: none;
174 }
175
172 .styles-pane .sidebar-separator { 176 .styles-pane .sidebar-separator {
173 border-top: 0 none; 177 border-top: 0 none;
174 } 178 }
175 179
176 .styles-sidebar-placeholder { 180 .styles-sidebar-placeholder {
177 height: 16px; 181 height: 16px;
178 } 182 }
179 183
180 .styles-section.read-only { 184 .styles-section.read-only {
181 background-color: #eee; 185 background-color: #eee;
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 .styles-section .style-properties .inherited { 407 .styles-section .style-properties .inherited {
404 opacity: 0.5; 408 opacity: 0.5;
405 } 409 }
406 410
407 .styles-section .style-properties .has-ignorable-error { 411 .styles-section .style-properties .has-ignorable-error {
408 color: gray; 412 color: gray;
409 } 413 }
410 414
411 .styles-element-state-pane { 415 .styles-element-state-pane {
412 overflow: hidden; 416 overflow: hidden;
413 padding-top: 18px; 417 height: 60px;
414 height: 56px;
415 padding-left: 2px; 418 padding-left: 2px;
416 border-bottom: 1px solid rgb(189, 189, 189); 419 border-bottom: 1px solid rgb(189, 189, 189);
417 } 420 }
418 421
419 @keyframes styles-element-state-pane-slidein { 422 @keyframes styles-element-state-pane-slidein {
420 from { 423 from {
421 margin-top: -56px; 424 margin-top: -60px;
422 } 425 }
423 to { 426 to {
424 margin-top: 0px; 427 margin-top: 0px;
425 } 428 }
426 } 429 }
427 430
428 @keyframes styles-element-state-pane-slideout { 431 @keyframes styles-element-state-pane-slideout {
429 from { 432 from {
430 margin-top: 0px; 433 margin-top: 0px;
431 } 434 }
432 to { 435 to {
433 margin-top: -56px; 436 margin-top: -60px;
434 } 437 }
435 } 438 }
436 439
437 .styles-sidebar-toolbar-pane { 440 .styles-sidebar-toolbar-pane {
438 position: relative; 441 position: relative;
439 animation-duration: 0.1s; 442 animation-duration: 0.1s;
440 animation-direction: normal; 443 animation-direction: normal;
441 } 444 }
442 445
443 .styles-sidebar-toolbar-pane-container { 446 .styles-sidebar-toolbar-pane-container {
444 position: relative; 447 position: relative;
445 max-height: 56px; 448 max-height: 60px;
446 overflow: hidden; 449 overflow: hidden;
447 } 450 }
448 451
449 .styles-element-state-pane.visible { 452 .styles-element-state-pane {
453 background-color: #eee;
450 border-bottom: 1px solid rgb(189, 189, 189); 454 border-bottom: 1px solid rgb(189, 189, 189);
451 margin-top: 0; 455 margin-top: 0;
452 } 456 }
453 457
458
459 .styles-element-state-pane > div {
460 margin: 6px 4px 2px;
461 }
462
454 .styles-element-state-pane > table { 463 .styles-element-state-pane > table {
455 width: 100%; 464 width: 100%;
456 border-spacing: 0; 465 border-spacing: 0;
457 } 466 }
458 467
459 .styles-element-state-pane td { 468 .styles-element-state-pane td {
460 padding: 0; 469 padding: 0;
461 } 470 }
462 471
463 .styles-animations-controls-pane > * { 472 .styles-animations-controls-pane > * {
464 margin: 6px 4px; 473 margin: 6px 4px;
465 } 474 }
466 475
467 .styles-animations-controls-pane { 476 .styles-animations-controls-pane {
468 border-bottom: 1px solid rgb(189, 189, 189); 477 border-bottom: 1px solid rgb(189, 189, 189);
469 height: 56px; 478 height: 60px;
470 overflow: hidden; 479 overflow: hidden;
480 background-color: #eee;
471 } 481 }
472 482
473 .animations-controls { 483 .animations-controls {
474 width: 100%; 484 width: 100%;
475 max-width: 200px; 485 max-width: 200px;
476 display: flex; 486 display: flex;
477 align-items: center; 487 align-items: center;
478 } 488 }
479 489
480 .animations-controls > .toolbar { 490 .animations-controls > .toolbar {
(...skipping 24 matching lines...) Expand all
505 max-height: 100px; 515 max-height: 100px;
506 background-image: url(Images/checker.png); 516 background-image: url(Images/checker.png);
507 -webkit-user-select: text; 517 -webkit-user-select: text;
508 -webkit-user-drag: auto; 518 -webkit-user-drag: auto;
509 } 519 }
510 520
511 .sidebar-pane.composite { 521 .sidebar-pane.composite {
512 position: absolute; 522 position: absolute;
513 } 523 }
514 524
515 .sidebar-pane.composite > .body { 525 .metrics {
516 height: 100%; 526 border-bottom: 1px solid #ccc;
527 }
528
529 .metrics-and-styles .metrics {
530 border-top: 1px solid #ccc;
531 border-bottom: none;
517 } 532 }
518 533
519 .sidebar-pane.composite .metrics { 534 .sidebar-pane.composite .metrics {
520 border-bottom: 1px solid rgb(64%, 64%, 64%); 535 height: 160px;
521 height: 206px;
522 display: flex; 536 display: flex;
523 flex-direction: column; 537 flex-direction: column;
524 -webkit-align-items: center; 538 -webkit-align-items: center;
525 -webkit-justify-content: center; 539 -webkit-justify-content: center;
526 } 540 }
527 541
528 .sidebar-pane .metrics-and-styles, 542 .sidebar-pane .metrics-and-styles,
529 .sidebar-pane .metrics-and-computed { 543 .sidebar-pane .metrics-and-computed {
530 display: flex !important; 544 display: flex !important;
531 flex-direction: column !important; 545 flex-direction: column !important;
532 position: relative; 546 position: relative;
533 } 547 }
534 548
535 .sidebar-pane .style-panes-wrapper { 549 .sidebar-pane .style-panes-wrapper {
536 transform: translateZ(0); 550 transform: translateZ(0);
537 flex: 1; 551 flex: 1;
538 overflow-y: auto; 552 overflow-y: auto;
539 position: relative; 553 position: relative;
540 } 554 }
541 555
542 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar,
543 .sidebar-pane.composite .metrics-and-styles .sidebar-pane-toolbar {
544 position: absolute;
545 }
546
547 .sidebar-pane-filter-box { 556 .sidebar-pane-filter-box {
548 display: flex; 557 display: flex;
549 border-top: 1px solid rgb(191, 191, 191); 558 border-top: 1px solid rgb(191, 191, 191);
550 flex-basis: 19px; 559 flex-basis: 19px;
551 flex-shrink: 0; 560 flex-shrink: 0;
552 } 561 }
553 562
554 .sidebar-pane-filter-box > input { 563 .sidebar-pane-filter-box > input {
555 outline: none !important; 564 outline: none !important;
556 border: none; 565 border: none;
557 width: 100%; 566 width: 100%;
558 margin: 0 4px; 567 margin: 0 4px;
559 background: transparent; 568 background: transparent;
560 } 569 }
561 570
562 .styles-filter-engaged { 571 .styles-filter-engaged {
563 background-color: rgba(255, 255, 0, 0.5); 572 background-color: rgba(255, 255, 0, 0.5);
564 } 573 }
565 574
566 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar { 575 .sidebar-pane.composite .platform-fonts {
567 margin-top: 4px;
568 margin-bottom: -4px;
569 position: relative;
570 }
571
572 .sidebar-pane.composite .platform-fonts .body {
573 padding: 1ex; 576 padding: 1ex;
574 -webkit-user-select: text; 577 -webkit-user-select: text;
575 } 578 }
576 579
577 .sidebar-pane.composite .platform-fonts .sidebar-separator { 580 .sidebar-pane.composite .platform-fonts .sidebar-separator {
578 border-top: none; 581 border-top: none;
579 } 582 }
580 583
581 .sidebar-pane.composite .platform-fonts .stats-section { 584 .sidebar-pane.composite .platform-fonts .stats-section {
582 margin-bottom: 5px; 585 margin-bottom: 5px;
583 } 586 }
584 587
585 .sidebar-pane.composite .platform-fonts .font-stats-item { 588 .sidebar-pane.composite .platform-fonts .font-stats-item {
586 padding-left: 1em; 589 padding-left: 1em;
587 } 590 }
588 591
589 .sidebar-pane.composite .platform-fonts .font-stats-item .delimeter { 592 .sidebar-pane.composite .platform-fonts .font-stats-item .delimeter {
590 margin: 0 1ex 0 1ex; 593 margin: 0 1ex 0 1ex;
591 } 594 }
592 595
593 .sidebar-pane.composite .metrics-and-styles .metrics { 596 .sidebar-pane.composite .metrics-and-styles .metrics {
594 border-bottom: none; 597 border-bottom: none;
595 } 598 }
596 599
597 .sidebar-pane > .body > .split-widget { 600 .sidebar-pane > .split-widget {
598 position: absolute; 601 position: absolute;
599 top: 0; 602 top: 0;
600 bottom: 0; 603 bottom: 0;
601 left: 0; 604 left: 0;
602 right: 0; 605 right: 0;
603 } 606 }
604 607
605 .panel.elements .sidebar-pane-toolbar > select {
606 float: right;
607 width: 23px;
608 height: 17px;
609 color: transparent;
610 background-color: transparent;
611 border: none;
612 background-repeat: no-repeat;
613 margin: 1px 0 0 0;
614 padding: 0;
615 border-radius: 0;
616 -webkit-appearance: none;
617 }
618
619 .panel.elements .sidebar-pane-toolbar > select:hover {
620 background-position: -23px 0;
621 }
622
623 .panel.elements .sidebar-pane-toolbar > select:active {
624 background-position: -46px 0;
625 }
626
627 .panel.elements .sidebar-pane-toolbar > select.select-filter {
628 background-image: url(Images/paneFilterButtons.png);
629 }
630 .panel.elements .sidebar-pane-toolbar > select > option,
631 .panel.elements .sidebar-pane-toolbar > select > hr {
632 color: black;
633 }
634
635 .styles-section:not(.read-only) .style-properties .webkit-css-property.styles-pa nel-hovered, 608 .styles-section:not(.read-only) .style-properties .webkit-css-property.styles-pa nel-hovered,
636 .styles-section:not(.read-only) .style-properties .value .styles-panel-hovered, 609 .styles-section:not(.read-only) .style-properties .value .styles-panel-hovered,
637 .styles-section:not(.read-only) .style-properties .value.styles-panel-hovered, 610 .styles-section:not(.read-only) .style-properties .value.styles-panel-hovered,
638 .styles-section:not(.read-only) span.simple-selector.styles-panel-hovered { 611 .styles-section:not(.read-only) span.simple-selector.styles-panel-hovered {
639 text-decoration: underline; 612 text-decoration: underline;
640 cursor: default; 613 cursor: default;
641 } 614 }
642 615
643 .styles-clipboard-only { 616 .styles-clipboard-only {
644 display: inline-block; 617 display: inline-block;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 margin-left: 10px; 722 margin-left: 10px;
750 text-overflow: clip; 723 text-overflow: clip;
751 } 724 }
752 725
753 .style-properties li.editing-sub-part { 726 .style-properties li.editing-sub-part {
754 padding: 3px 6px 8px 18px; 727 padding: 3px 6px 8px 18px;
755 margin: -1px -6px -8px -6px; 728 margin: -1px -6px -8px -6px;
756 text-overflow: clip; 729 text-overflow: clip;
757 } 730 }
758 731
759 .styles-pane-toolbar {
760 float: right;
761 margin-top: -3px;
762 background-color: rgba(255, 255, 255, 0.8);
763 }
764
765 .properties-widget-section { 732 .properties-widget-section {
766 padding: 2px 0px 2px 5px; 733 padding: 2px 0px 2px 5px;
767 } 734 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/StylesSidebarPane.js ('k') | Source/devtools/front_end/extensions/ExtensionPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698