Bug 1890689 accumulate input in LargerReceiverBlockSizeThanDesiredBuffering GTest...
[gecko.git] / devtools / client / themes / inspector.css
bloba9a79273dae1e7f083d82e72fdb29f4df9aa3bdc
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 :root {
6 --min-container-width: 300px;
7 --pseudo-class-text-color: var(--yellow-75);
9 &.theme-dark {
10 --pseudo-class-text-color: var(--yellow-50);
14 * {
15 box-sizing: border-box;
18 /* Make sure to hide scroll bars for the parent window */
19 window {
20 overflow: hidden;
23 /* The main Inspector panel container. */
24 .inspector-responsive-container {
25 height: 100vh;
26 overflow: hidden;
29 /* The main panel layout. This area consists of a toolbar, markup view
30 and breadcrumbs bar. */
31 #inspector-main-content {
32 /* Subtract 1 pixel from the panel height. It's puzzling why this
33 is needed, but if not presented the entire Inspector panel
34 content jumps 1 pixel up when the Toolbox is opened. */
35 height: calc(100% - 1px);
36 /* This min-width avoids a visual glitch when moving the splitter quickly to the left.
37 See bug 1307408 comment #12. */
38 min-width: 125px;
39 display: flex;
40 flex-direction: column;
43 /* Inspector Panel Splitter */
45 #inspector-splitter-box {
46 height: 100vh;
47 width: 100vw;
48 position: fixed;
51 /* Minimum dimensions for the Inspector splitter areas. */
52 #inspector-splitter-box .uncontrolled,
53 #inspector-splitter-box .controlled {
54 min-height: 50px;
55 min-width: 50px;
56 overflow-x: hidden;
59 /* Set a minimum width of 200px for tab content to avoid breaking the layout when resizing
60 the sidebar tab to small width. If a specific panel supports smaller width, this should
61 be overridden on a panel-by-panel basis */
62 .inspector-tabpanel {
63 min-width: 200px;
66 #inspector-splitter-box .controlled.pane-collapsed {
67 visibility: collapse;
70 #inspector-splitter-box .sidebar-toggle::before {
71 background-image: url("chrome://devtools/skin/images/close-3-pane.svg");
72 transform: unset;
75 #inspector-splitter-box .sidebar-toggle.pane-collapsed::before {
76 background-image: url("chrome://devtools/skin/images/open-3-pane.svg");
79 /* Flip the icon horizontally when in RTL mode */
80 #inspector-splitter-box .sidebar-toggle:dir(rtl) {
81 transform: scaleX(-1);
84 #inspector-searchlabel-container {
85 display: flex;
88 #inspector-searchlabel-container[hidden] {
89 display: none;
92 #inspector-searchlabel {
93 padding: 0 3px;
96 /* Add element toolbar button */
97 #inspector-element-add-button::before {
98 background-image: url("chrome://devtools/skin/images/add.svg");
99 background-position: center;
100 background-size: 14px;
101 -moz-user-focus: normal;
104 /* Eyedropper toolbar button */
106 #inspector-eyedropper-toggle {
107 /* Required to display tooltip when eyedropper is disabled in non-HTML documents */
108 pointer-events: auto;
111 #inspector-eyedropper-toggle::before {
112 background-image: url(images/command-eyedropper.svg);
113 background-position: center;
114 background-size: 14px;
117 #inspector-breadcrumbs-toolbar {
118 padding: 0px;
119 border-bottom-width: 0px;
120 border-top-width: 1px;
121 border-top-color: var(--theme-splitter-color);
122 /* Bug 1262668 - Use the same background as the body so the breadcrumbs toolbar doesn't
123 get mistaken as a splitter */
124 background-color: var(--theme-body-background);
125 display: block;
126 position: relative;
129 #inspector-breadcrumbs-toolbar,
130 #inspector-breadcrumbs-toolbar * {
131 box-sizing: border-box;
132 direction: ltr;
135 #inspector-breadcrumbs {
136 display: flex;
137 outline-offset: -2px;
138 /* Break out of the XUL flexbox, so the splitter can still shrink the
139 markup view even if the contents of the breadcrumbs are wider than
140 the new width. */
141 position: absolute;
142 top: 0;
143 left: 0;
144 bottom: 0;
145 right: 0;
148 #inspector-breadcrumbs .scrollbutton-up,
149 #inspector-breadcrumbs .scrollbutton-down {
150 flex: 0;
151 display: flex;
152 align-items: center;
155 #inspector-breadcrumbs .html-arrowscrollbox-inner {
156 flex: 1;
157 display: flex;
158 overflow: hidden;
161 #inspector-breadcrumbs .breadcrumbs-widget-item {
162 white-space: nowrap;
163 flex-shrink: 0;
166 #inspector-rules-container,
167 #inspector-sidebar-container {
168 overflow: hidden;
169 position: relative;
170 height: 100%;
173 #inspector-rules-sidebar,
174 #inspector-sidebar {
175 position: absolute;
176 top: 0;
177 bottom: 0;
178 left: 0;
179 right: 0;
182 /* Override `-moz-user-focus:ignore;` from toolkit/content/xul.css */
183 .inspector-tabpanel > * {
184 -moz-user-focus: normal;
187 /* Markup Box */
189 iframe {
190 border: 0;
193 #markup-box {
194 width: 100%;
195 flex: 1;
196 min-height: 0;
199 #markup-box > iframe {
200 height: 100%;
201 width: 100%;
204 /* Extension Sidebar */
205 .inspector-tabpanel.extension-sidebar {
206 height: 100%;
207 overflow-y: auto;
210 /* Used for both the computed view and the rule view, to truncate extremely
211 long base64 URLs and other unexpectedly long text properties. */
212 .propertyvalue-long-text {
213 /* Force inline-block to be able to set a max-width. */
214 display: inline-block;
215 /* Arbitrary max-width, this should allow the value to be inlined with the
216 property name in very wide containers */
217 max-width: 80%;
218 /* Add ellipsis. */
219 overflow: hidden;
220 text-overflow: ellipsis;
221 /* Introducing display: inline-block; shifts the vertical alignment, force to
222 align it to the parent's text */
223 vertical-align: text-top;
224 /* Force the long text to be rendered on a single line. */
225 white-space: nowrap;