3d0dce531c8d968244d096d2d654e505d2ec2141
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / NavigationSidebarPanel.css
1 /*
2  * Copyright (C) 2013 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 .sidebar > .panel.navigation > .content {
27     position: absolute;
28     top: 0;
29     left: 0;
30     right: 0;
31     bottom: 28px;
32
33     overflow-x: hidden;
34     overflow-y: auto;
35 }
36
37 body.mac-platform.legacy .sidebar > .panel.navigation > .content {
38     bottom: 22px;
39 }
40
41 .sidebar > .panel.navigation > .filter-bar {
42     position: absolute;
43     bottom: 0;
44     left: 0;
45     right: 0;
46 }
47
48 .sidebar > .panel.navigation > .overflow-shadow {
49     position: absolute;
50     bottom: 28px;
51     left: 0;
52     right: 0;
53     height: 1px;
54
55     pointer-events: none;
56
57     opacity: 0;
58
59     border-bottom: 1px solid rgb(179, 179, 179);
60 }
61
62 body.mac-platform.legacy .sidebar > .panel.navigation > .overflow-shadow {
63     border-bottom: none;
64
65     background-image: -webkit-radial-gradient(center, ellipse closest-side, rgba(0, 0, 0, 0.2) 25%, transparent),
66         linear-gradient(to right, rgba(0, 0, 0, 0.0125), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.0125));
67     background-size: 125% 15px, 100% 1px;
68     background-position: top center, bottom center;
69     background-repeat: no-repeat;
70
71     height: 5px;
72     bottom: 22px;
73 }
74
75 .sidebar > .panel.navigation > .overflow-shadow.top {
76     top: 28px;
77     bottom: initial;
78 }
79
80 body.mac-platform.legacy .sidebar > .panel.navigation > .overflow-shadow.top {
81     top: 21px;
82     background-position: bottom center, top center;
83 }
84
85 .sidebar > .panel.navigation > .empty-content-placeholder {
86     position: absolute;
87     top: 0;
88     left: 0;
89     right: 0;
90     bottom: 28px;
91
92     display: -webkit-flex;
93
94     -webkit-justify-content: center;
95     -webkit-align-items: center;
96 }
97
98 body.mac-platform.legacy .sidebar > .panel.navigation > .empty-content-placeholder {
99     bottom: 21px;
100 }
101
102 .sidebar > .panel.navigation > .empty-content-placeholder > .message {
103     display: inline-block;
104     white-space: nowrap;
105
106     font-size: 13px;
107
108     color: white;
109     background-color: rgba(0, 0, 0, 0.15);
110     text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
111     box-shadow: inset rgba(0, 0, 0, 0.2) 0 1px 0, rgba(255, 255, 255, 0.4) 0 1px 0;
112
113     border-radius: 6px;
114     padding: 5px 15px 6px;
115 }
116
117 .navigation-sidebar-panel-content-tree-outline,
118 .navigation-sidebar-panel-content-tree-outline .children {
119     position: relative;
120
121     padding: 0;
122     margin: 0;
123
124     outline: none;
125
126     list-style: none;
127 }
128
129 .navigation-sidebar-panel-content-tree-outline .children {
130     display: none;
131 }
132
133 .navigation-sidebar-panel-content-tree-outline .children.expanded {
134     display: block;
135 }
136
137 .navigation-sidebar-panel-content-tree-outline .item {
138     position: relative;
139
140     height: 36px;
141     line-height: 34px;
142
143  /* The item depth padding style rules are generated by NavigationSidebarPanel.js.
144     Any changes to this padding needs to be changed there too. */
145
146     padding: 0 5px;
147
148     border-top: 1px solid transparent;
149
150     white-space: nowrap;
151 }
152
153 .navigation-sidebar-panel-content-tree-outline.hide-disclosure-buttons > .children {
154     display: none;
155 }
156
157 .navigation-sidebar-panel-content-tree-outline > .children.hide-disclosure-buttons > .children {
158     display: none;
159 }
160
161 .navigation-sidebar-panel-content-tree-outline:not(.hide-disclosure-buttons) .item:not(.parent) .icon {
162     margin-left: 16px;
163 }
164
165 .navigation-sidebar-panel-content-tree-outline.hide-disclosure-buttons .item.small {
166     padding-left: 8px;
167 }
168
169 .navigation-sidebar-panel-content-tree-outline .item .disclosure-button {
170     display: none;
171
172     float: left;
173
174     width: 16px;
175     height: 100%;
176
177     border: 0;
178
179     background-color: transparent;
180     background-image: -webkit-canvas(navigation-sidebar-panel-disclosure-triangle-closed-normal);
181     background-repeat: no-repeat;
182     background-position: center;
183     background-size: 13px 13px;
184
185     -webkit-appearance: none;
186 }
187
188 .navigation-sidebar-panel-content-tree-outline.hide-disclosure-buttons .item .disclosure-button {
189     display: none;
190 }
191
192 .navigation-sidebar-panel-content-tree-outline .item.parent .disclosure-button {
193     display: block;
194 }
195
196 .navigation-sidebar-panel-content-tree-outline:focus .item.selected .disclosure-button {
197     background-image: -webkit-canvas(navigation-sidebar-panel-disclosure-triangle-closed-selected) !important;
198 }
199
200 .navigation-sidebar-panel-content-tree-outline .item.expanded .disclosure-button {
201     background-image: -webkit-canvas(navigation-sidebar-panel-disclosure-triangle-open-normal);
202 }
203
204 .navigation-sidebar-panel-content-tree-outline:focus .item.selected.expanded .disclosure-button {
205     background-image: -webkit-canvas(navigation-sidebar-panel-disclosure-triangle-open-selected) !important;
206 }
207
208 .navigation-sidebar-panel-content-tree-outline .item .icon {
209     float: left;
210     position: relative;
211
212     width: 32px;
213     height: 32px;
214
215     margin-top: 1px;
216     margin-right: 3px;
217 }
218
219 .navigation-sidebar-panel-content-tree-outline .item .status {
220     float: right;
221
222     height: 16px;
223
224     margin-top: 9px;
225     margin-left: 4px;
226
227     line-height: 1em;
228 }
229
230 .navigation-sidebar-panel-content-tree-outline .item .status:empty {
231     display: none;
232 }
233
234 .navigation-sidebar-panel-content-tree-outline .item.selected {
235     background-color: rgb(212, 212, 212);
236 }
237
238 body.mac-platform.legacy .navigation-sidebar-panel-content-tree-outline .item.selected {
239     border-top: 1px solid rgb(162, 177, 201);
240
241     background-color: transparent;
242     background-image: linear-gradient(to bottom, rgb(175, 190, 213), rgb(130, 151, 182));
243     background-origin: padding;
244     background-clip: padding;
245 }
246
247 .navigation-sidebar-panel-content-tree-outline:focus .item.selected {
248     color: white;
249     background-color: rgb(0, 128, 252);
250 }
251
252 body.mac-platform.legacy .navigation-sidebar-panel-content-tree-outline:focus .item.selected {
253     background-color: transparent;
254     border-top: 1px solid rgb(148, 174, 193);
255     background-image: linear-gradient(to bottom, rgb(154, 180, 203), rgb(112, 139, 176));
256 }
257
258 body.window-inactive .navigation-sidebar-panel-content-tree-outline .item.selected {
259     background-color: rgb(212, 212, 212);
260 }
261
262 body.mac-platform.legacy.window-inactive .navigation-sidebar-panel-content-tree-outline .item.selected {
263     background-color: transparent;
264     border-top: 1px solid rgb(168, 168, 168);
265     background-image: linear-gradient(to bottom, rgb(194, 194, 194), rgb(158, 158, 158));
266 }
267
268 .navigation-sidebar-panel-content-tree-outline .item .titles {
269     position: relative;
270     top: 5px;
271
272     line-height: 11px;
273
274     padding-bottom: 1px;
275
276     text-overflow: ellipsis;
277     overflow: hidden;
278     white-space: nowrap;
279 }
280
281 .navigation-sidebar-panel-content-tree-outline .item .highlighted {
282     background-color: rgba(235, 215, 38, 0.2);
283     border-bottom: 1px solid rgb(237, 202, 71);
284 }
285
286 .navigation-sidebar-panel-content-tree-outline .item .titles.no-subtitle {
287     top: 10px;
288 }
289
290 .navigation-sidebar-panel-content-tree-outline .item .title::after {
291     content: "\A"; /* Newline */
292     white-space: pre;
293 }
294
295 .navigation-sidebar-panel-content-tree-outline .item .subtitle {
296     font-size: 9px;
297     color: rgba(0, 0, 0, 0.7);
298 }
299
300 .navigation-sidebar-panel-content-tree-outline .item.selected .subtitle {
301     color: rgba(255, 255, 255, 0.9);
302 }
303
304 .navigation-sidebar-panel-content-tree-outline .item .titles.no-subtitle .subtitle,
305 .navigation-sidebar-panel-content-tree-outline .item .subtitle:empty {
306     display: none;
307 }
308
309 .navigation-sidebar-panel-content-tree-outline.small .item,
310 .navigation-sidebar-panel-content-tree-outline .children.small .item,
311 .navigation-sidebar-panel-content-tree-outline .item.small {
312     height: 20px;
313 }
314
315 .navigation-sidebar-panel-content-tree-outline.small.two-line .item,
316 .navigation-sidebar-panel-content-tree-outline .children.small.two-line .item,
317 .navigation-sidebar-panel-content-tree-outline .item.small.two-line {
318     height: 26px;
319 }
320
321 .navigation-sidebar-panel-content-tree-outline.small .item .icon,
322 .navigation-sidebar-panel-content-tree-outline .children.small .item .icon,
323 .navigation-sidebar-panel-content-tree-outline .item.small .icon {
324     width: 16px;
325     height: 16px;
326 }
327
328 .navigation-sidebar-panel-content-tree-outline.small .item .status,
329 .navigation-sidebar-panel-content-tree-outline .children.small .item .status,
330 .navigation-sidebar-panel-content-tree-outline .item.small .status {
331     margin-top: 1px;
332 }
333
334 .navigation-sidebar-panel-content-tree-outline.small .item .status .indeterminate-progress-spinner,
335 .navigation-sidebar-panel-content-tree-outline .children.small .item .status .indeterminate-progress-spinner,
336 .navigation-sidebar-panel-content-tree-outline .item.small .status .indeterminate-progress-spinner {
337     margin-top: 1px;
338     width: 14px;
339     height: 14px;
340 }
341
342 .navigation-sidebar-panel-content-tree-outline.small .item .titles,
343 .navigation-sidebar-panel-content-tree-outline .children.small .item .titles,
344 .navigation-sidebar-panel-content-tree-outline .item.small .titles {
345     top: 2px;
346     line-height: normal;
347 }
348
349 .navigation-sidebar-panel-content-tree-outline.small.two-line .item .status,
350 .navigation-sidebar-panel-content-tree-outline .children.small.two-line .item .status,
351 .navigation-sidebar-panel-content-tree-outline .item.small.two-line .status {
352     margin-top: 4px;
353 }
354
355 .navigation-sidebar-panel-content-tree-outline.small.two-line .item .titles,
356 .navigation-sidebar-panel-content-tree-outline .children.small.two-line .item .titles,
357 .navigation-sidebar-panel-content-tree-outline .item.small.two-line .titles {
358     top: 0;
359     line-height: 11px;
360 }
361
362 .navigation-sidebar-panel-content-tree-outline .item.small.two-line .titles.no-subtitle {
363     top: 6px;
364 }
365
366 .navigation-sidebar-panel-content-tree-outline.small .item .subtitle,
367 .navigation-sidebar-panel-content-tree-outline .children.small .item .subtitle,
368 .navigation-sidebar-panel-content-tree-outline .item.small .subtitle {
369     font-size: inherit;
370 }
371
372 .navigation-sidebar-panel-content-tree-outline.small.two-line .item .icon,
373 .navigation-sidebar-panel-content-tree-outline .children.small.two-line .item .icon,
374 .navigation-sidebar-panel-content-tree-outline .item.small.two-line .icon {
375     margin-top: 4px;
376 }
377
378 .navigation-sidebar-panel-content-tree-outline.small:not(.two-line) .item .title::after,
379 .navigation-sidebar-panel-content-tree-outline .children.small:not(.two-line) .item .title::after,
380 .navigation-sidebar-panel-content-tree-outline .item.small:not(.two-line) .title::after {
381     content: "";
382 }
383
384 .navigation-sidebar-panel-content-tree-outline.small:not(.two-line) .item .subtitle::before,
385 .navigation-sidebar-panel-content-tree-outline .children.small:not(.two-line) .item .subtitle::before,
386 .navigation-sidebar-panel-content-tree-outline .item.small:not(.two-line) .subtitle::before {
387     content: " — ";
388 }