X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fdevtools%2Flayout.css;h=a2f898733983edc05a9a63b0e9905cdf5791ec71;hp=d9bcd5febcda41c9e103ff219a97e295a9d4b5b5;hb=b1d1a8bbaca0a31b2c2581911368b6892d447718;hpb=d0a8de80597f65fb17a8508078deae45f0ae80d4 diff --git a/LCARStrek/devtools/layout.css b/LCARStrek/devtools/layout.css index d9bcd5fe..a2f89873 100644 --- a/LCARStrek/devtools/layout.css +++ b/LCARStrek/devtools/layout.css @@ -5,6 +5,13 @@ #sidebar-panel-layoutview { display: block; overflow: auto; + height: 100%; +} + +#layout-wrapper { + /* The sidebar-panel is not focusable, this wrapper will catch click events in + all the empty area around the layout-container */ + height: 100%; } #layout-container { @@ -26,7 +33,7 @@ vertical-align: top; } -#layout-header:-moz-dir(rtl) { +#layout-header:dir(rtl) { -moz-box-direction: reverse; } @@ -38,7 +45,7 @@ -moz-box-flex: 1; } -#layout-element-size:-moz-dir(rtl) { +#layout-element-size:dir(rtl) { -moz-box-pack: end; } @@ -51,17 +58,25 @@ } } +#layout-geometry-editor { + visibility: hidden; +} + +#layout-geometry-editor::before { + background: url(images/geometry-editor.svg) no-repeat center center / 16px 16px; +} + /* Main: contains the box-model regions */ #layout-main { - position: absolute; + position: relative; box-sizing: border-box; /* The regions are semi-transparent, so the white background is partly visible */ background-color: #FF9F00; color: var(--theme-selection-color); /* Make sure there is some space between the window's edges and the regions */ - margin: 0 14px 10px 14px; + margin: 0 14px 4px 14px; width: calc(100% - 2 * 14px); } @@ -73,14 +88,14 @@ /* Regions are 3 nested elements with wide borders and outlines */ #layout-content { - height: 25px; + height: 18px; } #layout-margins, #layout-borders, #layout-padding { border-color: var(--theme-splitter-color); - border-width: 25px; + border-width: 18px; border-style: solid; outline: dotted 1px var(--theme-splitter-color); } @@ -90,20 +105,6 @@ opacity: .8; } -/* Respond to window size change by changing the size of the regions */ - -@media (max-height: 250px) { - #layout-content { - height: 18px; - } - - #layout-margins, - #layout-borders, - #layout-padding { - border-width: 18px; - } -} - /* Regions colors */ #layout-margins { @@ -121,27 +122,7 @@ #layout-content { background-color: #008484; } -/* -.theme-firebug #layout-main, -.theme-firebug #layout-borders, -.theme-firebug #layout-content { - border-style: solid; -} - -.theme-firebug #layout-main, -.theme-firebug #layout-header { - font-family: var(--proportional-font-family); -} - -.theme-firebug #layout-main { - color: var(--theme-body-color); - font-size: var(--theme-toolbar-font-size); -} -.theme-firebug #layout-header { - font-size: var(--theme-toolbar-font-size); -} -*/ /* Editable region sizes are contained in absolutely positioned

*/ #layout-main > p { @@ -166,27 +147,27 @@ } .layout-padding.layout-top { - top: 55px; + top: 37px; } .layout-padding.layout-bottom { - bottom: 57px; + bottom: 38px; } .layout-border.layout-top { - top: 30px; + top: 19px; } .layout-border.layout-bottom { - bottom: 31px; + bottom: 20px; } .layout-margin.layout-top { - top: 5px; + top: 1px; } .layout-margin.layout-bottom { - bottom: 6px; + bottom: 2px; } .layout-size, @@ -197,7 +178,7 @@ .layout-padding.layout-left, .layout-padding.layout-right { top: 22px; - line-height: 132px; + line-height: 88px; } .layout-size { @@ -210,23 +191,23 @@ .layout-border.layout-right, .layout-padding.layout-right, .layout-padding.layout-left { - width: 25px; + width: 21px; } .layout-padding.layout-left { - left: 52px; + left: 35px; } .layout-padding.layout-right { - right: 51px; + right: 35px; } .layout-border.layout-left { - left: 26px; + left: 16px; } .layout-border.layout-right { - right: 26px; + right: 17px; } .layout-margin.layout-right { @@ -245,75 +226,11 @@ transform: rotate(90deg); } -/* Coordinates should be different when the window is small, because we make - the regions smaller then */ - -@media (max-height: 250px) { - .layout-padding.layout-top { - top: 37px; - } - - .layout-padding.layout-bottom { - bottom: 38px; - } - - .layout-border.layout-top { - top: 19px; - } - - .layout-border.layout-bottom { - bottom: 20px; - } - - .layout-margin.layout-top { - top: 1px; - } - - .layout-margin.layout-bottom { - bottom: 2px; - } - - .layout-size, - .layout-margin.layout-left, - .layout-margin.layout-right, - .layout-border.layout-left, - .layout-border.layout-right, - .layout-padding.layout-left, - .layout-padding.layout-right { - line-height: 80px; - } - - .layout-margin.layout-right, - .layout-margin.layout-left, - .layout-border.layout-left, - .layout-border.layout-right, - .layout-padding.layout-right, - .layout-padding.layout-left { - width: 21px; - } - - .layout-padding.layout-left { - left: 35px; - } - - .layout-padding.layout-right { - right: 35px; - } - - .layout-border.layout-left { - left: 16px; - } - - .layout-border.layout-right { - right: 17px; - } -} - /* Legend, displayed inside regions */ .layout-legend { position: absolute; - margin: 5px 6px; + margin: 2px 6px; z-index: 1; } @@ -321,12 +238,6 @@ color: #000000; /*var(--theme-highlight-blue);*/ } -@media (max-height: 250px) { - .layout-legend { - margin: 2px 6px; - } -} - /* Editable fields */ .layout-editable { @@ -349,23 +260,13 @@ cursor: default; } -/* Hide all values when the view is inactive */ +/* Layout info: contains the position and size of the element */ -#layout-container.inactive > #layout-header > #layout-element-position, -#layout-container.inactive > #layout-header > #layout-element-size, -#layout-container.inactive > #layout-main > p { - visibility: hidden; +#layout-element-size { + flex: 1; } #layout-position-group { display: flex; align-items: center; } - -#layout-geometry-editor { - visibility: hidden; -} - -#layout-geometry-editor::before { - background: url(images/geometry-editor.svg) no-repeat center center / 16px 16px; -}