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