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/ */
5 #sidebar-panel-layoutview {
11 /* The sidebar-panel is not focusable, this wrapper will catch click events in
12 all the empty area around the layout-container */
17 /* The view will grow bigger as the window gets resized, until 400px */
21 /* "Contain" the absolutely positioned #layout-main element */
25 /* Header: contains the position and size of the element */
28 box-sizing: border-box;
35 #layout-header:dir(rtl) {
36 -moz-box-direction: reverse;
39 #layout-header > span {
43 #layout-element-size {
47 #layout-element-size:dir(rtl) {
51 @media (max-height: 250px) {
60 /* Main: contains the box-model regions */
64 box-sizing: border-box;
65 /* The regions are semi-transparent, so the white background is partly
67 background-color: #FF9F00;
68 color: var(--theme-selection-color);
69 /* Make sure there is some space between the window's edges and the regions */
70 margin: 0 14px 10px 14px;
71 width: calc(100% - 2 * 14px);
76 /* color: var(--theme-highlight-blue); */
79 /* Regions are 3 nested elements with wide borders and outlines */
88 border-color: var(--theme-splitter-color);
91 outline: dotted 1px var(--theme-splitter-color);
95 /* This opacity applies to all of the regions, since they are nested */
99 /* Respond to window size change by changing the size of the regions */
101 @media (max-height: 250px) {
116 border-color: #FFCF00;
120 border-color: #A09090;
124 border-color: #8050B0;
128 background-color: #008484;
131 .theme-firebug #layout-main,
132 .theme-firebug #layout-borders,
133 .theme-firebug #layout-content {
137 .theme-firebug #layout-main,
138 .theme-firebug #layout-header {
139 font-family: var(--proportional-font-family);
142 .theme-firebug #layout-main {
143 color: var(--theme-body-color);
144 font-size: var(--theme-toolbar-font-size);
147 .theme-firebug #layout-header {
148 font-size: var(--theme-toolbar-font-size);
151 /* Editable region sizes are contained in absolutely positioned <p> */
155 pointer-events: none;
160 #layout-main > p > span,
161 #layout-main > p > input {
162 vertical-align: middle;
163 pointer-events: auto;
166 /* Coordinates for the region sizes */
170 width: calc(100% - 2px);
174 .layout-padding.layout-top {
178 .layout-padding.layout-bottom {
182 .layout-border.layout-top {
186 .layout-border.layout-bottom {
190 .layout-margin.layout-top {
194 .layout-margin.layout-bottom {
199 .layout-margin.layout-left,
200 .layout-margin.layout-right,
201 .layout-border.layout-left,
202 .layout-border.layout-right,
203 .layout-padding.layout-left,
204 .layout-padding.layout-right {
210 width: calc(100% - 2px);
213 .layout-margin.layout-right,
214 .layout-margin.layout-left,
215 .layout-border.layout-left,
216 .layout-border.layout-right,
217 .layout-padding.layout-right,
218 .layout-padding.layout-left {
222 .layout-padding.layout-left {
226 .layout-padding.layout-right {
230 .layout-border.layout-left {
234 .layout-border.layout-right {
238 .layout-margin.layout-right {
242 .layout-margin.layout-left {
246 .layout-rotate.layout-left:not(.layout-editing) {
247 transform: rotate(-90deg);
250 .layout-rotate.layout-right:not(.layout-editing) {
251 transform: rotate(90deg);
254 /* Coordinates should be different when the window is small, because we make
255 the regions smaller then */
257 @media (max-height: 250px) {
258 .layout-padding.layout-top {
262 .layout-padding.layout-bottom {
266 .layout-border.layout-top {
270 .layout-border.layout-bottom {
274 .layout-margin.layout-top {
278 .layout-margin.layout-bottom {
283 .layout-margin.layout-left,
284 .layout-margin.layout-right,
285 .layout-border.layout-left,
286 .layout-border.layout-right,
287 .layout-padding.layout-left,
288 .layout-padding.layout-right {
292 .layout-margin.layout-right,
293 .layout-margin.layout-left,
294 .layout-border.layout-left,
295 .layout-border.layout-right,
296 .layout-padding.layout-right,
297 .layout-padding.layout-left {
301 .layout-padding.layout-left {
305 .layout-padding.layout-right {
309 .layout-border.layout-left {
313 .layout-border.layout-right {
318 /* Legend, displayed inside regions */
326 .layout-legend[data-box="margin"] {
327 color: #000000; /*var(--theme-highlight-blue);*/
330 @media (max-height: 250px) {
336 /* Editable fields */
339 border: 1px dashed transparent;
340 -moz-user-select: text;
343 .layout-editable:hover {
344 border-bottom-color: #E7ADE7;
347 .styleinspector-propertyeditor {
348 border: 1px solid #008484;
352 /* Make sure the content size doesn't appear as editable like the other sizes */
354 .layout-size > span {
358 /* Hide all values when the view is inactive */
360 #layout-container.inactive > #layout-header > #layout-element-position,
361 #layout-container.inactive > #layout-header > #layout-element-size,
362 #layout-container.inactive > #layout-main > p {
366 #layout-position-group {
371 #layout-geometry-editor {
375 #layout-geometry-editor::before {
376 background: url(images/geometry-editor.svg) no-repeat center center / 16px 16px;