Commit | Line | Data |
---|---|---|
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 */ |
9 | window { | |
10 | padding: 0; | |
56ab361a RK |
11 | } |
12 | ||
3886293f RK |
13 | notification { |
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 | 31 | |
82b4252f | 32 | /* Autocomplete Popup */ |
82b4252f RK |
33 | |
34 | .devtools-autocomplete-popup { | |
82b4252f | 35 | border-radius: 3px; |
6dc70335 | 36 | overflow-x: hidden; |
82b4252f RK |
37 | max-height: 40rem; |
38 | } | |
39 | ||
40 | .devtools-autocomplete-listbox { | |
41 | background-color: transparent; | |
42 | border-width: 0px !important; | |
0142a07b RK |
43 | } |
44 | ||
82b4252f RK |
45 | .devtools-autocomplete-listbox > richlistitem, |
46 | .devtools-autocomplete-listbox > richlistitem[selected] { | |
47 | width: 100%; | |
48 | background-color: transparent; | |
49 | border-radius: 4px; | |
0142a07b RK |
50 | } |
51 | ||
82b4252f RK |
52 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected], |
53 | .devtools-autocomplete-listbox.dark-theme > richlistitem:hover { | |
54 | /* background-color: rgba(0,0,0,0.5); */ | |
0142a07b RK |
55 | } |
56 | ||
82b4252f RK |
57 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > .autocomplete-value, |
58 | .devtools-autocomplete-listbox:focus.dark-theme > richlistitem[selected] > .initial-value { | |
59 | /* color: hsl(208,100%,60%);*/ | |
0142a07b RK |
60 | } |
61 | ||
82b4252f RK |
62 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label { |
63 | /* color: #eee;*/ | |
0142a07b RK |
64 | } |
65 | ||
82b4252f RK |
66 | .devtools-autocomplete-listbox.dark-theme > richlistitem > label { |
67 | /* color: #ccc;*/ | |
0142a07b RK |
68 | } |
69 | ||
82b4252f RK |
70 | .devtools-autocomplete-listbox > richlistitem > .initial-value, |
71 | .devtools-autocomplete-listbox > richlistitem > .autocomplete-value { | |
72 | margin: 0; | |
73 | padding: 1px 0; | |
0142a07b RK |
74 | } |
75 | ||
82b4252f | 76 | .devtools-autocomplete-listbox > richlistitem > .autocomplete-count { |
a21f2959 | 77 | text-align: end; |
82b4252f | 78 | } |
0142a07b | 79 | |
ed88669c RK |
80 | /* Rest of the dark and light theme */ |
81 | ||
82 | .devtools-autocomplete-popup, | |
83 | .CodeMirror-hints, | |
84 | .CodeMirror-Tern-tooltip { | |
85 | border: 1px solid #FF9F00; | |
86 | background-color: #000000; | |
87 | } | |
82b4252f RK |
88 | |
89 | .devtools-autocomplete-popup.light-theme { | |
445863a2 RK |
90 | } |
91 | ||
6184c7f7 RK |
92 | .devtools-autocomplete-listbox.firebug-theme > richlistitem[selected], |
93 | .devtools-autocomplete-listbox.firebug-theme > richlistitem:hover, | |
82b4252f RK |
94 | .devtools-autocomplete-listbox.light-theme > richlistitem[selected], |
95 | .devtools-autocomplete-listbox.light-theme > richlistitem:hover { | |
96 | /* background-color: rgba(128,128,128,0.3); */ | |
97 | } | |
98 | ||
6184c7f7 RK |
99 | .devtools-autocomplete-listbox.firebug-theme > richlistitem[selected] > .autocomplete-value, |
100 | .devtools-autocomplete-listbox:focus.firebug-theme > richlistitem[selected] > .initial-value, | |
82b4252f RK |
101 | .devtools-autocomplete-listbox.light-theme > richlistitem[selected] > .autocomplete-value, |
102 | .devtools-autocomplete-listbox:focus.light-theme > richlistitem[selected] > .initial-value { | |
103 | /* color: #222;*/ | |
104 | } | |
105 | ||
6184c7f7 | 106 | .devtools-autocomplete-listbox.firebug-theme > richlistitem > label, |
82b4252f RK |
107 | .devtools-autocomplete-listbox.light-theme > richlistitem > label { |
108 | /* color: #666;*/ | |
0142a07b | 109 | } |
82b4252f | 110 | |
6184c7f7 | 111 | /* Tooltip widget (see devtools/client/shared/widgets/Tooltip.js) */ |
7600e0b1 RK |
112 | |
113 | .devtools-tooltip.devtools-tooltip-tooltip { | |
114 | /* If the tooltip uses a <tooltip> XUL element */ | |
115 | padding: 4px; | |
116 | background: #A09090; | |
117 | border-radius: 3px; | |
118 | } | |
5a199ba1 | 119 | |
d2ce251d | 120 | .devtools-tooltip .panel-arrowcontent { |
7600e0b1 RK |
121 | padding: 4px; |
122 | } | |
123 | ||
d2ce251d RK |
124 | .devtools-tooltip .panel-arrowcontainer { |
125 | /* Reseting the transition used when panels are shown */ | |
126 | transition: none; | |
127 | /* Panels slide up/down/left/right when they appear using a transform. | |
128 | Since we want to remove the transition, we don't need to transform anymore | |
129 | plus it can interfeer by causing mouseleave events on the underlying nodes */ | |
130 | transform: none; | |
131 | } | |
132 | ||
133 | .devtools-tooltip[clamped-dimensions] { | |
45dc7657 | 134 | min-height: 100px; |
d2ce251d | 135 | max-height: 400px; |
45dc7657 | 136 | min-width: 100px; |
d2ce251d RK |
137 | max-width: 400px; |
138 | } | |
1988bb88 RK |
139 | .devtools-tooltip[clamped-dimensions-no-min-height] { |
140 | min-height: 0; | |
141 | max-height: 400px; | |
142 | min-width: 100px; | |
143 | max-width: 400px; | |
144 | } | |
cac2a998 RK |
145 | .devtools-tooltip[clamped-dimensions-no-max-or-min-height] { |
146 | min-width: 400px; | |
147 | max-width: 400px; | |
148 | } | |
1988bb88 | 149 | .devtools-tooltip[clamped-dimensions] .panel-arrowcontent, |
cac2a998 RK |
150 | .devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent, |
151 | .devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent { | |
d2ce251d RK |
152 | overflow: hidden; |
153 | } | |
cac2a998 RK |
154 | .devtools-tooltip[wide] { |
155 | max-width: 600px; | |
156 | } | |
d2ce251d RK |
157 | |
158 | /* Tooltip: Simple Text */ | |
159 | ||
5a199ba1 | 160 | .devtools-tooltip-simple-text { |
6568957a RK |
161 | max-width: 400px; |
162 | margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */ | |
163 | padding: 8px 12px; | |
164 | white-space: pre-wrap; | |
165 | } | |
166 | ||
167 | .devtools-tooltip-simple-text:first-child { | |
168 | margin-top: -4px; | |
169 | } | |
170 | ||
171 | .devtools-tooltip-simple-text:last-child { | |
172 | margin-bottom: -4px; | |
173 | } | |
174 | ||
45dc7657 RK |
175 | /* Tooltip: Alert Icon */ |
176 | ||
177 | .devtools-tooltip-alert-icon { | |
178 | width: 32px; | |
179 | height: 32px; | |
180 | margin: 6px; | |
181 | -moz-margin-end: 20px; | |
182 | } | |
183 | ||
184 | .devtools-tooltip-alert-icon { | |
185 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
186 | } | |
187 | ||
d2ce251d RK |
188 | /* Tooltip: Variables View */ |
189 | ||
190 | .devtools-tooltip-variables-view-box { | |
191 | margin: -4px; /* Compensate for the .panel-arrowcontent padding. */ | |
192 | } | |
193 | ||
dccbbf95 RK |
194 | .devtools-tooltip-variables-view-box .variable-or-property > .title { |
195 | -moz-padding-end: 6px; | |
196 | } | |
197 | ||
d2ce251d RK |
198 | /* Tooltip: Tiles */ |
199 | ||
7600e0b1 RK |
200 | .devtools-tooltip-tiles { |
201 | background-color: #A09090; | |
202 | background-image: linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF), | |
203 | linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF); | |
204 | background-size: 20px 20px; | |
205 | background-position: 0 0, 10px 10px; | |
206 | } | |
207 | ||
589b5528 RK |
208 | .devtools-tooltip-iframe { |
209 | border: none; | |
210 | background: transparent; | |
211 | } | |
212 | ||
6184c7f7 | 213 | /* links to source code, like displaying `myfile.js:45` */ |
d74db938 RK |
214 | |
215 | .devtools-source-link { | |
216 | font-family: var(--monospace-font-family); | |
217 | color: var(--theme-text-blue); | |
218 | cursor: pointer; | |
219 | white-space: nowrap; | |
220 | display: flex; | |
d74db938 RK |
221 | text-decoration: none; |
222 | font-size: 11px; | |
223 | width: 12em; /* probably should be changed for each tool */ | |
224 | } | |
225 | ||
226 | .devtools-source-link:hover { | |
227 | text-decoration: underline; | |
228 | } | |
229 | ||
230 | .devtools-source-link > .filename { | |
231 | text-overflow: ellipsis; | |
232 | text-align: end; | |
233 | overflow: hidden; | |
234 | margin: 2px 0px; | |
235 | cursor: pointer; | |
236 | } | |
237 | ||
238 | .devtools-source-link > .line-number { | |
239 | flex: none; | |
240 | margin: 2px 0px; | |
241 | cursor: pointer; | |
242 | } |