second part of syncing LCARStrek with Firefox 45-48 devtools theme changes
[themes.git] / LCARStrek / devtools / layout.css
CommitLineData
dc9d5d64
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/ */
4
dc9d5d64
RK
5#sidebar-panel-layoutview {
6 display: block;
7 overflow: auto;
8}
9
dc9d5d64
RK
10#layout-container {
11 /* The view will grow bigger as the window gets resized, until 400px */
12 max-width: 400px;
13 margin: 0px auto;
14 padding: 0;
15 /* "Contain" the absolutely positioned #layout-main element */
16 position: relative;
17}
18
19/* Header: contains the position and size of the element */
20
dc9d5d64
RK
21#layout-header {
22 box-sizing: border-box;
23 width: 100%;
24 padding: 4px 14px;
25 display: -moz-box;
26 vertical-align: top;
27}
28
f36031bd 29#layout-header:-moz-dir(rtl) {
dc9d5d64
RK
30 -moz-box-direction: reverse;
31}
32
dc9d5d64
RK
33#layout-header > span {
34 display: -moz-box;
35}
36
dc9d5d64
RK
37#layout-element-size {
38 -moz-box-flex: 1;
39}
40
f36031bd 41#layout-element-size:-moz-dir(rtl) {
dc9d5d64
RK
42 -moz-box-pack: end;
43}
44
45@media (max-height: 250px) {
dc9d5d64
RK
46 #layout-header {
47 padding-top: 0;
48 padding-bottom: 0;
49 margin-top: 10px;
50 margin-bottom: 8px;
51 }
52}
53
54/* Main: contains the box-model regions */
55
dc9d5d64
RK
56#layout-main {
57 position: absolute;
58 box-sizing: border-box;
59 /* The regions are semi-transparent, so the white background is partly
60 visible */
61 background-color: #FF9F00;
62 color: var(--theme-selection-color);
63 /* Make sure there is some space between the window's edges and the regions */
64 margin: 0 14px 10px 14px;
65 width: calc(100% - 2 * 14px);
66}
67
dc9d5d64
RK
68.layout-margin,
69.layout-size {
70/* color: var(--theme-highlight-blue); */
71}
72
73/* Regions are 3 nested elements with wide borders and outlines */
74
dc9d5d64
RK
75#layout-content {
76 height: 25px;
77}
78
dc9d5d64
RK
79#layout-margins,
80#layout-borders,
81#layout-padding {
f36031bd 82 border-color: var(--theme-splitter-color);
dc9d5d64
RK
83 border-width: 25px;
84 border-style: solid;
f36031bd 85 outline: dotted 1px var(--theme-splitter-color);
dc9d5d64
RK
86}
87
dc9d5d64
RK
88#layout-margins {
89 /* This opacity applies to all of the regions, since they are nested */
90 opacity: .8;
91}
92
93/* Respond to window size change by changing the size of the regions */
94
95@media (max-height: 250px) {
dc9d5d64
RK
96 #layout-content {
97 height: 18px;
98 }
99
dc9d5d64
RK
100 #layout-margins,
101 #layout-borders,
102 #layout-padding {
103 border-width: 18px;
104 }
105}
106
107/* Regions colors */
108
dc9d5d64
RK
109#layout-margins {
110 border-color: #FFCF00;
111}
112
dc9d5d64
RK
113#layout-borders {
114 border-color: #A09090;
115}
116
dc9d5d64
RK
117#layout-padding {
118 border-color: #8050B0;
119}
120
dc9d5d64
RK
121#layout-content {
122 background-color: #008484;
123}
124/*
125.theme-firebug #layout-main,
126.theme-firebug #layout-borders,
127.theme-firebug #layout-content {
128 border-style: solid;
129}
130
131.theme-firebug #layout-main,
132.theme-firebug #layout-header {
133 font-family: var(--proportional-font-family);
134}
135
136.theme-firebug #layout-main {
137 color: var(--theme-body-color);
138 font-size: var(--theme-toolbar-font-size);
139}
140
141.theme-firebug #layout-header {
142 font-size: var(--theme-toolbar-font-size);
143}
144*/
145/* Editable region sizes are contained in absolutely positioned <p> */
146
dc9d5d64
RK
147#layout-main > p {
148 position: absolute;
149 pointer-events: none;
150 margin: 0;
151 text-align: center;
152}
153
dc9d5d64
RK
154#layout-main > p > span,
155#layout-main > p > input {
156 vertical-align: middle;
157 pointer-events: auto;
158}
159
160/* Coordinates for the region sizes */
161
dc9d5d64
RK
162.layout-top,
163.layout-bottom {
164 width: calc(100% - 2px);
165 text-align: center;
166}
167
dc9d5d64
RK
168.layout-padding.layout-top {
169 top: 55px;
170}
171
dc9d5d64
RK
172.layout-padding.layout-bottom {
173 bottom: 57px;
174}
175
dc9d5d64
RK
176.layout-border.layout-top {
177 top: 30px;
178}
179
dc9d5d64
RK
180.layout-border.layout-bottom {
181 bottom: 31px;
182}
183
dc9d5d64
RK
184.layout-margin.layout-top {
185 top: 5px;
186}
187
dc9d5d64
RK
188.layout-margin.layout-bottom {
189 bottom: 6px;
190}
191
dc9d5d64
RK
192.layout-size,
193.layout-margin.layout-left,
194.layout-margin.layout-right,
195.layout-border.layout-left,
196.layout-border.layout-right,
197.layout-padding.layout-left,
198.layout-padding.layout-right {
199 top: 22px;
200 line-height: 132px;
201}
202
dc9d5d64
RK
203.layout-size {
204 width: calc(100% - 2px);
205}
206
dc9d5d64
RK
207.layout-margin.layout-right,
208.layout-margin.layout-left,
209.layout-border.layout-left,
210.layout-border.layout-right,
211.layout-padding.layout-right,
212.layout-padding.layout-left {
213 width: 25px;
214}
215
dc9d5d64
RK
216.layout-padding.layout-left {
217 left: 52px;
218}
219
dc9d5d64
RK
220.layout-padding.layout-right {
221 right: 51px;
222}
223
dc9d5d64
RK
224.layout-border.layout-left {
225 left: 26px;
226}
227
dc9d5d64
RK
228.layout-border.layout-right {
229 right: 26px;
230}
231
dc9d5d64
RK
232.layout-margin.layout-right {
233 right: 0;
234}
235
dc9d5d64
RK
236.layout-margin.layout-left {
237 left: 0;
238}
239
dc9d5d64
RK
240.layout-rotate.layout-left:not(.layout-editing) {
241 transform: rotate(-90deg);
242}
243
dc9d5d64
RK
244.layout-rotate.layout-right:not(.layout-editing) {
245 transform: rotate(90deg);
246}
247
248/* Coordinates should be different when the window is small, because we make
249 the regions smaller then */
250
251@media (max-height: 250px) {
dc9d5d64
RK
252 .layout-padding.layout-top {
253 top: 37px;
254 }
255
dc9d5d64
RK
256 .layout-padding.layout-bottom {
257 bottom: 38px;
258 }
259
dc9d5d64
RK
260 .layout-border.layout-top {
261 top: 19px;
262 }
263
dc9d5d64
RK
264 .layout-border.layout-bottom {
265 bottom: 20px;
266 }
267
dc9d5d64
RK
268 .layout-margin.layout-top {
269 top: 1px;
270 }
271
dc9d5d64
RK
272 .layout-margin.layout-bottom {
273 bottom: 2px;
274 }
275
dc9d5d64
RK
276 .layout-size,
277 .layout-margin.layout-left,
278 .layout-margin.layout-right,
279 .layout-border.layout-left,
280 .layout-border.layout-right,
281 .layout-padding.layout-left,
282 .layout-padding.layout-right {
283 line-height: 80px;
284 }
285
dc9d5d64
RK
286 .layout-margin.layout-right,
287 .layout-margin.layout-left,
288 .layout-border.layout-left,
289 .layout-border.layout-right,
290 .layout-padding.layout-right,
291 .layout-padding.layout-left {
292 width: 21px;
293 }
294
dc9d5d64
RK
295 .layout-padding.layout-left {
296 left: 35px;
297 }
298
dc9d5d64
RK
299 .layout-padding.layout-right {
300 right: 35px;
301 }
302
dc9d5d64
RK
303 .layout-border.layout-left {
304 left: 16px;
305 }
306
dc9d5d64
RK
307 .layout-border.layout-right {
308 right: 17px;
309 }
310}
311
312/* Legend, displayed inside regions */
313
dc9d5d64
RK
314.layout-legend {
315 position: absolute;
316 margin: 5px 6px;
317 z-index: 1;
318}
319
dc9d5d64
RK
320.layout-legend[data-box="margin"] {
321 color: #000000; /*var(--theme-highlight-blue);*/
322}
323
324@media (max-height: 250px) {
dc9d5d64
RK
325 .layout-legend {
326 margin: 2px 6px;
327 }
328}
329
330/* Editable fields */
331
dc9d5d64
RK
332.layout-editable {
333 border: 1px dashed transparent;
334 -moz-user-select: text;
335}
336
dc9d5d64
RK
337.layout-editable:hover {
338 border-bottom-color: #E7ADE7;
339}
340
341.styleinspector-propertyeditor {
342 border: 1px solid #008484;
343 padding: 0;
344}
345
346/* Make sure the content size doesn't appear as editable like the other sizes */
347
dc9d5d64
RK
348.layout-size > span {
349 cursor: default;
350}
351
352/* Hide all values when the view is inactive */
353
dc9d5d64
RK
354#layout-container.inactive > #layout-header > #layout-element-position,
355#layout-container.inactive > #layout-header > #layout-element-size,
356#layout-container.inactive > #layout-main > p {
357 visibility: hidden;
358}
359
360#layout-position-group {
361 display: flex;
362 align-items: center;
363}
364
365#layout-geometry-editor {
366 visibility: hidden;
367}
368
369#layout-geometry-editor::before {
370 background: url(images/geometry-editor.svg) no-repeat center center / 16px 16px;
371}