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-content .editing {
56 #elements-content .elements-gutter-decoration {
63 border: 1px solid orange;
64 background-color: orange;
67 #elements-content .elements-gutter-decoration.elements-has-decorated-children {
71 #elements-content .CodeMirror {
72 /* Consistent with the .editing class in inspector.css */
73 box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px;
74 outline: 1px solid rgb(66%, 66%, 66%) !important;
75 background-color: white;
78 #elements-content .CodeMirror pre {
82 #elements-content .CodeMirror-lines {
86 .elements-tree-editor {
87 -webkit-user-select: text;
88 -webkit-user-modify: read-write-plaintext-only;
107 border: 1px rgb(66%, 66%, 66%) dotted;
108 background-color: white;
109 display: inline-block;
117 background-color: white;
118 display: inline-block;
120 vertical-align: middle;
126 border: 1px black solid;
127 background-color: white;
128 display: inline-block;
130 vertical-align: middle;
136 border: 1px grey dashed;
137 background-color: white;
138 display: inline-block;
140 vertical-align: middle;
147 border: 1px gray solid;
148 background-color: white;
149 display: inline-block;
151 vertical-align: middle;
158 .metrics .content span {
159 display: inline-block;
169 display: inline-block;
170 vertical-align: middle;
174 display: inline-block;
175 vertical-align: middle;
179 display: inline-block;
183 display: inline-block;
187 padding: 2px 2px 4px 4px;
190 background-origin: padding;
191 background-clip: padding;
192 -webkit-user-select: text;
193 border-bottom: 1px solid rgb(191, 191, 191);
196 .styles-pane .sidebar-separator {
197 border-top: 0px none;
200 .styles-section.user-rule {
204 .show-user-styles .styles-section.user-rule {
208 .styles-sidebar-placeholder {
212 .styles-section.read-only:not(.computed-style) {
213 background-color: rgb(240, 240, 240);
216 .styles-section .properties li.not-parsed-ok {
220 .styles-section.computed-style .properties li.not-parsed-ok {
224 .styles-section .properties li.filter-match,
225 .styles-section .simple-selector.filter-match {
226 background-color: rgba(255, 255, 0, 0.5);
229 .styles-section .properties li.overloaded.filter-match {
230 background-color: rgba(255, 255, 0, 0.25);
233 .styles-section .properties li.not-parsed-ok .exclamation-mark {
234 display: inline-block;
240 left: -36px; /* outdent to compensate for the top-level property indent */
241 -webkit-user-select: none;
246 .styles-section .header {
248 background-origin: padding;
249 background-clip: padding;
252 .styles-section .header .title {
253 word-wrap: break-word;
257 .styles-section .header .title .media,
258 .styles-section .header .title .media .subtitle {
259 color: rgb(128, 128, 128);
263 .styles-section .header .subtitle {
264 color: rgb(85, 85, 85);
268 text-overflow: ellipsis;
273 .styles-section .header .subtitle a {
277 .styles-section .selector {
281 .styles-section .simple-selector.selector-matches {
285 .styles-section a[data-uncopyable] {
286 display: inline-block;
289 .styles-section a[data-uncopyable]::before {
290 content: attr(data-uncopyable);
291 text-decoration: underline;
294 .styles-section .properties {
297 padding: 2px 4px 0 0;
302 .styles-section.matched-styles .properties {
306 .styles-section.no-affect .properties li {
310 .styles-section.no-affect .properties li.editing {
314 .styles-section.expanded .properties {
318 .styles-section .properties li {
322 text-overflow: ellipsis;
327 .styles-section.computed-style.expanded .properties > li {
331 .styles-section.computed-style.expanded .properties > li .webkit-css-property {
335 .styles-section .properties li .webkit-css-property {
336 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 */
339 .styles-section.expanded .properties > li {
343 .styles-section .properties > li .webkit-css-property {
344 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */
347 .styles-section .properties > li.child-editing {
351 .styles-section .properties > li.child-editing .webkit-css-property {
355 .styles-section.matched-styles .properties li {
356 margin-left: 0 !important;
359 .styles-section .properties li.child-editing {
360 word-wrap: break-word !important;
361 white-space: normal !important;
365 .styles-section .properties ol {
368 -webkit-padding-start: 12px;
372 .styles-section .properties ol.expanded {
376 .styles-section.matched-styles .properties li.parent .expand-element {
377 -webkit-user-select: none;
378 background-image: url(Images/statusbarButtonGlyphs.png);
379 background-size: 320px 144px;
385 display: inline-block;
388 @media (-webkit-min-device-pixel-ratio: 1.5) {
389 .styles-section.matched-styles .properties li.parent .expand-element {
390 background-image: url(Images/statusbarButtonGlyphs_2x.png);
394 .styles-section.matched-styles .properties li.parent .expand-element {
395 background-position: -4px -96px;
398 .styles-section.matched-styles .properties li.parent.expanded .expand-element {
399 background-position: -20px -96px;
402 .styles-section .properties li .info {
407 .styles-section.matched-styles:not(.read-only):hover .properties .enabled-button {
411 .styles-section.matched-styles:not(.read-only) .properties li.disabled .enabled-button {
415 .styles-section .properties .enabled-button {
424 left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */
428 .styles-section.matched-styles .properties ol.expanded {
432 .styles-section .properties .overloaded:not(.has-ignorable-error),
433 .styles-section .properties .inactive,
434 .styles-section .properties .disabled,
435 .styles-section .properties .not-parsed-ok:not(.has-ignorable-error) {
436 text-decoration: line-through;
439 .styles-section .properties .has-ignorable-error .webkit-css-property {
443 .styles-section.computed-style .properties .disabled {
444 text-decoration: none;
448 .styles-section .properties .implicit,
449 .styles-section .properties .inherited {
453 .styles-section .properties .has-ignorable-error {
457 .styles-element-state-pane {
462 -webkit-transition: margin-top 0.1s ease-in-out;
466 .styles-element-state-pane.expanded {
467 border-bottom: 1px solid rgb(189, 189, 189);
471 .styles-element-state-pane > table {
476 .styles-element-state-pane label {
485 .body .styles-section .properties .inherited {
489 .styles-section.styles-show-inherited .properties .inherited {
499 .section .event-bars {
503 .section.expanded .event-bars {
512 .event-bar:first-child {
516 .event-bars .event-bar .header {
517 padding: 0 8px 0 6px;
521 background-origin: padding;
522 background-clip: padding;
525 .event-bars .event-bar .header .title {
527 text-shadow: white 0 1px 0;
530 .event-bars .event-bar .header .subtitle {
531 color: rgba(90, 90, 90, 0.75);
534 .event-bars .event-bar .header::before {
535 -webkit-user-select: none;
536 background-image: url(Images/statusbarButtonGlyphs.png);
537 background-size: 320px 144px;
548 @media (-webkit-min-device-pixel-ratio: 1.5) {
549 .event-bars .event-bar .header::before {
550 background-image: url(Images/statusbarButtonGlyphs_2x.png);
554 .event-bars .event-bar .header::before {
555 background-position: -4px -96px;
558 .event-bars .event-bar.expanded .header::before {
559 background-position: -20px -96px;
562 .image-preview-container {
563 background: transparent;
567 .image-preview-container img {
571 background-image: url(Images/checker.png);
572 -webkit-user-select: text;
573 -webkit-user-drag: auto;
576 .sidebar-pane.composite {
580 .sidebar-pane.composite > .body {
584 .sidebar-pane.composite .metrics {
585 border-bottom: 1px solid rgb(64%, 64%, 64%);
588 flex-direction: column;
589 -webkit-align-items: center;
590 -webkit-justify-content: center;
593 .sidebar-pane .metrics-and-styles,
594 .sidebar-pane .metrics-and-computed {
595 display: flex !important;
596 flex-direction: column !important;
600 .sidebar-pane .style-panes-wrapper {
606 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar,
607 .sidebar-pane.composite .metrics-and-styles .sidebar-pane-toolbar {
611 .sidebar-pane-filter-box {
613 border-top: 1px solid rgb(191, 191, 191);
617 .sidebar-pane-filter-box > input {
618 outline: none !important;
622 background: transparent;
625 .styles-filter-engaged {
626 background-color: rgba(255, 255, 0, 0.5);
629 .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar {
635 .sidebar-pane.composite .platform-fonts .body {
637 -webkit-user-select: text;
640 .sidebar-pane.composite .platform-fonts .sidebar-separator {
644 .sidebar-pane.composite .platform-fonts .stats-section {
648 .sidebar-pane.composite .platform-fonts .css-font-value {
652 .sidebar-pane.composite .platform-fonts .font-stats-item {
656 .sidebar-pane.composite .platform-fonts .font-stats-item .delimeter {
660 .sidebar-pane.composite .metrics-and-styles .metrics {
664 .styles-section.computed-style > .header > .sidebar-pane-subtitle {
667 -webkit-user-select: none;
670 .styles-section.computed-style > .header > .sidebar-pane-subtitle > input {
671 vertical-align: middle;
674 .sidebar-pane.composite .sidebar-pane-toolbar > .sidebar-pane-subtitle {
678 .sidebar-pane > .body > .split-view {
686 .panel.elements .sidebar-pane-toolbar > select {
691 background-color: transparent;
693 background-repeat: no-repeat;
697 -webkit-appearance: none;
700 .panel.elements .sidebar-pane-toolbar > select:hover {
701 background-position: -23px 0;
704 .panel.elements .sidebar-pane-toolbar > select:active {
705 background-position: -46px 0;
708 .panel.elements .sidebar-pane-toolbar > select.select-settings {
709 background-image: url(Images/paneSettingsButtons.png);
712 .panel.elements .sidebar-pane-toolbar > select.select-filter {
713 background-image: url(Images/paneFilterButtons.png);
715 .panel.elements .sidebar-pane-toolbar > select > option,
716 .panel.elements .sidebar-pane-toolbar > select > hr {
720 .styles-section:not(.read-only) .properties .webkit-css-property.styles-panel-hovered,
721 .styles-section:not(.read-only) .properties .value .styles-panel-hovered,
722 .styles-section:not(.read-only) .properties .value.styles-panel-hovered,
723 .styles-section:not(.read-only) span.simple-selector.styles-panel-hovered {
724 text-decoration: underline;
728 .styles-clipboard-only {
729 display: inline-block;
734 li.child-editing .styles-clipboard-only {