Bug 1890689 accumulate input in LargerReceiverBlockSizeThanDesiredBuffering GTest...
[gecko.git] / devtools / client / themes / styleeditor.css
blob5915b760ad076fbbf7b0bf7c92fb6f388bd2274d
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 #style-editor-chrome {
6 flex: 1;
9 .splitview-nav > li,
10 .stylesheet-info,
11 .stylesheet-more,
12 .stylesheet-rule-count,
13 li.splitview-active > hgroup > .stylesheet-more > h3 > .stylesheet-saveButton,
14 li:hover > hgroup > .stylesheet-more > h3 > .stylesheet-saveButton {
15 display: flex;
18 .devtools-toolbar > spacer {
19 flex: 1;
22 .style-editor-newButton {
23 list-style-image: url(images/add.svg);
26 .style-editor-importButton {
27 list-style-image: url(images/import.svg);
30 /* Filter input */
31 #style-editor-chrome toolbar .devtools-searchbox {
32 /* Adjust default focused styling as it looks a bit off */
33 outline-offset: -2px;
35 & > .devtools-filterinput {
36 box-shadow: none;
40 .stylesheet-details-container {
41 flex: 1;
42 min-width: 0;
43 min-height: 0;
46 .stylesheet-editor-status {
47 display: flex;
48 align-items: center;
49 border-block-start: 1px solid var(--theme-splitter-color) !important;
50 border-block-end: none !important;
52 /* Only show the editor toolbar if there's a stylesheet editor */
53 .devtools-main-content:empty + & {
54 display: none;
57 .style-editor-prettyPrintButton.devtools-button {
58 margin: 0;
60 * common.css sets a pointer-events:none on disabled button,
61 * but here we want the title to be displayed since it gives extra information.
63 pointer-events: all;
65 &::before {
66 background-image: url(chrome://devtools/content/debugger/images/prettyPrint.svg);
71 .stylesheet-at-rules-container {
72 overflow-y: auto;
73 min-width: 0;
74 min-height: 0;
77 .stylesheet-error-message {
78 display: none;
81 li.error > .stylesheet-info > .stylesheet-more > .stylesheet-error-message {
82 display: block;
85 .stylesheet-title,
86 .stylesheet-name {
87 text-decoration: none;
90 .stylesheet-name {
91 font-size: 13px;
92 white-space: nowrap;
95 .stylesheet-name > label {
96 display: inline;
97 cursor: pointer;
100 .stylesheet-info > h1 {
101 flex: 1;
104 .stylesheet-info a.stylesheet-name:focus-visible {
105 outline-offset: -2px;
108 .splitview-nav > li > hgroup.stylesheet-info {
109 justify-content: center;
110 /* This prevents stylesheets with long names from breaking the layout of
111 the StyleEditor sources sidebar. */
112 overflow: hidden;
115 .stylesheet-more > spacer {
116 flex: 1;
119 .stylesheet-title,
120 .stylesheet-name,
121 .stylesheet-rule-count,
122 .stylesheet-linked-file,
123 .stylesheet-saveButton {
124 color: var(--theme-body-color);
127 .stylesheet-saveButton {
128 display: none;
129 margin-top: 0px;
130 margin-bottom: 0px;
131 text-decoration: underline;
132 cursor: pointer;
135 .splitview-active .stylesheet-title,
136 .splitview-active .stylesheet-name,
137 .theme-light .splitview-active .stylesheet-rule-count,
138 .theme-light .splitview-active .stylesheet-linked-file,
139 .theme-light .splitview-active .stylesheet-saveButton {
140 color: var(--theme-selection-color);
143 .splitview-nav:focus {
144 outline: 0; /* focus ring is on the stylesheet name */
147 .splitview-nav > li {
148 flex-direction: row;
151 .splitview-nav > li > hgroup {
152 display: flex;
153 flex-direction: column;
154 flex: 1;
157 .splitview-nav > li.unsaved > hgroup .stylesheet-name {
158 font-style: italic;
161 .splitview-nav:-moz-locale-dir(ltr) > li.unsaved > hgroup .stylesheet-name:before,
162 .splitview-nav:-moz-locale-dir(rtl) > li.unsaved > hgroup .stylesheet-name:after {
163 font-style: italic;
166 .splitview-nav.empty > p {
167 padding: 0 10px;
170 .stylesheet-sidebar {
171 max-width: 400px;
172 min-width: 100px;
173 border-color: var(--theme-splitter-color);
176 .at-rule-label {
177 display: grid;
179 * +----------------------------------------------+
180 * | Rule information | line number |
181 * +----------------------------------------------+
183 grid-template-columns: 1fr max-content;
184 padding: 4px;
185 border-bottom: 1px solid var(--theme-splitter-color);
186 cursor: pointer;
187 word-break: break-word;
190 .media-responsive-mode-toggle {
191 color: var(--theme-highlight-blue);
192 text-decoration: underline;
195 .at-rule-line {
196 padding-inline-start: 4px;
199 .media-condition-unmatched {
200 opacity: 0.4;
203 .stylesheet-toggle {
204 display: flex;
205 cursor: pointer;
206 padding: 8px 0;
207 margin: 0 8px;
208 background-image: url(images/eye-opened.svg);
209 background-repeat: no-repeat;
210 background-clip: content-box;
211 background-position: center;
212 background-size: 16px;
213 width: 24px;
214 height: 40px;
215 flex-shrink: 0;
217 /* The icon color should always match the text color. */
218 -moz-context-properties: fill, stroke;
219 fill: currentColor;
220 stroke: currentColor;
223 .disabled > .stylesheet-toggle {
224 background-image: url(images/eye-closed.svg);
227 .stylesheet-system > .stylesheet-toggle {
228 /* Override the default "color: grayText" from [disabled] browser style */
229 color: currentColor;
230 cursor: auto;
231 opacity: 0.3;
234 .stylesheet-linked-file:not(:empty){
235 margin-inline-end: 0.4em;
238 .stylesheet-linked-file:not(:empty):before {
239 margin-inline-start: 0.4em;
240 content: " ↳ ";
243 li.unsaved > hgroup > h1 > .stylesheet-name:before {
244 content: "*";
247 li.linked-file-error .stylesheet-linked-file {
248 text-decoration: line-through;
251 li.linked-file-error .stylesheet-linked-file:after {
252 font-size: 110%;
253 content: " ✘";
256 li.linked-file-error .stylesheet-rule-count {
257 visibility: hidden;
260 .stylesheet-more > h3 {
261 font-size: 11px;
262 margin-inline-end: 2px;
265 .placeholder a {
266 text-decoration: underline;
271 h3 {
272 font-size: inherit;
273 font-weight: normal;
274 margin: 0;
275 padding: 0;
278 @media (max-width: 700px) {
279 .stylesheet-sidebar {
280 width: 150px;
284 /* portrait mode */
285 @media (max-width: 550px) {
286 li.splitview-active > hgroup > .stylesheet-more > .stylesheet-rule-count,
287 li:hover > hgroup > .stylesheet-more > .stylesheet-rule-count {
288 display: none;
291 .splitview-nav {
292 box-shadow: none;
295 .splitview-nav > li.splitview-active {
296 background-size: 0 0, 0 0, auto;
299 .stylesheet-toggle {
300 padding: 0;
301 height: 24px;
304 .splitview-nav > li > hgroup.stylesheet-info {
305 align-items: baseline;
306 flex-direction: row;
307 flex: 1;
310 .stylesheet-sidebar {
311 width: 180px;
314 .stylesheet-more {
315 flex: 1;
316 justify-content: flex-end;
319 .stylesheet-more > spacer {
320 flex: none;
324 .source-editor-frame {
325 flex: 1;