third part of syncing LCARStrek with Firefox 41 windows theme changes
[themes.git] / LCARStrek / browser / 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;
19 --monospace-font-family: "Liberation Mono", Consolas, "Courier New", monospace;
20 --monospace-font-size: 12px;
21}
85cfb236 22
3886293f
RK
23/* Font for code */
24.devtools-monospace {
d74db938
RK
25 font-family: var(--monospace-font-family);
26 font-size: var(--monospace-font-size);
85cfb236
RK
27}
28
37953ab4 29/* Splitters */
85cfb236
RK
30
31.devtools-horizontal-splitter {
85cfb236
RK
32 min-height: 3px;
33 height: 3px;
85cfb236
RK
34 position: relative;
35}
713cf603 36
8d7ef0d9 37#devtools-side-splitter {
37953ab4
RK
38 min-width: 0;
39 width: 3px;
ed1a91c6
RK
40 border: none;
41 margin: 0 3px;
37953ab4 42 position: relative;
ed1a91c6 43 cursor: e-resize;
713cf603 44}
445863a2 45
0142a07b
RK
46/* In-tools sidebar */
47
82b4252f
RK
48.devtools-toolbox-side-iframe {
49 min-width: 465px;
50}
51
7600e0b1 52/* === BEGIN common.inc.css === */
0142a07b 53
82b4252f
RK
54/* Autocomplete Popup */
55/* Dark and light theme */
56
57.devtools-autocomplete-popup {
82b4252f 58 border-radius: 3px;
6dc70335 59 overflow-x: hidden;
82b4252f
RK
60 max-height: 40rem;
61}
62
63.devtools-autocomplete-listbox {
64 background-color: transparent;
65 border-width: 0px !important;
0142a07b
RK
66}
67
82b4252f
RK
68.devtools-autocomplete-listbox > richlistitem,
69.devtools-autocomplete-listbox > richlistitem[selected] {
70 width: 100%;
71 background-color: transparent;
72 border-radius: 4px;
0142a07b
RK
73}
74
82b4252f
RK
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); */
0142a07b
RK
78}
79
82b4252f
RK
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%);*/
0142a07b
RK
83}
84
82b4252f
RK
85.devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label {
86/* color: #eee;*/
0142a07b
RK
87}
88
82b4252f
RK
89.devtools-autocomplete-listbox.dark-theme > richlistitem > label {
90/* color: #ccc;*/
0142a07b
RK
91}
92
82b4252f
RK
93.devtools-autocomplete-listbox > richlistitem > .initial-value,
94.devtools-autocomplete-listbox > richlistitem > .autocomplete-value {
95 margin: 0;
96 padding: 1px 0;
0142a07b
RK
97}
98
82b4252f 99.devtools-autocomplete-listbox > richlistitem > .autocomplete-count {
a21f2959 100 text-align: end;
82b4252f 101}
0142a07b 102
ed88669c
RK
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}
82b4252f
RK
111
112.devtools-autocomplete-popup.light-theme {
445863a2
RK
113}
114
82b4252f
RK
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;*/
0142a07b 127}
82b4252f 128
ed1a91c6
RK
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}
7600e0b1
RK
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}
5a199ba1 163
d2ce251d 164.devtools-tooltip .panel-arrowcontent {
7600e0b1
RK
165 /* If the tooltip uses a <panel> XUL element instead */
166 padding: 4px;
167}
168
d2ce251d
RK
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] {
45dc7657 179 min-height: 100px;
d2ce251d 180 max-height: 400px;
45dc7657 181 min-width: 100px;
d2ce251d
RK
182 max-width: 400px;
183}
1988bb88
RK
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}
cac2a998
RK
190.devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
191 min-width: 400px;
192 max-width: 400px;
193}
1988bb88 194.devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
cac2a998
RK
195.devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
196.devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
d2ce251d
RK
197 overflow: hidden;
198}
cac2a998
RK
199.devtools-tooltip[wide] {
200 max-width: 600px;
201}
d2ce251d
RK
202
203/* Tooltip: Simple Text */
204
5a199ba1
RK
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
6568957a
RK
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
45dc7657
RK
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
d2ce251d
RK
250/* Tooltip: Variables View */
251
252.devtools-tooltip-variables-view-box {
253 margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
254}
255
dccbbf95
RK
256.devtools-tooltip-variables-view-box .variable-or-property > .title {
257 -moz-padding-end: 6px;
258}
259
d2ce251d
RK
260/* Tooltip: Tiles */
261
7600e0b1
RK
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
589b5528
RK
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;
832af407
RK
284 padding: 0;
285}
286
287#color-value {
288 color: #FF9F00;
589b5528
RK
289}
290
832af407
RK
291#color-value.highlight {
292 color: #FFCF00;
293}
294
d74db938
RK
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}
832af407 326
7600e0b1 327/* === END common.inc.css === */