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