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/. */
6 --eyedropper-image: url(images/command-eyedropper.svg);
14 --breadcrumbs-border-color: #9C9CFF;
18 box-sizing: border-box;
21 /* Make sure to hide scroll bars for the parent window */
26 /* The main Inspector panel container. */
27 .inspector-responsive-container {
31 /* The main panel layout. This area consists of a toolbar, markup view
32 and breadcrumbs bar. */
33 #inspector-main-content {
34 /* Subtract 1 pixel from the panel height. It's puzzling why this
35 is needed, but if not presented the entire Inspector panel
36 content jumps 1 pixel up when the Toolbox is opened. */
37 height: calc(100% - 1px);
38 /* This min-width avoids a visual glitch when moving the splitter quickly to the left.
39 See bug 1307408 comment #12. */
42 flex-direction: column;
46 /* Inspector Panel Splitter */
48 #inspector-splitter-box {
54 /* Minimum dimensions for the Inspector splitter areas. */
55 #inspector-splitter-box .uncontrolled,
56 #inspector-splitter-box .controlled {
62 /* Set a minimum width of 200px for tab content to avoid breaking the layout when resizing
63 the sidebar tab to small width. If a specific panel supports smaller width, this should
64 be overridden on a panel-by-panel basis */
69 #inspector-splitter-box .controlled.pane-collapsed {
73 /* Use flex layout for the Inspector toolbar. For now, it's done
74 specifically for the Inspector toolbar since general rule applied
75 on .devtools-toolbar breaks breadcrumbs and also toolbars in other
76 panels (e.g. webconsole, debugger), these are not ready for HTML
78 #inspector-toolbar.devtools-toolbar {
82 #inspector-toolbar.devtools-toolbar .devtools-toolbar-spacer {
84 display: inline-block;
87 /* Add element toolbar button */
88 #inspector-element-add-button::before {
89 background-image: url("chrome://devtools/skin/images/add.svg");
90 list-style-image: url("chrome://devtools/skin/images/add.svg");
91 -moz-user-focus: normal;
94 #inspector-searchlabel {
98 /* Make sure the text is vertically centered in Inspector's
99 search box. This can be removed when the search box is
101 See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1265759 */
102 #inspector-searchbox {
110 /* Eyedropper toolbar button */
112 #inspector-eyedropper-toggle {
113 /* Required to display tooltip when eyedropper is disabled in non-HTML documents */
114 pointer-events: auto;
117 #inspector-eyedropper-toggle::before {
118 background-image: var(--eyedropper-image);
121 #inspector-sidebar-toggle-box {
122 line-height: initial;
125 #inspector-breadcrumbs-toolbar {
127 border-bottom-width: 0px;
128 /* border-top-width: 1px;
129 border-top-color: var(--breadcrumbs-border-color);*/
130 /* Bug 1262668 - Use the same background as the body so the breadcrumbs toolbar doesn't
131 get mistaken as a splitter */
132 background-color: var(--theme-alternate-toolbar-background);
133 background-image: none;
134 background-size: auto;
139 /* Remove LCARS startcap and endcap */
140 div#inspector-breadcrumbs-toolbar::before,
141 div#inspector-breadcrumbs-toolbar::after {
145 #inspector-breadcrumbs-toolbar,
146 #inspector-breadcrumbs-toolbar * {
147 box-sizing: border-box;
150 #inspector-breadcrumbs {
153 /* Break out of the XUL flexbox, so the splitter can still shrink the
154 markup view even if the contents of the breadcrumbs are wider than
163 #inspector-breadcrumbs .scrollbutton-up,
164 #inspector-breadcrumbs .scrollbutton-down {
170 #inspector-breadcrumbs .html-arrowscrollbox-inner {
176 #inspector-breadcrumbs .breadcrumbs-widget-item {
179 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
182 #inspector-sidebar-container {
196 /* Override `-moz-user-focus:ignore;` from toolkit/content/minimal-xul.css */
197 .inspector-tabpanel > * {
198 -moz-user-focus: normal;
201 /* "no results" warning message displayed in the ruleview and in the computed view */
203 #ruleview-no-results,
204 #computedview-no-results {
205 color: var(--theme-body-color-inactive);
222 #markup-box > iframe {