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 | |
3886293f RK |
6 | /* LCARS-specific rules that should be limited to toolbox but there's no other place to put them */ |
7 | window { | |
8 | padding: 0; | |
56ab361a RK |
9 | } |
10 | ||
3886293f RK |
11 | notification { |
12 | margin-bottom: 3px; | |
3d85dbf1 | 13 | } |
713cf603 | 14 | |
3886293f | 15 | /* End LCARStrek toolbox rules */ |
85cfb236 | 16 | |
85cfb236 | 17 | |
3886293f RK |
18 | /* Font for code */ |
19 | .devtools-monospace { | |
20 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; | |
85cfb236 RK |
21 | } |
22 | ||
37953ab4 | 23 | /* Splitters */ |
85cfb236 RK |
24 | |
25 | .devtools-horizontal-splitter { | |
85cfb236 RK |
26 | min-height: 3px; |
27 | height: 3px; | |
85cfb236 RK |
28 | position: relative; |
29 | } | |
713cf603 | 30 | |
8d7ef0d9 | 31 | #devtools-side-splitter { |
37953ab4 RK |
32 | min-width: 0; |
33 | width: 3px; | |
ed1a91c6 RK |
34 | border: none; |
35 | margin: 0 3px; | |
37953ab4 | 36 | position: relative; |
ed1a91c6 | 37 | cursor: e-resize; |
713cf603 | 38 | } |
445863a2 | 39 | |
0142a07b RK |
40 | /* In-tools sidebar */ |
41 | ||
82b4252f RK |
42 | .devtools-toolbox-side-iframe { |
43 | min-width: 465px; | |
44 | } | |
45 | ||
7600e0b1 | 46 | /* === BEGIN common.inc.css === */ |
0142a07b | 47 | |
82b4252f RK |
48 | /* Autocomplete Popup */ |
49 | /* Dark and light theme */ | |
50 | ||
51 | .devtools-autocomplete-popup { | |
52 | border: 1px solid #FF9F00; | |
0142a07b | 53 | background-color: #000000; |
82b4252f | 54 | border-radius: 3px; |
6dc70335 | 55 | overflow-x: hidden; |
82b4252f RK |
56 | max-height: 40rem; |
57 | } | |
58 | ||
59 | .devtools-autocomplete-listbox { | |
60 | background-color: transparent; | |
61 | border-width: 0px !important; | |
0142a07b RK |
62 | } |
63 | ||
82b4252f RK |
64 | .devtools-autocomplete-listbox > richlistitem, |
65 | .devtools-autocomplete-listbox > richlistitem[selected] { | |
66 | width: 100%; | |
67 | background-color: transparent; | |
68 | border-radius: 4px; | |
0142a07b RK |
69 | } |
70 | ||
82b4252f RK |
71 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected], |
72 | .devtools-autocomplete-listbox.dark-theme > richlistitem:hover { | |
73 | /* background-color: rgba(0,0,0,0.5); */ | |
0142a07b RK |
74 | } |
75 | ||
82b4252f RK |
76 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > .autocomplete-value, |
77 | .devtools-autocomplete-listbox:focus.dark-theme > richlistitem[selected] > .initial-value { | |
78 | /* color: hsl(208,100%,60%);*/ | |
0142a07b RK |
79 | } |
80 | ||
82b4252f RK |
81 | .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label { |
82 | /* color: #eee;*/ | |
0142a07b RK |
83 | } |
84 | ||
82b4252f RK |
85 | .devtools-autocomplete-listbox.dark-theme > richlistitem > label { |
86 | /* color: #ccc;*/ | |
0142a07b RK |
87 | } |
88 | ||
82b4252f RK |
89 | .devtools-autocomplete-listbox > richlistitem > .initial-value, |
90 | .devtools-autocomplete-listbox > richlistitem > .autocomplete-value { | |
91 | margin: 0; | |
92 | padding: 1px 0; | |
0142a07b RK |
93 | } |
94 | ||
82b4252f RK |
95 | .devtools-autocomplete-listbox > richlistitem > .autocomplete-count { |
96 | text-align: right; | |
97 | } | |
0142a07b | 98 | |
82b4252f RK |
99 | /* Rest of the light theme */ |
100 | ||
101 | .devtools-autocomplete-popup.light-theme { | |
445863a2 RK |
102 | } |
103 | ||
82b4252f RK |
104 | .devtools-autocomplete-listbox.light-theme > richlistitem[selected], |
105 | .devtools-autocomplete-listbox.light-theme > richlistitem:hover { | |
106 | /* background-color: rgba(128,128,128,0.3); */ | |
107 | } | |
108 | ||
109 | .devtools-autocomplete-listbox.light-theme > richlistitem[selected] > .autocomplete-value, | |
110 | .devtools-autocomplete-listbox:focus.light-theme > richlistitem[selected] > .initial-value { | |
111 | /* color: #222;*/ | |
112 | } | |
113 | ||
114 | .devtools-autocomplete-listbox.light-theme > richlistitem > label { | |
115 | /* color: #666;*/ | |
0142a07b | 116 | } |
82b4252f | 117 | |
ed1a91c6 RK |
118 | /* Responsive container */ |
119 | ||
120 | .devtools-responsive-container { | |
121 | -moz-box-orient: horizontal; | |
122 | } | |
123 | ||
124 | @media (max-width: 700px) { | |
125 | .devtools-responsive-container { | |
126 | -moz-box-orient: vertical; | |
127 | } | |
128 | ||
129 | .devtools-responsive-container > .devtools-side-splitter { | |
130 | border: 0; | |
131 | margin: 3px 0; | |
132 | min-height: 3px; | |
133 | height: 3px; | |
134 | /* In some edge case the cursor is not changed to n-resize */ | |
135 | cursor: n-resize; | |
136 | } | |
137 | ||
138 | .devtools-responsive-container > .devtools-sidebar-tabs { | |
139 | min-height: 35vh; | |
140 | max-height: 75vh; | |
141 | } | |
142 | } | |
7600e0b1 RK |
143 | |
144 | /* Tooltip widget (see browser/devtools/shared/widgets/Tooltip.js) */ | |
145 | ||
146 | .devtools-tooltip.devtools-tooltip-tooltip { | |
147 | /* If the tooltip uses a <tooltip> XUL element */ | |
148 | padding: 4px; | |
149 | background: #A09090; | |
150 | border-radius: 3px; | |
151 | } | |
5a199ba1 | 152 | |
d2ce251d | 153 | .devtools-tooltip .panel-arrowcontent { |
7600e0b1 RK |
154 | /* If the tooltip uses a <panel> XUL element instead */ |
155 | padding: 4px; | |
156 | } | |
157 | ||
d2ce251d RK |
158 | .devtools-tooltip .panel-arrowcontainer { |
159 | /* Reseting the transition used when panels are shown */ | |
160 | transition: none; | |
161 | /* Panels slide up/down/left/right when they appear using a transform. | |
162 | Since we want to remove the transition, we don't need to transform anymore | |
163 | plus it can interfeer by causing mouseleave events on the underlying nodes */ | |
164 | transform: none; | |
165 | } | |
166 | ||
167 | .devtools-tooltip[clamped-dimensions] { | |
168 | max-height: 400px; | |
169 | max-width: 400px; | |
170 | } | |
171 | .devtools-tooltip[clamped-dimensions] .panel-arrowcontent { | |
172 | overflow: hidden; | |
173 | } | |
174 | ||
175 | /* Tooltip: Simple Text */ | |
176 | ||
5a199ba1 RK |
177 | .devtools-tooltip-simple-text { |
178 | background: #000000; | |
179 | max-width: 400px; | |
180 | margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */ | |
181 | padding: 8px 12px; | |
182 | white-space: pre-wrap; | |
183 | } | |
184 | ||
185 | .devtools-tooltip-simple-text:first-child { | |
186 | margin-top: -4px; | |
187 | } | |
188 | ||
189 | .devtools-tooltip-simple-text:last-child { | |
190 | margin-bottom: -4px; | |
191 | } | |
192 | ||
6568957a RK |
193 | .devtools-tooltip-simple-text { |
194 | background-color: #000000; | |
195 | max-width: 400px; | |
196 | margin: 0 -4px; /* Compensate for the .panel-arrowcontent padding. */ | |
197 | padding: 8px 12px; | |
198 | white-space: pre-wrap; | |
199 | } | |
200 | ||
201 | .devtools-tooltip-simple-text:first-child { | |
202 | margin-top: -4px; | |
203 | } | |
204 | ||
205 | .devtools-tooltip-simple-text:last-child { | |
206 | margin-bottom: -4px; | |
207 | } | |
208 | ||
d2ce251d RK |
209 | /* Tooltip: Variables View */ |
210 | ||
211 | .devtools-tooltip-variables-view-box { | |
212 | margin: -4px; /* Compensate for the .panel-arrowcontent padding. */ | |
213 | } | |
214 | ||
215 | /* Tooltip: Tiles */ | |
216 | ||
7600e0b1 RK |
217 | .devtools-tooltip-tiles { |
218 | background-color: #A09090; | |
219 | background-image: linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF), | |
220 | linear-gradient(45deg, #9C9CFF 25%, transparent 25%, transparent 75%, #9C9CFF 75%, #9C9CFF); | |
221 | background-size: 20px 20px; | |
222 | background-position: 0 0, 10px 10px; | |
223 | } | |
224 | ||
225 | /* === END common.inc.css === */ |