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 #elements-content > ol {
35 display: inline-block;
39 #elements-content .editing {
43 #elements-content .elements-gutter-decoration {
50 border: 1px solid orange;
51 background-color: orange;
54 #elements-content .elements-gutter-decoration.elements-has-decorated-children {
58 .elements-tree-editor {
59 -webkit-user-select: text;
60 -webkit-user-modify: read-write-plaintext-only;
80 border: 1px rgb(66%, 66%, 66%) dotted;
81 background-color: white;
82 display: inline-block;
90 background-color: white;
91 display: inline-block;
93 vertical-align: middle;
99 border: 1px black solid;
100 background-color: white;
101 display: inline-block;
103 vertical-align: middle;
109 border: 1px grey dashed;
110 background-color: white;
111 display: inline-block;
113 vertical-align: middle;
120 border: 1px gray solid;
121 background-color: white;
122 display: inline-block;
124 vertical-align: middle;
132 .metrics .content span {
133 display: inline-block;
142 display: inline-block;
143 vertical-align: middle;
147 display: inline-block;
148 vertical-align: middle;
152 display: inline-block;
156 display: inline-block;
161 padding: 2px 2px 4px 4px;
164 -webkit-background-origin: padding;
165 -webkit-background-clip: padding;
166 -webkit-user-select: text;
169 .styles-section:not(.first-styles-section) {
170 border-top: 1px solid rgb(191, 191, 191);
173 .styles-section.read-only {
174 background-color: rgb(240, 240, 240);
177 .styles-section .properties li.not-parsed-ok {
181 .styles-section.computed-style .properties li.not-parsed-ok {
185 .styles-section .properties li.not-parsed-ok img.exclamation-mark {
186 content: url(Images/warningIcon.png);
193 left: -38px; /* outdent to compensate for the top-level property indent */
195 vertical-align: baseline;
196 -webkit-user-select: none;
201 .styles-section.computed-style .properties li.not-parsed-ok img.exclamation-mark {
205 .styles-section .header {
207 -webkit-background-origin: padding;
208 -webkit-background-clip: padding;
211 .styles-section .header .title {
212 word-wrap: break-word;
216 .styles-section .header .title .media, .styles-section .header .title .media .subtitle {
217 color: rgb(128, 128, 128);
221 .styles-section .header .subtitle {
222 color: rgb(85, 85, 85);
226 text-overflow: ellipsis;
231 .styles-section .header .subtitle a {
235 .styles-section .selector {
239 .styles-section .selector-matches {
243 .styles-section a[data-uncopyable] {
244 display: inline-block;
247 .styles-section a[data-uncopyable]::before {
248 content: attr(data-uncopyable);
249 text-decoration: underline;
252 .styles-section .properties {
255 padding: 2px 4px 0 6px;
260 .styles-section.matched-styles .properties {
264 .styles-section.no-affect .properties li {
268 .styles-section.no-affect .properties li.editing {
272 .styles-section.expanded .properties {
276 .styles-section .properties li {
280 text-overflow: ellipsis;
285 .styles-section.computed-style.expanded .properties > li {
289 .styles-section.computed-style.expanded .properties > li .webkit-css-property {
293 .styles-section .properties li .webkit-css-property {
294 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 */
297 .styles-section.expanded .properties > li {
301 .styles-section .properties > li .webkit-css-property {
302 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */
305 .styles-section .properties > li.child-editing {
309 .styles-section .properties > li.child-editing .webkit-css-property {
313 .styles-section.matched-styles .properties li {
314 margin-left: 0 !important;
317 .styles-section .properties li.child-editing {
318 word-wrap: break-word !important;
319 white-space: normal !important;
323 .styles-section .properties ol {
326 -webkit-padding-start: 12px;
330 .styles-section .properties ol.expanded {
334 .styles-section .properties li.parent::before {
338 .styles-section .properties li.parent.expanded::before {
342 .styles-section.matched-styles .properties li.parent .expand-element {
343 content: url(Images/treeRightTriangleBlack.png);
349 .styles-section.matched-styles .properties li.parent.expanded .expand-element {
350 content: url(Images/treeDownTriangleBlack.png);
353 .styles-section.computed-style .properties li.parent::before {
354 content: url(Images/treeRightTriangleBlack.png);
361 -webkit-user-select: none;
365 .styles-section.computed-style .properties li.parent.expanded::before {
366 content: url(Images/treeDownTriangleBlack.png);
370 .styles-section .properties li .info {
375 .styles-section.matched-styles:not(.read-only):hover .properties .enabled-button {
379 .styles-section.matched-styles:not(.read-only) .properties li.disabled .enabled-button {
383 .styles-section .properties .enabled-button {
392 left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */
395 .styles-section.matched-styles .properties ol.expanded {
399 .styles-section .properties .overloaded,
400 .styles-section .properties .inactive,
401 .styles-section .properties .disabled,
402 .styles-section .properties .not-parsed-ok {
403 text-decoration: line-through;
406 .styles-section.computed-style .properties .disabled {
407 text-decoration: none;
411 .styles-section .properties .implicit, .styles-section .properties .inherited {
415 .styles-element-state-pane {
416 background-color: rgb(240, 240, 240);
419 -webkit-transition: margin-top 0.1s ease-in-out;
423 .styles-element-state-pane.expanded {
424 border-bottom: 1px solid rgb(189, 189, 189);
428 .styles-element-state-pane > table {
433 .styles-element-state-pane input {
435 vertical-align: -2px;
442 .body .styles-section .properties .inherited {
446 .body.show-inherited .styles-section .properties .inherited {
456 .section .event-bars {
460 .section.expanded .event-bars {
469 .event-bar:first-child {
473 .event-bars .event-bar .header {
474 padding: 0 8px 0 18px;
478 -webkit-background-origin: padding;
479 -webkit-background-clip: padding;
482 .event-bars .event-bar .header .title {
485 text-shadow: white 0 1px 0;
488 .event-bars .event-bar .header .subtitle {
489 color: rgba(90, 90, 90, 0.75);
492 .event-bars .event-bar .header::before {
499 content: url(Images/treeRightTriangleBlack.png) !important;
502 .event-bars .event-bar.expanded .header::before {
503 content: url(Images/treeDownTriangleBlack.png) !important;
506 .image-preview-container {
507 background: transparent;
511 .image-preview-container img {
515 background-image: url(Images/checker.png);
516 -webkit-user-select: text;
517 -webkit-user-drag: auto;
521 .sidebar-pane.composite {
526 .sidebar-pane.composite > .body {
530 .sidebar-pane.composite .metrics {
531 border-bottom: 1px solid rgb(64%, 64%, 64%);
533 display: -webkit-box;
534 -webkit-box-orient: vertical;
535 -webkit-box-align: center;
536 -webkit-box-pack: center;
539 .sidebar-pane.composite .sidebar-pane-toolbar {
545 .sidebar-pane.composite .sidebar-pane-toolbar > .sidebar-pane-subtitle {
549 .sidebar-pane.composite .styles-section.read-only {
550 background-color: inherit;
553 .panel.elements .sidebar-pane-toolbar > select {
558 background-color: transparent;
560 background-repeat: no-repeat;
563 -webkit-border-radius: 0;
564 -webkit-appearance: none;
567 .panel.elements .sidebar-pane-toolbar > select:hover {
568 background-position: -23px 0px;
571 .panel.elements .sidebar-pane-toolbar > select:active {
572 background-position: -46px 0px;
575 .panel.elements .sidebar-pane-toolbar > select.select-settings {
576 background-image: url(Images/paneSettingsButtons.png);
579 .panel.elements .sidebar-pane-toolbar > select.select-filter {
580 background-image: url(Images/paneFilterButtons.png);
583 .panel.elements .sidebar-pane-toolbar > select > option, .panel.elements .sidebar-pane-toolbar > select > hr {