X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fdevtools%2Finspector.css;h=b99c22151d0693eb611ad91cf54bd0913d56fe4c;hp=71f5a607a1c27982dd12161d565dcb7e77e18276;hb=1c129f501737dc6a853acf124852a58f7557f169;hpb=1e9e1791d430ae539727c01da67e7dbbf3adfa18 diff --git a/LCARStrek/devtools/inspector.css b/LCARStrek/devtools/inspector.css index 71f5a607..b99c2215 100644 --- a/LCARStrek/devtools/inspector.css +++ b/LCARStrek/devtools/inspector.css @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +@import url(variables.css); /* No idea why this is needed but we get error messages without it */ + :root { --eyedropper-image: url(images/command-eyedropper.svg); } @@ -10,105 +12,108 @@ window { padding: 0; } -/* Use flex layout for the Inspector toolbar. For now, it's done - specifically for the Inspector toolbar since general rule applied - on .devtools-toolbar breaks breadcrubs and also toolbars in other - panels (e.g. webconsole, debugger), these are not ready for HTML - layout yet. */ -div#inspector-toolbar.devtools-toolbar { - display: flex; - background-size: calc(100% - 30px); - background-image: linear-gradient(90deg,#9C9CFF,#9C9CFF); - background-repeat: no-repeat; - background-position: center center; +:root { + --breadcrumbs-border-color: #9C9CFF; } -div#inspector-toolbar.devtools-toolbar .devtools-toolbar-spacer { - flex-grow: 1; - display: inline-block; +* { + box-sizing: border-box; } -div#inspector-toolbar.devtools-toolbar::before, -div#inspector-toolbar.devtools-toolbar::after { - display: flex; - content: ""; - width: 12px; - min-height: 16px; - background-color: #FF9F00; +/* Make sure to hide scroll bars for the parent window */ +window { + overflow: hidden; } -div#inspector-toolbar.devtools-toolbar::before { - border-radius: 8px 0px 0px 8px; - border: none; - border-inline-end: 3px solid black; - margin-inline-end: 2px; +/* The main Inspector panel container. */ +.inspector-responsive-container { + height: 100vh; } -div#inspector-toolbar.devtools-toolbar::after { - border-radius: 0px 8px 8px 0px; - border: none; - border-inline-start: 3px solid black; - margin-inline-start: 2px; +/* The main panel layout. This area consists of a toolbar, markup view + and breadcrumbs bar. */ +#inspector-main-content { + /* Subtract 1 pixel from the panel height. It's puzzling why this + is needed, but if not presented the entire Inspector panel + content jumps 1 pixel up when the Toolbox is opened. */ + height: calc(100% - 1px); + /* This min-width avoids a visual glitch when moving the splitter quickly to the left. + See bug 1307408 comment #12. */ + min-width: 125px; + display: flex; + flex-direction: column; + flex: 1 1 auto; } +/* Inspector Panel Splitter */ -#inspector-toolbar { - border-top: none; +#inspector-splitter-box { + height: 100vh; + width: 100vw; + position: fixed; } -#inspector-searchlabel { - overflow: hidden; +/* Minimum dimensions for the Inspector splitter areas. */ +#inspector-splitter-box .uncontrolled, +#inspector-splitter-box .controlled { + min-height: 50px; + min-width: 50px; + overflow-x: hidden; } -#inspector-breadcrumbs-toolbar { - padding: 0px; - border-bottom-width: 0px; - border-top-width: 1px; +/* Set a minimum width of 200px for tab content to avoid breaking the layout when resizing + the sidebar tab to small width. If a specific panel supports smaller width, this should + be overridden on a panel-by-panel basis */ +.inspector-tabpanel { + min-width: 200px; } -/* Expand/collapse panel toolbar button */ - -#inspector-pane-toggle { - list-style-image: var(--theme-pane-collapse-image); +#inspector-splitter-box .controlled.pane-collapsed { + visibility: collapse; } -#inspector-pane-toggle[pane-collapsed] { - list-style-image: var(--theme-pane-expand-image); +/* Use flex layout for the Inspector toolbar. For now, it's done + specifically for the Inspector toolbar since general rule applied + on .devtools-toolbar breaks breadcrumbs and also toolbars in other + panels (e.g. webconsole, debugger), these are not ready for HTML + layout yet. */ +#inspector-toolbar.devtools-toolbar { + display: flex; } -@media (max-width: 700px) { - #inspector-pane-toggle > .toolbarbutton-icon { - transform: rotate(90deg); - } +#inspector-toolbar.devtools-toolbar .devtools-toolbar-spacer { + flex-grow: 1; + display: inline-block; } /* Add element toolbar button */ - -#inspector-element-add-button { - list-style-image: url("chrome://devtools/skin/images/add.svg"); -} - -button#inspector-element-add-button::before { +#inspector-element-add-button::before { background-image: url("chrome://devtools/skin/images/add.svg"); list-style-image: url("chrome://devtools/skin/images/add.svg"); -moz-user-focus: normal; } -#inspector-search { - flex: unset; +#inspector-searchlabel { + overflow: hidden; } -/* TODO: bug 1265759: should apply to .devtools-searchinput once all searchbox - is converted to html*/ +/* Make sure the text is vertically centered in Inspector's + search box. This can be removed when the search box is + switched to HTML. + See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1265759 */ #inspector-searchbox { - width: 100%; + line-height: 19px; +} + +#inspector-search { + flex: unset; } /* Eyedropper toolbar button */ #inspector-eyedropper-toggle { - /* hidden by default, until we can check that the required highlighter exists */ - display: none; + /* Required to display tooltip when eyedropper is disabled in non-HTML documents */ + pointer-events: auto; } #inspector-eyedropper-toggle::before { @@ -119,163 +124,104 @@ button#inspector-element-add-button::before { line-height: initial; } -button#sidebar-toggle { - height: 100%; -} - -/* Set the minimum width for the side bar so, all tabs are - properly visible. The value can be decreased when bug 1281789 - is fixed and the all-tabs-menu is available again. */ -#inspector-sidebar-container { - overflow: hidden; - min-width: 300px; +#inspector-breadcrumbs-toolbar { + padding: 0px; + border-bottom-width: 0px; +/* border-top-width: 1px; + border-top-color: var(--breadcrumbs-border-color);*/ + /* Bug 1262668 - Use the same background as the body so the breadcrumbs toolbar doesn't + get mistaken as a splitter */ + background-color: var(--theme-alternate-toolbar-background); + background-image: none; + background-size: auto; + display: block; position: relative; } -div#inspector-sidebar { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; -} - -/* Sidebar tabs */ - -.tabs .tabs-navigation { - height: auto !important; -} - -.tabs .tabs-menu-item { - border-radius: 8px 8px 0px 0px; - margin-top: 2px; - border: 0 !important; - border-inline-end: 2px solid transparent !important; - border-bottom: none; - padding: 2px 4px 1px; - background-color: var(--theme-button-background); - color: var(--theme-button-color); - background-clip: padding-box; - height: auto !important; -} - -.tabs .tabs-menu-item a { - color: inherit !important; - padding: 0 !important; - border: 0; -} - -.tabs .tabs-menu-item:hover { - background-color: var(--theme-hover-background); - color: var(--theme-hover-color); +/* Remove LCARS startcap and endcap */ +div#inspector-breadcrumbs-toolbar::before, +div#inspector-breadcrumbs-toolbar::after { + display: none; } -.tabs .tabs-menu-item:hover:active { - background-color: var(--theme-active-background); - color: var(--theme-active-color); +#inspector-breadcrumbs-toolbar, +#inspector-breadcrumbs-toolbar * { + box-sizing: border-box; } -/* Tooltip: Events */ +#inspector-breadcrumbs { + display: flex; -#devtools-tooltip-events-container { - margin: -4px; /* Compensate for the .panel-arrowcontent padding. */ - max-width: 590px; - overflow-y: auto; + /* Break out of the XUL flexbox, so the splitter can still shrink the + markup view even if the contents of the breadcrumbs are wider than + the new width. */ + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; } -.event-header { +#inspector-breadcrumbs .scrollbutton-up, +#inspector-breadcrumbs .scrollbutton-down { + flex: 0; display: flex; align-items: center; - cursor: pointer; -} - -.event-header:first-child { - border-width: 0; -} - -.event-header:not(:first-child) { - border-width: 1px 0 0 0; } -.event-tooltip-event-type, -.event-tooltip-filename, -.event-tooltip-attributes { - margin-inline-start: 0; - flex-shrink: 0; - cursor: pointer; -} - -.event-tooltip-event-type { - font-weight: bold; - font-size: 13px; -} - -.event-tooltip-filename { - margin-inline-end: 0; - font-size: 100%; - flex-shrink: 1; +#inspector-breadcrumbs .html-arrowscrollbox-inner { + flex: 1; + display: flex; + overflow: hidden; } -.event-tooltip-debugger-icon { - width: 16px; - height: 16px; - margin-inline-end: 4px; - opacity: 0.6; +#inspector-breadcrumbs .breadcrumbs-widget-item { + white-space: nowrap; flex-shrink: 0; + font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; } -.event-tooltip-debugger-icon:hover { - opacity: 1; -} - -.event-tooltip-content-box { - display: none; - height: 100px; +#inspector-sidebar-container { overflow: hidden; - margin-inline-end: 0; - border: 1px solid var(--theme-splitter-color); - border-width: 1px 0 0 0; -} - -.event-toolbox-content-box iframe { + position: relative; height: 100%; } -.event-tooltip-content-box[open] { - display: block; +#inspector-sidebar { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; } -.event-tooltip-source-container { - margin-top: 5px; - margin-bottom: 10px; - margin-inline-start: 5px; - margin-inline-end: 0; +/* Override `-moz-user-focus:ignore;` from toolkit/content/minimal-xul.css */ +.inspector-tabpanel > * { + -moz-user-focus: normal; } -.event-tooltip-source { - margin-bottom: 0; +/* "no results" warning message displayed in the ruleview and in the computed view */ + +#ruleview-no-results, +#computedview-no-results { + color: var(--theme-body-color-inactive); + text-align: center; + margin: 5px; } -.event-tooltip-attributes-container { - display: flex; - flex-shrink: 0; - flex-grow: 1; - justify-content: flex-end; +/* Markup Box */ + +iframe { + border: 0; } -.event-tooltip-attributes-box { - display: flex; - flex-shrink: 0; - align-items: center; - border-radius: 3px; - padding: 2px; - margin-inline-start: 5px; - background-color: var(--theme-body-color-alt); - color: var(--theme-toolbar-background); +#markup-box { + width: 100%; + flex: 1; + min-height: 0; } -.event-tooltip-attributes { - margin: 0; - font-size: 9px; - padding-top: 2px; +#markup-box > iframe { + height: 100%; + width: 100%; }