sync both themes with toolkit windows theme changes in Mozilla 45-48 cycles
[themes.git] / LCARStrek / devtools / common.css
CommitLineData
3d85dbf1 1/* vim:set ts=2 sw=2 sts=2 et: */
9099c61d
RK
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/. */
3d85dbf1 5
3886293f
RK
6/* LCARS-specific rules that should be limited to toolbox but there's no other place to put them */
7window {
8 padding: 0;
56ab361a
RK
9}
10
3886293f
RK
11notification {
12 margin-bottom: 3px;
3d85dbf1 13}
713cf603 14
3886293f 15/* End LCARStrek toolbox rules */
85cfb236 16
d74db938
RK
17:root {
18 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
dc9d5d64 19 --proportional-font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
d74db938
RK
20 --monospace-font-family: "Liberation Mono", Consolas, "Courier New", monospace;
21 --monospace-font-size: 12px;
22}
85cfb236 23
3886293f 24.devtools-monospace {
d74db938
RK
25 font-family: var(--monospace-font-family);
26 font-size: var(--monospace-font-size);
85cfb236
RK
27}
28
2e389898
RK
29/* Bottom-docked toolbox minimize transition */
30.devtools-toolbox-bottom-iframe {
31 transition: margin-bottom .1s;
32}
33
37953ab4 34/* Splitters */
85cfb236
RK
35
36.devtools-horizontal-splitter {
85cfb236
RK
37 min-height: 3px;
38 height: 3px;
85cfb236
RK
39 position: relative;
40}
713cf603 41
8d7ef0d9 42#devtools-side-splitter {
37953ab4
RK
43 min-width: 0;
44 width: 3px;
ed1a91c6
RK
45 border: none;
46 margin: 0 3px;
37953ab4 47 position: relative;
ed1a91c6 48 cursor: e-resize;
713cf603 49}
445863a2 50
2e389898
RK
51.devtools-horizontal-splitter.disabled,
52.devtools-side-splitter.disabled {
53 pointer-events: none;
54}
55
0142a07b
RK
56/* In-tools sidebar */
57
82b4252f
RK
58.devtools-toolbox-side-iframe {
59 min-width: 465px;
60}
61
7600e0b1 62/* === BEGIN common.inc.css === */
0142a07b 63
82b4252f
RK
64/* Autocomplete Popup */
65/* Dark and light theme */
66
67.devtools-autocomplete-popup {
82b4252f 68 border-radius: 3px;
6dc70335 69 overflow-x: hidden;
82b4252f
RK
70 max-height: 40rem;
71}
72
73.devtools-autocomplete-listbox {
74 background-color: transparent;
75 border-width: 0px !important;
0142a07b
RK
76}
77
82b4252f
RK
78.devtools-autocomplete-listbox > richlistitem,
79.devtools-autocomplete-listbox > richlistitem[selected] {
80 width: 100%;
81 background-color: transparent;
82 border-radius: 4px;
0142a07b
RK
83}
84
82b4252f
RK
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); */
0142a07b
RK
88}
89
82b4252f
RK
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%);*/
0142a07b
RK
93}
94
82b4252f
RK
95.devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label {
96/* color: #eee;*/
0142a07b
RK
97}
98
82b4252f
RK
99.devtools-autocomplete-listbox.dark-theme > richlistitem > label {
100/* color: #ccc;*/
0142a07b
RK
101}
102
82b4252f
RK
103.devtools-autocomplete-listbox > richlistitem > .initial-value,
104.devtools-autocomplete-listbox > richlistitem > .autocomplete-value {
105 margin: 0;
106 padding: 1px 0;
0142a07b
RK
107}
108
82b4252f 109.devtools-autocomplete-listbox > richlistitem > .autocomplete-count {
a21f2959 110 text-align: end;
82b4252f 111}
0142a07b 112
ed88669c
RK
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}
82b4252f
RK
121
122.devtools-autocomplete-popup.light-theme {
445863a2
RK
123}
124
82b4252f
RK
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;*/
0142a07b 137}
82b4252f 138
ed1a91c6
RK
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}
7600e0b1
RK
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}
5a199ba1 173
d2ce251d 174.devtools-tooltip .panel-arrowcontent {
7600e0b1
RK
175 /* If the tooltip uses a <panel> XUL element instead */
176 padding: 4px;
177}
178
d2ce251d
RK
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] {
45dc7657 189 min-height: 100px;
d2ce251d 190 max-height: 400px;
45dc7657 191 min-width: 100px;
d2ce251d
RK
192 max-width: 400px;
193}
1988bb88
RK
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}
cac2a998
RK
200.devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
201 min-width: 400px;
202 max-width: 400px;
203}
1988bb88 204.devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
cac2a998
RK
205.devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
206.devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
d2ce251d
RK
207 overflow: hidden;
208}
cac2a998
RK
209.devtools-tooltip[wide] {
210 max-width: 600px;
211}
d2ce251d
RK
212
213/* Tooltip: Simple Text */
214
5a199ba1
RK
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
6568957a
RK
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
45dc7657
RK
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
d2ce251d
RK
260/* Tooltip: Variables View */
261
262.devtools-tooltip-variables-view-box {
263 margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
264}
265
dccbbf95
RK
266.devtools-tooltip-variables-view-box .variable-or-property > .title {
267 -moz-padding-end: 6px;
268}
269
d2ce251d
RK
270/* Tooltip: Tiles */
271
7600e0b1
RK
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
589b5528
RK
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;
832af407
RK
294 padding: 0;
295}
296
297#color-value {
298 color: #FF9F00;
589b5528
RK
299}
300
832af407
RK
301#color-value.highlight {
302 color: #FFCF00;
303}
304
d74db938
RK
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}
832af407 336
7600e0b1 337/* === END common.inc.css === */