1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
|
/*
* Copyright (C) 2013-2020 Apple Inc. All rights reserved.
*
* 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.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. 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 INC. 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.
*/
.tree-outline.dom {
position: relative;
/* Ensure this containing block for the absolutely-positioned descendant .selection-area spans the full width of the scroll container so .selection-area spans from edge-to-edge of the scoll area. */
width: fit-content;
min-width: 100%;
margin: 0;
padding: 0;
outline: none;
list-style-type: none;
/* Needed to make the negative z-index on .selection-area works. Otherwise the background-color from .syntax-highlighted hides the selection. */
background-color: transparent !important;
color: var(--text-color);
--item-pseudo-class-indicator-start: 2px;
--item-minimum-width: 200px;
--sublist-margin-start: 4px;
--sublist-padding-start: 1px;
--sublist-border-width-start: 9px;
--shadow-subtree-background-color: hsla(0, 0%, 0%, 0.05);
}
.tree-outline.dom.non-selectable {
-webkit-user-select: text;
}
.tree-outline.dom li .selection-area {
position: absolute;
inset-inline: 0;
height: 15px;
z-index: -1;
}
.tree-outline.dom li.selected .selection-area {
background-color: var(--selected-background-color-unfocused);
}
.tree-outline.dom li.elements-drag-over .selection-area {
margin-top: -2px;
border-top: 2px solid var(--selected-background-color);
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:not(.non-selectable):focus-within li.selected .selection-area {
background-color: var(--selected-background-color);
}
.tree-outline.dom:not(.non-selectable) li.hovered:not(.selected) .selection-area {
background-color: var(--selected-background-color);
opacity: 0.3;
}
.tree-outline.dom li.inspected-node > span::after {
content: " = " var(--console-saved-result-prefix) "0";
color: var(--console-secondary-text-color);
position: absolute;
white-space: pre;
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.inspected-node.selected > span::after {
color: var(--selected-secondary-text-color);
}
.content-view.dom-tree.deemphasize-unrendered .tree-outline.dom li:not(.rendered) > span > *:not(.html-comment) {
filter: grayscale();
}
.content-view.dom-tree.deemphasize-unrendered .tree-outline.dom li:not(.rendered, .selected) > span > *:not(.html-comment),
.content-view.dom-tree.deemphasize-unrendered .tree-outline.dom:not(:focus-within) li.selected:not(.rendered) > span > *:not(.html-comment),
body:is(.window-inactive, .window-docked-inactive) .content-view.dom-tree.deemphasize-unrendered .tree-outline.dom li.selected:not(.rendered) > span > *:not(.html-comment) {
opacity: 0.7;
}
.tree-outline.dom ol {
list-style-type: none;
margin: 0;
padding-inline-start: calc(var(--sublist-margin-start) + var(--sublist-padding-start) + var(--sublist-border-width-start));
}
.tree-outline.dom ol.children {
display: none;
}
.tree-outline.dom ol.children.expanded {
display: block;
}
.tree-outline.dom li:is(.hovered, .selected) + ol.children.expanded {
margin-inline-start: var(--sublist-margin-start);
padding-inline-start: var(--sublist-padding-start);
border: 0 solid hsla(0, 0%, 83%, 0.5);
}
.tree-outline.dom li:is(.hovered, .selected) + ol.children.expanded {
border-left-width: var(--sublist-border-width-start);
}
.tree-outline.dom li.selected + ol.children.expanded {
border-color: hsl(0, 0%, 65%, 0.5);
}
.tree-outline.dom li {
padding: 0;
word-wrap: break-word;
outline: none;
min-width: var(--item-minimum-width);
--item-padding-start: 17px;
--item-padding-end: 6px;
}
.tree-outline.dom li:not(.editing) {
padding-left: var(--item-padding-start);
padding-right: var(--item-padding-end);
}
.tree-outline.dom li.editing {
margin-left: var(--item-padding-start);
margin-right: var(--item-padding-end);
}
.tree-outline.dom li > span > .html-text-node {
unicode-bidi: isolate;
}
.tree-outline.dom li .pseudo-class-indicator {
display: inline-block;
position: absolute;
width: 5px;
height: 5px;
margin-top: 4px;
content: "";
background-color: var(--glyph-color-active);
border-radius: 50%;
}
.tree-outline.dom li .pseudo-class-indicator {
left: var(--item-pseudo-class-indicator-start);
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.selected .pseudo-class-indicator {
background-color: var(--selected-foreground-color);
}
.tree-outline.dom.single-node li {
padding-left: 2px;
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.selected {
color: white;
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.selected * {
color: inherit;
}
.tree-outline.dom li.parent {
margin-left: -15px;
line-height: 13px;
}
.tree-outline.dom li .html-tag.close {
margin-left: calc(-1 * var(--sublist-margin-start) - var(--sublist-border-width-start));
}
.tree-outline.dom li .html-tag ~ .go-to-arrow {
height: 13px;
vertical-align: -3px;
}
.tree-outline.dom li:not(.hovered) .html-tag ~ .go-to-arrow {
visibility: hidden;
}
.tree-outline.dom li.parent::before {
position: relative;
z-index: 20;
width: 13px;
height: 13px;
padding-right: 2px;
content: "";
background-image: url(../Images/DisclosureTriangles.svg#closed-normal);
background-size: 13px 13px;
background-repeat: no-repeat;
}
.tree-outline.dom li.parent::before {
float: left;
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.parent.selected::before {
background-image: url(../Images/DisclosureTriangles.svg#closed-selected);
}
.tree-outline.dom li.parent.expanded::before {
background-image: url(../Images/DisclosureTriangles.svg#open-normal);
}
body:not(.window-inactive, .window-docked-inactive) .tree-outline.dom:focus-within li.parent.expanded.selected::before {
background-image: url(../Images/DisclosureTriangles.svg#open-selected);
}
.tree-outline.dom .html-text-node.large {
display: inline-block;
min-width: 100%;
white-space: pre-wrap;
}
.tree-outline.dom .html-pseudo-element {
color: hsl(0, 59%, 41%);
}
.tree-outline.dom .shadow {
color: gray;
}
/* Cannot apply styling directly to the parent element since it has a disclosure triangle. */
.tree-outline.dom li.parent.shadow::after {
display: block;
/* Adds padding to the right edge. */
width: calc(100% + 8px);
height: 1.2em;
margin-top: -13px;
margin-left: -2px;
content: "";
background-color: var(--shadow-subtree-background-color);
}
.tree-outline.dom li.parent.shadow + ol.children.expanded {
background-color: var(--shadow-subtree-background-color);
}
.showing-find-banner .tree-outline.dom .search-highlight {
color: black;
background-color: hsla(53, 83%, 53%, 0.2);
border-bottom: 1px solid hsl(47, 82%, 60%);
}
@keyframes node-state-changed {
from { background-color: var(--value-changed-highlight); }
}
.node-state-changed {
animation: node-state-changed 1s cubic-bezier(0.25, 0, 0.25, 1);
}
@keyframes dom-tree-outline-highlight-fadeout {
from { background-color: highlight; }
}
.highlight .selection-area {
animation: dom-tree-outline-highlight-fadeout 2s;
}
.tree-outline.dom li .highlight {
background-color: hsla(53, 83%, 53%, 0.2);
border-bottom: 1px solid hsl(47, 82%, 60%);
}
@media (prefers-color-scheme: dark) {
.tree-outline.dom {
--shadow-subtree-background-color: hsla(0, 0%, 100%, 0.05);
}
.tree-outline.dom .shadow {
color: var(--text-color);
}
.showing-find-banner .tree-outline.dom .search-highlight {
/* FIXME: This should use a variable. */
background-color: hsla(53, 83%, 53%, 0.8);
}
.tree-outline.dom .html-pseudo-element {
color: hsl(0, 80%, 65%);
}
}
|