Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / devtools / front_end / elements / elementsTreeOutline.css
blob6ce620e7239b0fbad1d1ce04f8f8b58a75cc8673
1 /*
2 * Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
7 .elements-disclosure {
8 width: 100%;
9 display: inline-block;
10 line-height: normal;
13 .elements-disclosure li {
14 padding: 0 0 0 14px;
15 margin-top: 1px;
16 margin-left: -2px;
17 word-wrap: break-word;
20 .elements-disclosure li.parent {
21 margin-left: -13px;
24 .elements-disclosure li.parent::before {
25 float: left;
26 width: 10px;
27 box-sizing: border-box;
30 .elements-disclosure li.parent::before {
31 -webkit-user-select: none;
32 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
33 -webkit-mask-size: 352px 168px;
34 content: "a";
35 color: transparent;
36 text-shadow: none;
37 margin-right: 1px;
40 .elements-disclosure li.always-parent::before {
41 visibility: hidden;
44 @media (-webkit-min-device-pixel-ratio: 1.5) {
45 .elements-disclosure li.parent::before {
46 -webkit-mask-image: url(Images/toolbarButtonGlyphs_2x.png);
48 } /* media */
50 .elements-disclosure li.parent::before {
51 -webkit-mask-position: -4px -96px;
52 background-color: rgb(110, 110, 110);
55 .elements-disclosure li .selection {
56 display: none;
57 position: absolute;
58 left: 0;
59 right: 0;
60 height: 15px;
61 z-index: -1;
64 .elements-disclosure li.hovered:not(.selected) .selection {
65 display: block;
66 left: 3px;
67 right: 3px;
68 background-color: rgba(56, 121, 217, 0.1);
69 border-radius: 5px;
72 .elements-disclosure li.parent.expanded::before {
73 -webkit-mask-position: -20px -96px;
76 .elements-disclosure li.selected .selection {
77 display: block;
78 background-color: #dadada;
81 .elements-disclosure ol {
82 list-style-type: none;
83 -webkit-padding-start: 12px;
84 margin: 0;
87 .elements-disclosure ol.children {
88 display: none;
91 .elements-disclosure ol.children.expanded {
92 display: block;
95 .elements-disclosure li .webkit-html-tag.close {
96 margin-left: -12px;
99 .elements-disclosure > ol {
100 position: relative;
101 margin: 0;
102 cursor: default;
103 min-width: 100%;
104 min-height: 100%;
105 -webkit-transform: translateZ(0);
106 padding-left: 2px;
109 .elements-disclosure ol:focus li.selected {
110 color: white;
113 .elements-disclosure ol:focus li.parent.selected::before {
114 background-color: white;
117 .elements-disclosure ol:focus li.selected * {
118 color: inherit;
121 .elements-disclosure ol:focus li.selected .selection {
122 background-color: rgb(56, 121, 217);
125 .elements-tree-outline ol.shadow-root {
126 margin-left: 5px;
127 padding-left: 5px;
128 border-left: 1px solid rgb(190, 190, 190);
131 .elements-tree-outline ol.shadow-root-depth-4 {
132 background-color: rgba(0, 0, 0, 0.04);
135 .elements-tree-outline ol.shadow-root-depth-3 {
136 background-color: rgba(0, 0, 0, 0.03);
139 .elements-tree-outline ol.shadow-root-depth-2 {
140 background-color: rgba(0, 0, 0, 0.02);
143 .elements-tree-outline ol.shadow-root-depth-1 {
144 background-color: rgba(0, 0, 0, 0.01);
147 .elements-tree-outline ol.shadow-root-deep {
148 background-color: transparent;
151 .elements-tree-editor {
152 -webkit-user-select: text;
153 -webkit-user-modify: read-write-plaintext-only;
156 .elements-disclosure li.elements-drag-over .selection {
157 display: block;
158 margin-top: -2px;
159 border-top: 2px solid rgb(56, 121, 217);
162 .elements-disclosure li.in-clipboard .highlight {
163 outline: 1px dotted darkgrey;
166 .CodeMirror {
167 /* Consistent with the .editing class in inspector.css */
168 box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px;
169 outline: 1px solid rgb(66%, 66%, 66%) !important;
170 background-color: white;
173 .CodeMirror-lines {
174 padding: 0;
177 .CodeMirror pre {
178 padding: 0;
181 button, input, select {
182 font-family: inherit;
183 font-size: inherit;
186 .editing {
187 -webkit-user-select: text;
188 box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px;
189 outline: 1px solid rgb(66%, 66%, 66%) !important;
190 background-color: white;
191 -webkit-user-modify: read-write-plaintext-only;
192 text-overflow: clip !important;
193 padding-left: 2px;
194 margin-left: -2px;
195 padding-right: 2px;
196 margin-right: -2px;
197 margin-bottom: -1px;
198 padding-bottom: 1px;
199 opacity: 1.0 !important;
202 .editing,
203 .editing * {
204 color: #222 !important;
205 text-decoration: none !important;
208 .editing br {
209 display: none;
212 .elements-gutter-decoration {
213 position: absolute;
214 left: 2px;
215 margin-top: 2px;
216 height: 9px;
217 width: 9px;
218 border-radius: 5px;
219 border: 1px solid orange;
220 background-color: orange;
221 cursor: pointer;
224 .elements-gutter-decoration.elements-has-decorated-children {
225 opacity: 0.5;
228 .add-attribute {
229 margin-left: 1px;
230 margin-right: 1px;
231 white-space: nowrap;
234 .elements-tree-element-pick-node-1 {
235 border-radius: 3px;
236 padding: 1px 0 1px 0;
237 -webkit-animation: elements-tree-element-pick-node-animation-1 0.5s 1;
240 .elements-tree-element-pick-node-2 {
241 border-radius: 3px;
242 padding: 1px 0 1px 0;
243 -webkit-animation: elements-tree-element-pick-node-animation-2 0.5s 1;
246 @-webkit-keyframes elements-tree-element-pick-node-animation-1 {
247 from { background-color: rgb(255, 210, 126); }
248 to { background-color: inherit; }
251 @-webkit-keyframes elements-tree-element-pick-node-animation-2 {
252 from { background-color: rgb(255, 210, 126); }
253 to { background-color: inherit; }
256 .pick-node-mode {
257 cursor: pointer;
260 .webkit-html-attribute-value a {
261 cursor: default !important;
264 .elements-tree-nowrap, .elements-tree-nowrap .li {
265 white-space: pre !important;
268 .elements-disclosure .elements-tree-nowrap li {
269 word-wrap: normal;
272 /* DOM update highlight */
273 @-webkit-keyframes dom-update-highlight-animation {
274 from {
275 background-color: rgb(158, 54, 153);
276 color: white;
278 80% {
279 background-color: rgb(245, 219, 244);
280 color: inherit;
282 to {
283 background-color: inherit;
287 .dom-update-highlight {
288 -webkit-animation: dom-update-highlight-animation 1.4s 1 cubic-bezier(0, 0, 0.2, 1);
289 border-radius: 2px;
292 .elements-disclosure.single-node li {
293 padding-left: 2px;
296 .elements-tree-shortcut-title {
297 color: rgb(87, 87, 87);
300 ol:hover > li > .elements-tree-shortcut-link {
301 display: initial;
304 .elements-tree-shortcut-link {
305 color: rgb(87, 87, 87);
306 display: none;
309 ol:focus li.selected .webkit-html-tag {
310 color: #a5a5a5;
313 ol:focus li.selected .webkit-html-tag-name,
314 ol:focus li.selected .webkit-html-close-tag-name,
315 ol:focus li.selected .webkit-html-attribute-value,
316 ol:focus li.selected .webkit-html-external-link,
317 ol:focus li.selected .webkit-html-resource-link {
318 color: white;
321 ol:focus li.selected .webkit-html-attribute-name {
322 color: #ccc;
325 .elements-disclosure li.selected .selection > .node-actions-container {
326 visibility: visible;
329 .node-actions-container {
330 position: absolute;
331 z-index: 10000;
332 left: 0px;
333 height: 13px;
334 background-color: hsla(0,100%,100%,0.3);
337 .node-actions-toolbar {
338 position: absolute;
339 top: -30px;
340 left: 2px;
341 background: white;
342 border-radius: 3px;
343 border: 1px solid #B1B1B1;
344 visibility: hidden;
345 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37)
349 .node-actions-toggle {
350 -webkit-mask-position: -201px -26px;
351 width: 16.25px;
352 height: 20px;
353 transform: scale(0.8) rotate(90deg);
354 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
355 -webkit-mask-size: 352px 168px;
356 background-color: #FFFFFF;
357 z-index: 1;
358 margin-top: -3px;
359 cursor: pointer;
362 .gutter-container.has-decorations .node-actions-toggle {
363 opacity: 0;
366 .node-actions-container.expanded > .node-actions-toolbar {
367 visibility: visible;
370 .node-actions-toolbar-below {
371 margin-top: 2px;