sync both themes with SeaMonkey 2.42 to 2.45 classic theme changes
[themes.git] / LCARStrek / devtools / common.css
1 /* vim:set ts=2 sw=2 sts=2 et: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 /* LCARS-specific rules that should be limited to toolbox but there's no other place to put them */
7 window {
8   padding: 0;
9 }
10
11 notification {
12   margin-bottom: 3px;
13 }
14
15 /* End LCARStrek toolbox rules */
16
17 :root {
18   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
19   --proportional-font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
20   --monospace-font-family: "Liberation Mono", Consolas, "Courier New", monospace;
21   --monospace-font-size: 12px;
22 }
23
24 .devtools-monospace {
25   font-family: var(--monospace-font-family);
26   font-size: var(--monospace-font-size);
27 }
28
29 /* Bottom-docked toolbox minimize transition */
30 .devtools-toolbox-bottom-iframe {
31   transition: margin-bottom .1s;
32 }
33
34 /* Splitters */
35
36 .devtools-horizontal-splitter {
37   min-height: 3px;
38   height: 3px;
39   position: relative;
40 }
41
42 #devtools-side-splitter {
43   min-width: 0;
44   width: 3px;
45   border: none;
46   margin: 0 3px;
47   position: relative;
48   cursor: e-resize;
49 }
50
51 .devtools-horizontal-splitter.disabled,
52 .devtools-side-splitter.disabled {
53   pointer-events: none;
54 }
55
56 /* In-tools sidebar */
57
58 .devtools-toolbox-side-iframe {
59   min-width: 465px;
60 }
61
62 /* === BEGIN common.inc.css === */
63
64 /* Autocomplete Popup */
65 /* Dark and light theme */
66
67 .devtools-autocomplete-popup {
68   border-radius: 3px;
69   overflow-x: hidden;
70   max-height: 40rem;
71 }
72
73 .devtools-autocomplete-listbox {
74   background-color: transparent;
75   border-width: 0px !important;
76 }
77
78 .devtools-autocomplete-listbox > richlistitem,
79 .devtools-autocomplete-listbox > richlistitem[selected] {
80   width: 100%;
81   background-color: transparent;
82   border-radius: 4px;
83 }
84
85 .devtools-autocomplete-listbox.dark-theme > richlistitem[selected],
86 .devtools-autocomplete-listbox.dark-theme > richlistitem:hover {
87 /*  background-color: rgba(0,0,0,0.5); */
88 }
89
90 .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > .autocomplete-value,
91 .devtools-autocomplete-listbox:focus.dark-theme > richlistitem[selected] > .initial-value {
92 /*  color: hsl(208,100%,60%);*/
93 }
94
95 .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label {
96 /*  color: #eee;*/
97 }
98
99 .devtools-autocomplete-listbox.dark-theme > richlistitem > label {
100 /*  color: #ccc;*/
101 }
102
103 .devtools-autocomplete-listbox > richlistitem > .initial-value,
104 .devtools-autocomplete-listbox > richlistitem > .autocomplete-value {
105   margin: 0;
106   padding: 1px 0;
107 }
108
109 .devtools-autocomplete-listbox > richlistitem > .autocomplete-count {
110   text-align: end;
111 }
112
113 /* Rest of the dark and light theme */
114
115 .devtools-autocomplete-popup,
116 .CodeMirror-hints,
117 .CodeMirror-Tern-tooltip {
118   border: 1px solid #FF9F00;
119   background-color: #000000;
120 }
121
122 .devtools-autocomplete-popup.light-theme {
123 }
124
125 .devtools-autocomplete-listbox.light-theme > richlistitem[selected],
126 .devtools-autocomplete-listbox.light-theme > richlistitem:hover {
127 /*  background-color: rgba(128,128,128,0.3); */
128 }
129
130 .devtools-autocomplete-listbox.light-theme > richlistitem[selected] > .autocomplete-value,
131 .devtools-autocomplete-listbox:focus.light-theme > richlistitem[selected] > .initial-value {
132 /*  color: #222;*/
133 }
134
135 .devtools-autocomplete-listbox.light-theme > richlistitem > label {
136 /*  color: #666;*/
137 }
138
139 /* Responsive container */
140
141 .devtools-responsive-container {
142   -moz-box-orient: horizontal;
143 }
144
145 @media (max-width: 700px) {
146   .devtools-responsive-container {
147     -moz-box-orient: vertical;
148   }
149
150   .devtools-responsive-container > .devtools-side-splitter {
151     border: 0;
152     margin: 3px 0;
153     min-height: 3px;
154     height: 3px;
155     /* In some edge case the cursor is not changed to n-resize */
156     cursor: n-resize;
157   }
158
159   .devtools-responsive-container > .devtools-sidebar-tabs {
160     min-height: 35vh;
161     max-height: 75vh;
162   }
163 }
164
165 /* Tooltip widget (see browser/devtools/shared/widgets/Tooltip.js) */
166
167 .devtools-tooltip.devtools-tooltip-tooltip {
168   /* If the tooltip uses a <tooltip> XUL element */
169   padding: 4px;
170   background: #A09090;
171   border-radius: 3px;
172 }
173
174 .devtools-tooltip .panel-arrowcontent {
175   /* If the tooltip uses a <panel> XUL element instead */
176   padding: 4px;
177 }
178
179 .devtools-tooltip .panel-arrowcontainer {
180   /* Reseting the transition used when panels are shown */
181   transition: none;
182   /* Panels slide up/down/left/right when they appear using a transform.
183   Since we want to remove the transition, we don't need to transform anymore
184   plus it can interfeer by causing mouseleave events on the underlying nodes */
185   transform: none;
186 }
187
188 .devtools-tooltip[clamped-dimensions] {
189   min-height: 100px;
190   max-height: 400px;
191   min-width: 100px;
192   max-width: 400px;
193 }
194 .devtools-tooltip[clamped-dimensions-no-min-height] {
195   min-height: 0;
196   max-height: 400px;
197   min-width: 100px;
198   max-width: 400px;
199 }
200 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
201   min-width: 400px;
202   max-width: 400px;
203 }
204 .devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
205 .devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
206 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
207   overflow: hidden;
208 }
209 .devtools-tooltip[wide] {
210   max-width: 600px;
211 }
212
213 /* Tooltip: Simple Text */
214
215 .devtools-tooltip-simple-text {
216   background: #000000;
217   max-width: 400px;
218   margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */
219   padding: 8px 12px;
220   white-space: pre-wrap;
221 }
222
223 .devtools-tooltip-simple-text:first-child {
224   margin-top: -4px;
225 }
226
227 .devtools-tooltip-simple-text:last-child {
228   margin-bottom: -4px;
229 }
230
231 .devtools-tooltip-simple-text {
232   background-color: #000000;
233   max-width: 400px;
234   margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */
235   padding: 8px 12px;
236   white-space: pre-wrap;
237 }
238
239 .devtools-tooltip-simple-text:first-child {
240   margin-top: -4px;
241 }
242
243 .devtools-tooltip-simple-text:last-child {
244   margin-bottom: -4px;
245 }
246
247 /* Tooltip: Alert Icon */
248
249 .devtools-tooltip-alert-icon {
250   width: 32px;
251   height: 32px;
252   margin: 6px;
253   -moz-margin-end: 20px;
254 }
255
256 .devtools-tooltip-alert-icon {
257   list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
258 }
259
260 /* Tooltip: Variables View */
261
262 .devtools-tooltip-variables-view-box {
263   margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
264 }
265
266 .devtools-tooltip-variables-view-box .variable-or-property > .title {
267   -moz-padding-end: 6px;
268 }
269
270 /* Tooltip: Tiles */
271
272 .devtools-tooltip-tiles {
273   background-color: #A09090;
274   background-image: linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF),
275     linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF);
276   background-size: 20px 20px;
277   background-position: 0 0, 10px 10px;
278 }
279
280 .devtools-tooltip-iframe {
281   border: none;
282   background: transparent;
283 }
284
285 /* Eyedropper Widget */
286
287 .devtools-eyedropper-panel {
288   pointer-events: none;
289   -moz-appearance: none;
290   width: 156px;
291   height: 120px;
292   background-color: transparent;
293   border: none;
294   padding: 0;
295 }
296
297 #color-value {
298   color: #FF9F00;
299 }
300
301 #color-value.highlight {
302   color: #FFCF00;
303 }
304
305 /* Links to source code, like displaying `myfile.js:45` */
306
307 .devtools-source-link {
308   font-family: var(--monospace-font-family);
309   color: var(--theme-text-blue);
310   cursor: pointer;
311   white-space: nowrap;
312   display: flex;
313   align-self: flex-start;
314   text-decoration: none;
315   font-size: 11px;
316   width: 12em; /* probably should be changed for each tool */
317 }
318
319 .devtools-source-link:hover {
320   text-decoration: underline;
321 }
322
323 .devtools-source-link > .filename {
324   text-overflow: ellipsis;
325   text-align: end;
326   overflow: hidden;
327   margin: 2px 0px;
328   cursor: pointer;
329 }
330
331 .devtools-source-link > .line-number {
332   flex: none;
333   margin: 2px 0px;
334   cursor: pointer;
335 }
336
337 /* === END common.inc.css === */