1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @import url
(chrome://devtools
/skin
/breadcrumbs
.css
);
8 --table-splitter-color: rgba
(255,255,255,0.15);
9 --table-zebra-background: rgba
(255,255,255,0.05);
10 --sidemenu-selected-arrow: url
(images
/item-arrow-dark-ltr
.svg
);
11 --sidemenu-selected-arrow-rtl: url
(images
/item-arrow-dark-rtl
.svg
);
15 --table-splitter-color: rgba
(0,0,0,0.15);
16 --table-zebra-background: rgba
(0,0,0,0.05);
17 --sidemenu-selected-arrow: url
(images
/item-arrow-ltr
.svg
);
18 --sidemenu-selected-arrow-rtl: url
(images
/item-arrow-rtl
.svg
);
21 /* Generic pane helpers */
23 .generic-toggled-pane {
24 margin-inline-start: 0 !important
;
25 /* Unfortunately, transitions don't work properly with locale-aware properties,
26 so both the left and right margins are set via js, while the start margin
27 is always overridden here. */
30 .generic-toggled-pane[animated] {
31 transition: margin
0.25s ease-in-out
;
34 /* Responsive container */
36 .devtools-responsive-container {
42 .devtools-main-content {
46 .devtools-main-content
,
47 .devtools-sidebar-tabs {
48 /* Prevent some children that should be hidden from remaining visible as this is shrunk (Bug 971959) */
52 @media (min-width: 701px) {
53 .devtools-responsive-container .generic-toggled-pane {
54 /* To hide generic-toggled-pane, negative margins are applied dynamically.
55 * In the default horizontal layout, the pane is on the side and should be
56 * hidden using negative margin-inline-end only.
58 margin-top: 0 !important
;
59 margin-bottom: 0 !important
;
63 @media (max-width: 700px) {
64 .devtools-responsive-container {
65 flex-direction: column
;
68 .devtools-responsive-container > .devtools-side-splitter {
69 /* This is a normally vertical splitter, but we have turned it horizontal
70 due to the smaller resolution */
71 min-height: calc
(var
(--devtools-splitter-top-width
) +
72 var
(--devtools-splitter-bottom-width
) + 1px);
73 border-top-width: var
(--devtools-splitter-top-width
);
74 border-bottom-width: var
(--devtools-splitter-bottom-width
);
75 margin-top: calc
(-1 * var
(--devtools-splitter-top-width
) - 1px);
76 margin-bottom: calc
(-1 * var
(--devtools-splitter-bottom-width
));
78 /* Reset the vertical splitter styles */
80 border-inline-end-width: 0;
81 border-inline-start-width: 0;
83 margin-inline-start: 0;
85 /* In some edge case the cursor is not changed to ns-resize */
89 .devtools-responsive-container > .devtools-sidebar-tabs:not(.pane-collapsed) {
90 /* When the panel is collapsed min/max height should not be applied because
91 collapsing relies on negative margins, which implies constant height. */
96 .devtools-responsive-container .generic-toggled-pane {
97 /* To hide generic-toggled-pane, negative margins are applied dynamically.
98 * If a vertical layout, the pane is on the bottom and should be hidden
99 * using negative bottom margin only.
101 margin-inline-end: 0 !important
;
107 .variables-view-container {
108 /* Hack: force hardware acceleration */
109 transform: translateZ
(1px);
116 .variables-view-empty-notice {
120 .variables-view-empty-notice {
121 color: var
(--theme-text-color-alt
);
124 .variables-view-scope:focus
> .title
,
125 .variable-or-property:focus > .title {
126 background-color: var
(--theme-selection-background
);
127 color: var
(--theme-selection-color
);
130 .variables-view-scope > .title {
131 border-top-width: 1px;
132 border-top-style: solid
;
136 .variables-view-scope > .title:-moz-locale-dir(rtl) {
140 /* Custom scope stylings */
142 .variables-view-watch-expressions .title > .name {
146 /* Generic variables traits */
148 .variables-view-variable:not(:last-child) {
149 border-bottom: 1px solid var
(--theme-splitter-color
);
152 .variables-view-variable > .title > .name {
156 /* Generic variables *and* properties traits */
158 .variable-or-property:focus > .title > label {
159 color: inherit
!important
;
162 .variables-view-container .theme-twisty {
166 .variable-or-property > .title > .theme-twisty {
167 margin-inline-start: 5px;
170 .variables-view-container .variables-view-element-details .theme-twisty:not([open]):-moz-locale-dir(rtl) {
171 transform: rotate
(-90deg);
174 .variable-or-property:not([untitled]) > .variables-view-element-details {
175 margin-inline-start: 7px;
178 /* Traits applied when variables or properties are changed or overridden */
180 .variable-or-property:not([overridden]) {
181 transition: background
1s ease-in-out
;
184 .variable-or-property:not([overridden])[changed] {
185 transition-duration: .4s;
188 .variable-or-property[overridden] {
189 background: rgba
(128,128,128,0.05);
192 .variable-or-property[overridden] .title > label {
193 /* Cross out the title for this variable and all child properties. */
195 text-decoration: line-through
;
196 border-bottom: none
!important
;
197 color: rgba
(128,128,128,0.9);
201 /* Traits applied when variables or properties are editable */
203 .variable-or-property[editable] > .title > .value {
207 .variable-or-property[overridden] .title > .value {
208 /* Disallow editing this variable and all child properties. */
209 pointer-events: none
;
212 /* Custom configurable/enumerable/writable or frozen/sealed/extensible
213 * variables and properties */
215 .variable-or-property[non-enumerable]:not([self], [pseudo-item]) > .title > .name {
219 .variable-or-property-non-writable-icon {
220 background: url
("chrome://devtools/skin/images/vview-lock.svg") no-repeat
;
221 background-size: cover
;
224 -moz-context-properties: fill
;
225 fill: var
(--theme-icon-dimmed-color
);
228 .variable-or-property-frozen-label
,
229 .variable-or-property-sealed-label
,
230 .variable-or-property-non-extensible-label {
232 padding-inline-end: 4px;
235 .variable-or-property:not
(:focus
) > .title
> .variable-or-property-frozen-label
,
236 .variable-or-property:not
(:focus
) > .title
> .variable-or-property-sealed-label
,
237 .variable-or-property:not(:focus) > .title > .variable-or-property-non-extensible-label {
243 .variables-view-container[aligned-values] .title > .separator {
247 .variables-view-container[aligned-values] .title > .value {
252 .variables-view-container[aligned-values] .title > .element-value-input {
253 width: calc
(70vw - 10px);
258 .variables-view-open-inspector {
262 .variables-view-edit
,
263 .variables-view-add-property {
267 .variable-or-property-frozen-label
,
268 .variable-or-property-sealed-label
,
269 .variable-or-property-non-extensible-label
,
270 .variable-or-property-non-writable-icon {
274 .variables-view-delete {
278 .variables-view-container
[actions-first
] .variables-view-delete
,
279 .variables-view-container
[actions-first
] .variables-view-add-property
,
280 .variables-view-container[actions-first] .variables-view-open-inspector {
284 .variables-view-container[actions-first] [invisible] {
288 /* Variables and properties tooltips */
290 .variable-or-property > tooltip > label {
294 .variable-or-property
[non-enumerable
] > tooltip
> label
.enumerable
,
295 .variable-or-property
[non-configurable
] > tooltip
> label
.configurable
,
296 .variable-or-property
[non-writable
] > tooltip
> label
.writable
,
297 .variable-or-property[non-extensible] > tooltip > label.extensible {
299 text-decoration: line-through
;
302 .variable-or-property[overridden] > tooltip > label.overridden {
303 padding-inline-start: 4px;
304 border-inline-start: 1px dotted
#000;
307 .variable-or-property[safe-getter] > tooltip > label.WebIDL {
308 padding-inline-start: 4px;
309 border-inline-start: 1px dotted
#000;
313 /* Variables and properties editing */
314 .variables-view-delete
,
315 .variables-view-edit
,
316 .variables-view-open-inspector {
319 background-size: cover
;
320 background-repeat: no-repeat
;
322 -moz-context-properties: fill
;
323 fill: var
(--theme-icon-dimmed-color
);
326 .variables-view-open-inspector {
327 background-size: 15px;
330 .variables-view-delete:hover
,
331 .variables-view-edit:hover
,
332 .variables-view-open-inspector:hover {
333 fill: var
(--theme-icon-color
);
336 .variables-view-delete:active
,
337 .variables-view-edit:active
,
338 .variables-view-open-inspector:active {
339 fill: var
(--theme-icon-checked-color
);
342 .variables-view-delete {
343 background-image: url
("chrome://devtools/skin/images/vview-delete.svg");
346 .variables-view-edit {
347 background-image: url
("chrome://devtools/skin/images/vview-edit.svg");
350 .variables-view-open-inspector {
351 background-image: url
("chrome://devtools/skin/images/open-inspector.svg");
354 /* Variables and properties input boxes */
356 .variable-or-property > .title > .separator + .element-value-input {
357 margin-inline-start: -2px !important
;
358 margin-inline-end: 2px !important
;
361 .variable-or-property > .title > .separator[hidden=true] + .element-value-input {
362 margin-inline-start: 4px !important
;
363 margin-inline-end: 2px !important
;
366 .element-name-input {
367 margin-inline-start: -2px !important
;
368 margin-inline-end: 2px !important
;
372 .element-value-input
,
373 .element-name-input {
374 border: 1px solid rgba
(128, 128, 128, .5) !important
;
379 /* Variables and properties searching */
381 .variable-or-property[unmatched] {
390 .table-widget-body > .devtools-side-splitter {
391 background-color: transparent
;
403 .table-widget-body > splitter {
407 .table-widget-body[empty="empty"] {
413 .table-widget-column-header
,
416 border-inline-end: 1px solid var
(--table-splitter-color
) !important
;
417 line-height: unset
!important
;
420 .table-widget-column:not([hidden]) {
424 /* Table widget column header colors are taken from netmonitor.inc.css to match
425 the look of both the tables. */
427 .table-widget-column-header {
432 padding: 5px 4px 0 !important
;
435 font-weight: inherit
!important
;
436 border-image: linear-gradient
(transparent
15%,
437 var
(--theme-splitter-color
) 15%,
438 var
(--theme-splitter-color
) 85%,
440 transparent calc
(100% - 1px),
441 var
(--theme-splitter-color
) calc
(100% - 1px)) 1 1;
442 background-repeat: no-repeat
;
445 .table-widget-column-header:not([sorted]):hover {
446 background-image: linear-gradient
(rgba
(0,0,0,0.1),rgba
(0,0,0,0.1));
449 .table-widget-column-header[sorted] {
450 background-color: var
(--theme-selection-background
);
451 color: var
(--theme-selection-color
);
452 border-image: linear-gradient
(var
(--theme-splitter-color
), var
(--theme-splitter-color
)) 1 1;
453 box-shadow: -0.5px -0.5px 0 0.5px var
(--theme-splitter-color
);
454 background-position: right
6px center
;
457 .table-widget-column-header[sorted]:-moz-locale-dir(rtl) {
458 background-position: 6px center
;
461 .table-widget-column-header[sorted=ascending] {
462 background-image: url
("chrome://devtools/skin/images/sort-ascending-arrow.svg");
465 .table-widget-column-header[sorted=descending] {
466 background-image: url
("chrome://devtools/skin/images/sort-descending-arrow.svg");
469 .theme-dark .table-widget-column[readonly] {
470 background-color: rgba
(255,255,255,0.1);
473 .theme-light .table-widget-column[readonly] {
474 background-color: rgba
(0,0,0,0.1);
477 .table-widget-body .devtools-side-splitter:last-of-type {
487 -moz-user-focus: normal
;
490 .table-widget-cell[hidden] {
494 .table-widget-cell.even:not(.theme-selected) {
495 background-color: var
(--table-zebra-background
);
498 :root:not
(.no-animate
) .table-widget-cell
.flash-out
{
499 animation: flash-out
0.5s ease-in
;
502 @keyframes flash-out
{
504 background: var
(--theme-contrast-background
);
508 /* Empty text and initial text */
510 .table-widget-empty-text {
515 .table-widget-body:empty
+ .table-widget-empty-text:not
([value
=""]),
516 .table-widget-body[empty] + .table-widget-empty-text:not([value=""]) {
522 .tree-widget-container {
529 .tree-widget-container:-moz-focusring
,
530 .tree-widget-container *:-moz-focusring {
534 .tree-widget-empty-text {
537 background: transparent
;
538 pointer-events: none
;
543 .tree-widget-container .tree-widget-item {
545 /* OSX has line-height 14px by default, which causes weird alignment issues
546 * because of 20px high icons. thus making line-height consistent with that of
550 display: inline-block
;
552 word-break: keep-all
; /* To prevent long urls like http://foo.com/bar from
553 breaking in multiple lines */
556 .tree-widget-container .tree-widget-children {
562 .tree-widget-item[level="1"] {
567 .tree-widget-item::before {
573 background-image: url
("chrome://devtools/skin/images/arrow.svg");
574 background-position: 50% 50%;
575 background-repeat: no-repeat
;
576 background-size: 10px;
577 -moz-context-properties: fill
;
578 fill: var
(--theme-icon-dimmed-color
);
580 transition: transform
125ms ease
;
581 transform: rotate
(-90deg);
584 .tree-widget-item:-moz-locale-dir(rtl)::before {
585 transform: rotate
(90deg);
588 .tree-widget-item[empty]::before {
589 background: transparent
;
592 .tree-widget-item[expanded]::before {
596 .tree-widget-item.theme-selected::before {
600 .tree-widget-item + ul {
602 animation: collapse-tree-item
0.2s;
606 .tree-widget-item[expanded] + ul {
607 animation: expand-tree-item
0.3s;
611 @keyframes collapse-tree-item
{
620 @keyframes expand-tree-item
{
629 /* Indentation of child items in the tree */
632 .tree-widget-item[level] + ul > li > .tree-widget-item {
633 padding-inline-start: 98px;
637 .tree-widget-item[level="1"] + ul > li > .tree-widget-item {
638 padding-inline-start: 14px;
642 .tree-widget-item[level="2"] + ul > li > .tree-widget-item {
643 padding-inline-start: 28px;
647 .tree-widget-item[level="3"] + ul > li > .tree-widget-item {
648 padding-inline-start: 42px;
652 .tree-widget-item[level="4"] + ul > li > .tree-widget-item {
653 padding-inline-start: 56px;
657 .tree-widget-item[level="5"] + ul > li > .tree-widget-item {
658 padding-inline-start: 70px;
662 .tree-widget-item[level="6"] + ul > li > .tree-widget-item {
663 padding-inline-start: 84px;
666 /* Custom icons for certain tree items indicating the type of the item */
668 .tree-widget-item[type]::after {
673 margin-inline-end: 4px;
674 background-repeat: no-repeat
;
675 background-size: contain
;
676 -moz-context-properties: fill
;
680 .tree-widget-item[type="dir"]::after {
681 background-image: url
(chrome://devtools
/skin
/images
/folder
.svg
);
684 .tree-widget-item[type="url"]::after {
685 background-image: url
(chrome://devtools
/skin
/images
/globe
.svg
);
688 .tree-widget-item[type="store"]::after {
689 background-image: url
(chrome://devtools
/skin
/images
/datastore
.svg
);