/* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ .theme-dark { --row-striped-background: rgba(255, 255, 255, 0.05); } .theme-light { --row-striped-background: rgba(247, 247, 247, 0.8); } #sidebar-panel-computedview { margin: 0; display: flex; flex-direction: column; width: 100%; height: 100%; } /* Reset the global rotation of the icon done for RTL layout. Computed view is always LTR */ #sidebar-panel-computedview .theme-twisty:not(.open):dir(rtl), #sidebar-panel-computedview .theme-twisty:not([open]):-moz-locale-dir(rtl) { transform: rotate(-90deg); } #computedview-panel .inspector-tabpanel { min-width: 0; } #computedview-panel #browser-style-checkbox-label { overflow: hidden; text-overflow: ellipsis; } #computed-container { overflow: auto; height: 100%; } /* This extra wrapper only serves as a way to get the content of the view focusable. So that when the user reaches it either via keyboard or mouse, we know that the view is focused and therefore can handle shortcuts. However, for accessibility reasons, tabindex is set to -1 to avoid having to tab through it, and the outline is hidden. */ #computed-container-focusable { height: 100%; outline: none; } #computed-toolbar { display: flex; align-items: center; user-select: none; } #browser-style-checkbox { /* Bug 1200073 - extra space before the browser styles checkbox so they aren't squished together in a small window. Put also an extra space after. */ margin-inline-start: 5px; margin-inline-end: 0; } #browser-style-checkbox-label { white-space: nowrap; padding-inline-start: 5px; margin-inline-end: 5px; } #computed-property-container { user-select: text; overflow-y: auto; overflow-x: hidden; flex: auto; border-top: 1px solid var(--theme-splitter-color); margin-top: -1px; } .row-striped { background: var(--row-striped-background); } .computed-property-hidden { display: none; } .computed-property-view { padding: 2px 0px; padding-inline-start: 5px; display: flex; flex-wrap: wrap; } .computed-property-name-container { width: 230px; } .computed-property-value-container { display: flex; flex: 1 1 168px; overflow: hidden; } .computed-property-name-container > *, .computed-property-value-container > * { display: inline-block; vertical-align: middle; } .computed-property-name { outline: 0 !important; } .computed-other-property-value::before { content: ""; display: inline-block; vertical-align: -0.5px; width: 8px; height: 8px; margin: 0 1px; background-image: url(images/arrow-e.svg); background-repeat: no-repeat; background-size: contain; -moz-context-properties: fill; fill: var(--theme-text-color-inactive); } .computed-other-property-value:dir(rtl)::before { transform: scaleX(-1); } .computed-property-value { padding-inline-start: 14px; outline: 0 !important; } .computed-property-content { padding-inline-start: 17px; } /* Bug 1360238 - getSelection displays an extra "\n" on multiple sibling block elements. We rely on this behavior to add an extra "\n" between matched selectors (Bug 1222737). Therefore we use