UNPKG

devil-windows

Version:

Debugger, profiler and runtime with embedded WebKit DevTools client (for Windows).

758 lines (630 loc) 17.7 kB
/* * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #elements-content { flex: 1 1; overflow: auto; padding-left: 0; -webkit-transform: translateZ(0); } #elements-crumbs { flex: 0 0 19px; background-color: white; border-top: 1px solid #ccc; overflow: hidden; height: 19px; width: 100%; } #elements-content > ol { display: inline-block; min-height: 100%; -webkit-transform: translateZ(0); } #elements-content .editing { margin-left: 8px; } #elements-content .elements-gutter-decoration { position: absolute; left: 1px; margin-top: 2px; height: 8px; width: 8px; border-radius: 4px; border: 1px solid orange; background-color: orange; } #elements-content .elements-gutter-decoration.elements-has-decorated-children { opacity: 0.5; } #elements-content .CodeMirror { /* Consistent with the .editing class in inspector.css */ box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px; outline: 1px solid rgb(66%, 66%, 66%) !important; background-color: white; } #elements-content .CodeMirror pre { padding: 0; } #elements-content .CodeMirror-lines { padding: 0; } .elements-tree-editor { -webkit-user-select: text; -webkit-user-modify: read-write-plaintext-only; } .metrics { padding: 8px; font-size: 10px; text-align: center; white-space: nowrap; } .metrics .label { position: absolute; font-size: 10px; margin-left: 3px; padding-left: 2px; padding-right: 2px; } .metrics .position { border: 1px rgb(66%, 66%, 66%) dotted; background-color: white; display: inline-block; text-align: center; padding: 3px; margin: 3px; } .metrics .margin { border: 1px dashed; background-color: white; display: inline-block; text-align: center; vertical-align: middle; padding: 3px; margin: 3px; } .metrics .border { border: 1px black solid; background-color: white; display: inline-block; text-align: center; vertical-align: middle; padding: 3px; margin: 3px; } .metrics .padding { border: 1px grey dashed; background-color: white; display: inline-block; text-align: center; vertical-align: middle; padding: 3px; margin: 3px; } .metrics .content { position: static; border: 1px gray solid; background-color: white; display: inline-block; text-align: center; vertical-align: middle; padding: 3px; margin: 3px; min-width: 80px; overflow: visible; } .metrics .content span { display: inline-block; } .metrics .editing { position: relative; z-index: 100; cursor: text; } .metrics .left { display: inline-block; vertical-align: middle; } .metrics .right { display: inline-block; vertical-align: middle; } .metrics .top { display: inline-block; } .metrics .bottom { display: inline-block; } .styles-section { padding: 2px 2px 4px 4px; min-height: 18px; white-space: nowrap; background-origin: padding; background-clip: padding; -webkit-user-select: text; border-bottom: 1px solid rgb(191, 191, 191); position: relative; } .styles-pane .sidebar-separator { border-top: 0px none; } .styles-section.user-rule { display: none; } .show-user-styles .styles-section.user-rule { display: block; } .styles-sidebar-placeholder { height: 16px; } .styles-section.read-only:not(.computed-style) { background-color: rgb(240, 240, 240); } .styles-section .properties li.not-parsed-ok { margin-left: 0; } .styles-section.computed-style .properties li.not-parsed-ok { margin-left: -6px; } .styles-section .properties li.filter-match, .styles-section .simple-selector.filter-match { background-color: rgba(255, 255, 0, 0.5); } .styles-section .properties li.overloaded.filter-match { background-color: rgba(255, 255, 0, 0.25); } .styles-section .properties li.not-parsed-ok .exclamation-mark { display: inline-block; position: relative; width: 11px; height: 10px; margin: 0 7px 0 0; top: 1px; left: -36px; /* outdent to compensate for the top-level property indent */ -webkit-user-select: none; cursor: default; z-index: 1; } .styles-section .header { white-space: nowrap; background-origin: padding; background-clip: padding; } .styles-section .header .title { word-wrap: break-word; white-space: normal; } .styles-section .header .title .media, .styles-section .header .title .media .subtitle { color: rgb(128, 128, 128); overflow: hidden; } .styles-section .header .subtitle { color: rgb(85, 85, 85); float: right; margin-left: 5px; max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .styles-section .header .subtitle a { color: inherit; } .styles-section .selector { color: #888; } .styles-section .simple-selector.selector-matches { color: #222; } .styles-section a[data-uncopyable] { display: inline-block; } .styles-section a[data-uncopyable]::before { content: attr(data-uncopyable); text-decoration: underline; } .styles-section .properties { display: none; margin: 0; padding: 2px 4px 0 0; list-style: none; clear: both; } .styles-section.matched-styles .properties { padding-left: 0; } .styles-section.no-affect .properties li { opacity: 0.5; } .styles-section.no-affect .properties li.editing { opacity: 1.0; } .styles-section.expanded .properties { display: block; } .styles-section .properties li { margin-left: 12px; padding-left: 22px; white-space: normal; text-overflow: ellipsis; overflow: hidden; cursor: auto; } .styles-section.computed-style.expanded .properties > li { padding-left: 0; } .styles-section.computed-style.expanded .properties > li .webkit-css-property { margin-left: 0; } .styles-section .properties li .webkit-css-property { 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 */ } .styles-section.expanded .properties > li { padding-left: 38px; } .styles-section .properties > li .webkit-css-property { margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */ } .styles-section .properties > li.child-editing { padding-left: 8px; } .styles-section .properties > li.child-editing .webkit-css-property { margin-left: 0; } .styles-section.matched-styles .properties li { margin-left: 0 !important; } .styles-section .properties li.child-editing { word-wrap: break-word !important; white-space: normal !important; padding-left: 0; } .styles-section .properties ol { display: none; margin: 0; -webkit-padding-start: 12px; list-style: none; } .styles-section .properties ol.expanded { display: block; } .styles-section.matched-styles .properties li.parent .expand-element { -webkit-user-select: none; background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; margin-right: 2px; margin-left: -6px; opacity: 0.55; width: 8px; height: 10px; display: inline-block; } @media (-webkit-min-device-pixel-ratio: 1.5) { .styles-section.matched-styles .properties li.parent .expand-element { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .styles-section.matched-styles .properties li.parent .expand-element { background-position: -4px -96px; } .styles-section.matched-styles .properties li.parent.expanded .expand-element { background-position: -20px -96px; } .styles-section .properties li .info { padding-top: 4px; padding-bottom: 3px; } .styles-section.matched-styles:not(.read-only):hover .properties .enabled-button { visibility: visible; } .styles-section.matched-styles:not(.read-only) .properties li.disabled .enabled-button { visibility: visible; } .styles-section .properties .enabled-button { visibility: hidden; float: left; font-size: 10px; margin: 0; vertical-align: top; position: relative; z-index: 1; width: 18px; left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */ top: 1px; } .styles-section.matched-styles .properties ol.expanded { margin-left: 16px; } .styles-section .properties .overloaded:not(.has-ignorable-error), .styles-section .properties .inactive, .styles-section .properties .disabled, .styles-section .properties .not-parsed-ok:not(.has-ignorable-error) { text-decoration: line-through; } .styles-section .properties .has-ignorable-error .webkit-css-property { color: inherit; } .styles-section.computed-style .properties .disabled { text-decoration: none; opacity: 0.5; } .styles-section .properties .implicit, .styles-section .properties .inherited { opacity: 0.5; } .styles-section .properties .has-ignorable-error { color: gray; } .styles-element-state-pane { overflow: hidden; margin-top: -56px; padding-top: 18px; height: 56px; -webkit-transition: margin-top 0.1s ease-in-out; padding-left: 2px; } .styles-element-state-pane.expanded { border-bottom: 1px solid rgb(189, 189, 189); margin-top: 0; } .styles-element-state-pane > table { width: 100%; border-spacing: 0; } .styles-element-state-pane label { display: flex; margin: 1px; } .styles-selector { cursor: text; } .body .styles-section .properties .inherited { display: none; } .styles-section.styles-show-inherited .properties .inherited { display: block; } .add-attribute { margin-left: 1px; margin-right: 1px; white-space: nowrap; } .section .event-bars { display: none; } .section.expanded .event-bars { display: block; } .event-bar { position: relative; margin-left: 10px; } .event-bar:first-child { margin-top: 1px; } .event-bars .event-bar .header { padding: 0 8px 0 6px; min-height: 16px; opacity: 1.0; white-space: nowrap; background-origin: padding; background-clip: padding; } .event-bars .event-bar .header .title { font-weight: normal; text-shadow: white 0 1px 0; } .event-bars .event-bar .header .subtitle { color: rgba(90, 90, 90, 0.75); } .event-bars .event-bar .header::before { -webkit-user-select: none; background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; opacity: 0.5; content: "a"; color: transparent; text-shadow: none; float: left; width: 8px; margin-right: 4px; margin-top: 2px; } @media (-webkit-min-device-pixel-ratio: 1.5) { .event-bars .event-bar .header::before { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .event-bars .event-bar .header::before { background-position: -4px -96px; } .event-bars .event-bar.expanded .header::before { background-position: -20px -96px; } .image-preview-container { background: transparent; text-align: center; } .image-preview-container img { margin: 2px auto; max-width: 100px; max-height: 100px; background-image: url(Images/checker.png); -webkit-user-select: text; -webkit-user-drag: auto; } .sidebar-pane.composite { position: absolute; } .sidebar-pane.composite > .body { height: 100%; } .sidebar-pane.composite .metrics { border-bottom: 1px solid rgb(64%, 64%, 64%); height: 206px; display: flex; flex-direction: column; -webkit-align-items: center; -webkit-justify-content: center; } .sidebar-pane .metrics-and-styles, .sidebar-pane .metrics-and-computed { display: flex !important; flex-direction: column !important; position: relative; } .sidebar-pane .style-panes-wrapper { transform: translateZ(0); flex: 1; overflow-y: auto; position: relative; } .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar, .sidebar-pane.composite .metrics-and-styles .sidebar-pane-toolbar { position: absolute; } .sidebar-pane-filter-box { display: flex; border-top: 1px solid rgb(191, 191, 191); flex-basis: 19px; } .sidebar-pane-filter-box > input { outline: none !important; border: none; width: 100%; margin: 0 4px; background: transparent; } .styles-filter-engaged { background-color: rgba(255, 255, 0, 0.5); } .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar { margin-top: 4px; margin-bottom: -4px; position: relative; } .sidebar-pane.composite .platform-fonts .body { padding: 1ex; -webkit-user-select: text; } .sidebar-pane.composite .platform-fonts .sidebar-separator { border-top: none; } .sidebar-pane.composite .platform-fonts .stats-section { margin-bottom: 5px; } .sidebar-pane.composite .platform-fonts .font-stats-item { padding-left: 1em; } .sidebar-pane.composite .platform-fonts .font-stats-item .delimeter { margin: 0 1ex 0 1ex; } .sidebar-pane.composite .metrics-and-styles .metrics { border-bottom: none; } .sidebar-pane > .body > .split-view { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } .panel.elements .sidebar-pane-toolbar > select { float: right; width: 23px; height: 17px; color: transparent; background-color: transparent; border: none; background-repeat: no-repeat; margin: 1px 0 0 0; padding: 0; border-radius: 0; -webkit-appearance: none; } .panel.elements .sidebar-pane-toolbar > select:hover { background-position: -23px 0; } .panel.elements .sidebar-pane-toolbar > select:active { background-position: -46px 0; } .panel.elements .sidebar-pane-toolbar > select.select-filter { background-image: url(Images/paneFilterButtons.png); } .panel.elements .sidebar-pane-toolbar > select > option, .panel.elements .sidebar-pane-toolbar > select > hr { color: black; } .styles-section:not(.read-only) .properties .webkit-css-property.styles-panel-hovered, .styles-section:not(.read-only) .properties .value .styles-panel-hovered, .styles-section:not(.read-only) .properties .value.styles-panel-hovered, .styles-section:not(.read-only) span.simple-selector.styles-panel-hovered { text-decoration: underline; cursor: default; } .styles-clipboard-only { display: inline-block; width: 0; opacity: 0; pointer-events: none; } li.child-editing .styles-clipboard-only { display: none; } /* Breadcrumbs */ .crumbs { display: inline-block; pointer-events: auto; cursor: default; font-size: 11px; line-height: 17px; } .crumbs .crumb { display: inline-block; padding: 0 7px; height: 18px; white-space: nowrap; } .crumbs .crumb.collapsed > * { display: none; } .crumbs .crumb.collapsed::before { content: "\2026"; font-weight: bold; } .crumbs .crumb.compact .extra { display: none; } .crumbs .crumb.selected, .crumbs .crumb.selected:hover { background-color: rgb(56, 121, 217); color: white; text-shadow: rgba(255, 255, 255, 0.5) 0 0 0; } .crumbs .crumb:hover { background-color: rgb(216, 216, 216); }