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(variables.css); /* No idea why this is needed but we get error messages without it */
8 --eyedropper-image: url(images/command-eyedropper.svg);
16 --breadcrumbs-border-color: #9C9CFF;
20 box-sizing: border-box;
23 /* Make sure to hide scroll bars for the parent window */
28 /* The main Inspector panel container. */
29 .inspector-responsive-container {
33 /* The main panel layout. This area consists of a toolbar, markup view
34 and breadcrumbs bar. */
35 #inspector-main-content {
36 /* Subtract 1 pixel from the panel height. It's puzzling why this
37 is needed, but if not presented the entire Inspector panel
38 content jumps 1 pixel up when the Toolbox is opened. */
39 height: calc(100% - 1px);
40 /* This min-width avoids a visual glitch when moving the splitter quickly to the left.
41 See bug 1307408 comment #12. */
44 flex-direction: column;
48 /* Inspector Panel Splitter */
50 #inspector-splitter-box {
56 /* Minimum dimensions for the Inspector splitter areas. */
57 #inspector-splitter-box .uncontrolled,
58 #inspector-splitter-box .controlled {
64 /* Set a minimum width of 200px for tab content to avoid breaking the layout when resizing
65 the sidebar tab to small width. If a specific panel supports smaller width, this should
66 be overridden on a panel-by-panel basis */
71 #inspector-splitter-box .controlled.pane-collapsed {
75 /* Use flex layout for the Inspector toolbar. For now, it's done
76 specifically for the Inspector toolbar since general rule applied
77 on .devtools-toolbar breaks breadcrumbs and also toolbars in other
78 panels (e.g. webconsole, debugger), these are not ready for HTML
80 #inspector-toolbar.devtools-toolbar {
84 #inspector-toolbar.devtools-toolbar .devtools-toolbar-spacer {
86 display: inline-block;
89 /* Add element toolbar button */
90 #inspector-element-add-button::before {
91 background-image: url("chrome://devtools/skin/images/add.svg");
92 list-style-image: url("chrome://devtools/skin/images/add.svg");
93 -moz-user-focus: normal;
96 #inspector-searchlabel {
100 /* Make sure the text is vertically centered in Inspector's
101 search box. This can be removed when the search box is
103 See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1265759 */
104 #inspector-searchbox {
112 /* Eyedropper toolbar button */
114 #inspector-eyedropper-toggle {
115 /* Required to display tooltip when eyedropper is disabled in non-HTML documents */
116 pointer-events: auto;
119 #inspector-eyedropper-toggle::before {
120 background-image: var(--eyedropper-image);
123 #inspector-sidebar-toggle-box {
124 line-height: initial;
127 #inspector-breadcrumbs-toolbar {
129 border-bottom-width: 0px;
130 /* border-top-width: 1px;
131 border-top-color: var(--breadcrumbs-border-color);*/
132 /* Bug 1262668 - Use the same background as the body so the breadcrumbs toolbar doesn't
133 get mistaken as a splitter */
134 background-color: var(--theme-alternate-toolbar-background);
135 background-image: none;
136 background-size: auto;
141 /* Remove LCARS startcap and endcap */
142 div#inspector-breadcrumbs-toolbar::before,
143 div#inspector-breadcrumbs-toolbar::after {
147 #inspector-breadcrumbs-toolbar,
148 #inspector-breadcrumbs-toolbar * {
149 box-sizing: border-box;
152 #inspector-breadcrumbs {
155 /* Break out of the XUL flexbox, so the splitter can still shrink the
156 markup view even if the contents of the breadcrumbs are wider than
165 #inspector-breadcrumbs .scrollbutton-up,
166 #inspector-breadcrumbs .scrollbutton-down {
172 #inspector-breadcrumbs .html-arrowscrollbox-inner {
178 #inspector-breadcrumbs .breadcrumbs-widget-item {
181 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
184 #inspector-sidebar-container {
198 /* Override `-moz-user-focus:ignore;` from toolkit/content/minimal-xul.css */
199 .inspector-tabpanel > * {
200 -moz-user-focus: normal;
203 /* "no results" warning message displayed in the ruleview and in the computed view */
205 #ruleview-no-results,
206 #computedview-no-results {
207 color: var(--theme-body-color-inactive);
224 #markup-box > iframe {