first (largest) part of sync for both themes with toolkit windows theme changes in...
[themes.git] / LCARStrek / devtools / common.css
1 /* vim:set ts=2 sw=2 sts=2 et: */
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/. */
5
6 @import url("splitters.css");
7
8 /* LCARS-specific rules that should be limited to toolbox but there's no other place to put them */
9 window {
10   padding: 0;
11 }
12
13 notification {
14   margin-bottom: 3px;
15 }
16
17 /* End LCARStrek toolbox rules */
18
19 :root {
20   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
21   --proportional-font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
22   --monospace-font-family: "Liberation Mono", Consolas, "Courier New", monospace;
23   --monospace-font-size: 12px;
24 }
25
26 .devtools-monospace {
27   font-family: var(--monospace-font-family);
28   font-size: var(--monospace-font-size);
29 }
30
31
32 /* Autocomplete Popup */
33
34 .devtools-autocomplete-popup {
35   border-radius: 3px;
36   overflow-x: hidden;
37   max-height: 40rem;
38 }
39
40 .devtools-autocomplete-listbox {
41   background-color: transparent;
42   border-width: 0px !important;
43 }
44
45 .devtools-autocomplete-listbox > richlistitem,
46 .devtools-autocomplete-listbox > richlistitem[selected] {
47   width: 100%;
48   background-color: transparent;
49   border-radius: 4px;
50 }
51
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); */
55 }
56
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%);*/
60 }
61
62 .devtools-autocomplete-listbox.dark-theme > richlistitem[selected] > label {
63 /*  color: #eee;*/
64 }
65
66 .devtools-autocomplete-listbox.dark-theme > richlistitem > label {
67 /*  color: #ccc;*/
68 }
69
70 .devtools-autocomplete-listbox > richlistitem > .initial-value,
71 .devtools-autocomplete-listbox > richlistitem > .autocomplete-value {
72   margin: 0;
73   padding: 1px 0;
74 }
75
76 .devtools-autocomplete-listbox > richlistitem > .autocomplete-count {
77   text-align: end;
78 }
79
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 }
88
89 .devtools-autocomplete-popup.light-theme {
90 }
91
92 .devtools-autocomplete-listbox.firebug-theme > richlistitem[selected],
93 .devtools-autocomplete-listbox.firebug-theme > richlistitem:hover,
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
99 .devtools-autocomplete-listbox.firebug-theme > richlistitem[selected] > .autocomplete-value,
100 .devtools-autocomplete-listbox:focus.firebug-theme > richlistitem[selected] > .initial-value,
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
106 .devtools-autocomplete-listbox.firebug-theme > richlistitem > label,
107 .devtools-autocomplete-listbox.light-theme > richlistitem > label {
108 /*  color: #666;*/
109 }
110
111 /* Tooltip widget (see devtools/client/shared/widgets/Tooltip.js) */
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 }
119
120 .devtools-tooltip .panel-arrowcontent {
121   padding: 4px;
122 }
123
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] {
134   min-height: 100px;
135   max-height: 400px;
136   min-width: 100px;
137   max-width: 400px;
138 }
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 }
145 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] {
146   min-width: 400px;
147   max-width: 400px;
148 }
149 .devtools-tooltip[clamped-dimensions] .panel-arrowcontent,
150 .devtools-tooltip[clamped-dimensions-no-min-height] .panel-arrowcontent,
151 .devtools-tooltip[clamped-dimensions-no-max-or-min-height] .panel-arrowcontent {
152   overflow: hidden;
153 }
154 .devtools-tooltip[wide] {
155   max-width: 600px;
156 }
157
158 /* Tooltip: Simple Text */
159
160 .devtools-tooltip-simple-text {
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
175 /* Tooltip: Alert Icon */
176
177 .devtools-tooltip-alert-icon {
178   width: 32px;
179   height: 32px;
180   margin: 6px;
181   margin-inline-end: 20px;
182 }
183
184 .devtools-tooltip-alert-icon {
185   list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
186 }
187
188 /* Tooltip: Variables View */
189
190 .devtools-tooltip-variables-view-box {
191   margin: -4px; /* Compensate for the .panel-arrowcontent padding. */
192 }
193
194 .devtools-tooltip-variables-view-box .variable-or-property > .title {
195   padding-inline-end: 6px;
196 }
197
198 /* Tooltip: Tiles */
199
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
208 .devtools-tooltip-iframe {
209   border: none;
210   background: transparent;
211 }
212
213 /* links to source code, like displaying `myfile.js:45` */
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;
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 }