2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
15 * its contributors may be used to endorse or promote products derived
16 * from this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 -webkit-transform: translateZ(0);
39 background-color: white;
40 border-top: 1px solid #ccc;
46 #elements-content > ol {
47 display: inline-block;
49 -webkit-transform: translateZ(0);
52 .elements-tree-outline.pick-node-mode {
56 #elements-content .editing {
60 #elements-content .elements-gutter-decoration {
67 border: 1px solid orange;
68 background-color: orange;
71 #elements-content .elements-gutter-decoration.elements-has-decorated-children {
75 #elements-content .CodeMirror {
76 /* Consistent with the .editing class in inspectorStyle.css */
77 box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px;
78 outline: 1px solid rgb(66%, 66%, 66%) !important;
79 background-color: white;
82 #elements-content .CodeMirror pre {
86 #elements-content .CodeMirror-lines {
90 .elements-tree-editor {
91 -webkit-user-select: text;
92 -webkit-user-modify: read-write-plaintext-only;
111 border: 1px rgb(66%, 66%, 66%) dotted;
112 background-color: white;
113 display: inline-block;
121 background-color: white;
122 display: inline-block;
124 vertical-align: middle;
130 border: 1px black solid;
131 background-color: white;
132 display: inline-block;
134 vertical-align: middle;
140 border: 1px grey dashed;
141 background-color: white;
142 display: inline-block;
144 vertical-align: middle;
151 border: 1px gray solid;
152 background-color: white;
153 display: inline-block;
155 vertical-align: middle;
162 .metrics .content span {
163 display: inline-block;
173 display: inline-block;
174 vertical-align: middle;
178 display: inline-block;
179 vertical-align: middle;
183 display: inline-block;
187 display: inline-block;
191 padding: 2px 2px 4px 4px;
194 background-origin: padding;
195 background-clip: padding;
196 -webkit-user-select: text;
197 border-bottom: 1px solid rgb(191, 191, 191);
201 .styles-pane .sidebar-separator {
202 border-top: 0px none;
205 .styles-section.user-rule {
209 .show-user-styles .styles-section.user-rule {
213 .styles-sidebar-placeholder {
217 .styles-section.read-only:not(.computed-style) {
218 background-color: rgb(240, 240, 240);
221 .styles-section .properties li.not-parsed-ok {
225 .styles-section.computed-style .properties li.not-parsed-ok {
229 .styles-section .properties li.filter-match,
230 .styles-section .simple-selector.filter-match {
231 background-color: rgba(255, 255, 0, 0.5);
234 .styles-section .properties li.overloaded.filter-match {
235 background-color: rgba(255, 255, 0, 0.25);
238 .styles-section .properties li.not-parsed-ok .exclamation-mark {
239 display: inline-block;
245 left: -36px; /* outdent to compensate for the top-level property indent */
246 -webkit-user-select: none;
251 .styles-section .header {
253 background-origin: padding;
254 background-clip: padding;
257 .styles-section .header .title {
258 word-wrap: break-word;
262 .styles-section .header .title .media,
263 .styles-section .header .title .media .subtitle {
264 color: rgb(128, 128, 128);
268 .styles-section .header .subtitle {
269 color: rgb(85, 85, 85);
273 text-overflow: ellipsis;
278 .styles-section .header .subtitle a {
282 .styles-section .selector {
286 .styles-section .simple-selector.selector-matches {
290 .styles-section a[data-uncopyable] {
291 display: inline-block;
294 .styles-section a[data-uncopyable]::before {
295 content: attr(data-uncopyable);
296 text-decoration: underline;
299 .styles-section .properties {
302 padding: 2px 4px 0 0;
307 .styles-section.matched-styles .properties {
311 .styles-section.no-affect .properties li {
315 .styles-section.no-affect .properties li.editing {
319 .styles-section.expanded .properties {
323 .styles-section .properties li {
327 text-overflow: ellipsis;
332 .styles-section.computed-style.expanded .properties > li {
336 .styles-section.computed-style.expanded .properties > li .webkit-css-property {
340 .styles-section .properties li .webkit-css-property {
341 margin-left: -22px; /* outdent the first line of longhand properties (in an expanded shorthand) to compensate for the "padding-left" shift in .styles-section .properties li */
344 .styles-section.expanded .properties > li {
348 .styles-section .properties > li .webkit-css-property {
349 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */
352 .styles-section .properties > li.child-editing {
356 .styles-section .properties > li.child-editing .webkit-css-property {
360 .styles-section.matched-styles .properties li {
361 margin-left: 0 !important;
364 .styles-section .properties li.child-editing {
365 word-wrap: break-word !important;
366 white-space: normal !important;
370 .styles-section .properties ol {
373 -webkit-padding-start: 12px;
377 .styles-section .properties ol.expanded {
381 .styles-section.matched-styles .properties li.parent .expand-element {
382 -webkit-user-select: none;
383 background-image: url(Images/statusbarButtonGlyphs.png);
384 background-size: 320px 144px;
390 display: inline-block;
393 @media (-webkit-min-device-pixel-ratio: 1.5) {
394 .styles-section.matched-styles .properties li.parent .expand-element {
395 background-image: url(Images/statusbarButtonGlyphs_2x.png);
399 .styles-section.matched-styles .properties li.parent .expand-element {
400 background-position: -4px -96px;
403 .styles-section.matched-styles .properties li.parent.expanded .expand-element {
404 background-position: -20px -96px;
407 .styles-section .properties li .info {
412 .styles-section.matched-styles:not(.read-only):hover .properties .enabled-button {
416 .styles-section.matched-styles:not(.read-only) .properties li.disabled .enabled-button {
420 .styles-section .properties .enabled-button {
429 left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */
433 .styles-section.matched-styles .properties ol.expanded {
437 .styles-section .properties .overloaded:not(.has-ignorable-error),
438 .styles-section .properties .inactive,
439 .styles-section .properties .disabled,
440 .styles-section .properties .not-parsed-ok:not(.has-ignorable-error) {
441 text-decoration: line-through;
444 .styles-section .properties .has-ignorable-error .webkit-css-property {
448 .styles-section.computed-style .properties .disabled {
449 text-decoration: none;
453 .styles-section .properties .implicit,
454 .styles-section .properties .inherited {
458 .styles-section .properties .has-ignorable-error {
462 .styles-element-state-pane {
467 -webkit-transition: margin-top 0.1s ease-in-out;
471 .styles-element-state-pane.expanded {
472 border-bottom: 1px solid rgb(189, 189, 189);
476 .styles-element-state-pane > table {
481 .styles-element-state-pane label {
490 .body .styles-section .properties .inherited {
494 .styles-section.styles-show-inherited .properties .inherited {
504 .section .event-bars {
508 .section.expanded .event-bars {
517 .event-bar:first-child {
521 .event-bars .event-bar .header {
522 padding: 0 8px 0 6px;
526 background-origin: padding;
527 background-clip: padding;
530 .event-bars .event-bar .header .title {
532 text-shadow: white 0 1px 0;
535 .event-bars .event-bar .header .subtitle {
536 color: rgba(90, 90, 90, 0.75);
539 .event-bars .event-bar .header::before {
540 -webkit-user-select: none;
541 background-image: url(Images/statusbarButtonGlyphs.png);
542 background-size: 320px 144px;
553 @media (-webkit-min-device-pixel-ratio: 1.5) {
554 .event-bars .event-bar .header::before {
555 background-image: url(Images/statusbarButtonGlyphs_2x.png);
559 .event-bars .event-bar .header::before {
560 background-position: -4px -96px;
563 .event-bars .event-bar.expanded .header::before {
564 background-position: -20px -96px;
567 .image-preview-container {
568 background: transparent;
572 .image-preview-container img {
576 background-image: url(Images/checker.png);
577 -webkit-user-select: text;
578 -webkit-user-drag: auto;
581 .sidebar-pane.composite {
585 .sidebar-pane.composite > .body {
589 .sidebar-pane.composite .metrics {
590 border-bottom: 1px solid rgb(64%, 64%, 64%);
593 flex-direction: column;
594 -webkit-align-items: center;
595 -webkit-justify-content: center;
598 .sidebar-pane .metrics-and-styles,
599 .sidebar-pane .metrics-and-computed {
600 display: flex !important;
601 flex-direction: column !important;
605 .sidebar-pane .style-panes-wrapper {
606 transform: translateZ(0);
612 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar,
613 .sidebar-pane.composite .metrics-and-styles .sidebar-pane-toolbar {
617 .sidebar-pane-filter-box {
619 border-top: 1px solid rgb(191, 191, 191);
623 .sidebar-pane-filter-box > input {
624 outline: none !important;
628 background: transparent;
631 .styles-filter-engaged {
632 background-color: rgba(255, 255, 0, 0.5);
635 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar {
641 .sidebar-pane.composite .platform-fonts .body {
643 -webkit-user-select: text;
646 .sidebar-pane.composite .platform-fonts .sidebar-separator {
650 .sidebar-pane.composite .platform-fonts .stats-section {
654 .sidebar-pane.composite .platform-fonts .font-stats-item {
658 .sidebar-pane.composite .platform-fonts .font-stats-item .delimeter {
662 .sidebar-pane.composite .metrics-and-styles .metrics {
666 .sidebar-pane > .body > .split-view {
674 .panel.elements .sidebar-pane-toolbar > select {
679 background-color: transparent;
681 background-repeat: no-repeat;
685 -webkit-appearance: none;
688 .panel.elements .sidebar-pane-toolbar > select:hover {
689 background-position: -23px 0;
692 .panel.elements .sidebar-pane-toolbar > select:active {
693 background-position: -46px 0;
696 .panel.elements .sidebar-pane-toolbar > select.select-filter {
697 background-image: url(Images/paneFilterButtons.png);
699 .panel.elements .sidebar-pane-toolbar > select > option,
700 .panel.elements .sidebar-pane-toolbar > select > hr {
704 .styles-section:not(.read-only) .properties .webkit-css-property.styles-panel-hovered,
705 .styles-section:not(.read-only) .properties .value .styles-panel-hovered,
706 .styles-section:not(.read-only) .properties .value.styles-panel-hovered,
707 .styles-section:not(.read-only) span.simple-selector.styles-panel-hovered {
708 text-decoration: underline;
712 .styles-clipboard-only {
713 display: inline-block;
716 pointer-events: none;
719 li.child-editing .styles-clipboard-only {
726 display: inline-block;
727 pointer-events: auto;
734 display: inline-block;
740 .crumbs .crumb.collapsed > * {
744 .crumbs .crumb.collapsed::before {
749 .crumbs .crumb.compact .extra {
753 .crumbs .crumb.selected, .crumbs .crumb.selected:hover {
754 background-color: rgb(56, 121, 217);
756 text-shadow: rgba(255, 255, 255, 0.5) 0 0 0;
759 .crumbs .crumb:hover {
760 background-color: rgb(216, 216, 216);
763 .elements-tree-element-pick-node-1 {
765 padding: 1px 0 1px 0;
766 -webkit-animation: elements-tree-element-pick-node-animation-1 0.5s 1;
769 .elements-tree-element-pick-node-2 {
771 padding: 1px 0 1px 0;
772 -webkit-animation: elements-tree-element-pick-node-animation-2 0.5s 1;
775 @-webkit-keyframes elements-tree-element-pick-node-animation-1 {
776 from { background-color: rgb(255, 210, 126); }
777 to { background-color: inherit; }
780 @-webkit-keyframes elements-tree-element-pick-node-animation-2 {
781 from { background-color: rgb(255, 210, 126); }
782 to { background-color: inherit; }
786 background-color: rgb(230, 230, 230);
788 border-top: 1px solid rgb(189, 189, 189);
789 border-bottom: 1px solid rgb(189, 189, 189);
790 color: rgb(50, 50, 50);
792 text-overflow: ellipsis;