Bug 1880488 [wpt PR 44609] - Update wpt metadata, a=testonly
[gecko.git] / devtools / client / themes / computed.css
blob6b6257059ebf8147ef9f3927539565eb379be3fd
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 .theme-dark {
6 --row-striped-background: rgba(255, 255, 255, 0.05);
9 .theme-light {
10 --row-striped-background: rgba(247, 247, 247, 0.8);
13 #sidebar-panel-computedview {
14 margin: 0;
15 display: flex;
16 flex-direction: column;
17 width: 100%;
18 height: 100%;
21 /* Reset the global rotation of the icon done for RTL layout.
22 Computed view is always LTR */
23 #sidebar-panel-computedview .theme-twisty:not(.open):dir(rtl),
24 #sidebar-panel-computedview .theme-twisty:not([open]):-moz-locale-dir(rtl) {
25 transform: rotate(-90deg);
28 #computedview-panel .inspector-tabpanel {
29 min-width: 0;
32 #computedview-panel #browser-style-checkbox-label {
33 overflow: hidden;
34 text-overflow: ellipsis;
37 #computed-container {
38 overflow: auto;
39 height: 100%;
42 /* This extra wrapper only serves as a way to get the content of the view focusable.
43 So that when the user reaches it either via keyboard or mouse, we know that the view
44 is focused and therefore can handle shortcuts.
45 However, for accessibility reasons, tabindex is set to -1 to avoid having to tab
46 through it, and the outline is hidden. */
47 #computed-container-focusable {
48 height: 100%;
49 outline: none;
52 #computed-toolbar {
53 display: flex;
54 align-items: center;
55 user-select: none;
58 #browser-style-checkbox {
59 /* Bug 1200073 - extra space before the browser styles checkbox so
60 they aren't squished together in a small window. Put also
61 an extra space after. */
62 margin-inline-start: 5px;
63 margin-inline-end: 0;
66 #browser-style-checkbox-label {
67 white-space: nowrap;
68 padding-inline-start: 5px;
69 margin-inline-end: 5px;
72 #computed-property-container {
73 user-select: text;
74 overflow-y: auto;
75 overflow-x: hidden;
76 list-style: none;
77 margin: 0;
78 padding: 0;
79 /* Ajust outline to make it visible, otherwise it could be clipped, as the container takes the whole window size */
80 outline-offset: -2px;
83 #computed-property-container > :nth-child(2n of .computed-property-view) {
84 background: var(--row-striped-background);
87 .computed-property-hidden {
88 display: none;
91 .computed-property-view {
92 padding: 2px 0px;
93 padding-inline-start: 5px;
94 display: flex;
95 flex-wrap: wrap;
96 /* Ajust outline to make it visible as the list items take the the whole window width */
97 outline-offset: -2px;
100 .computed-property-name-container {
101 width: 230px;
104 .computed-property-value-container {
105 display: flex;
106 flex: 1 1 168px;
107 overflow: hidden;
110 .computed-property-name-container > *,
111 .computed-property-value-container > * {
112 display: inline-block;
113 vertical-align: middle;
116 .computed-property-name {
117 outline: 0 !important;
120 .computed-other-property-value::before {
121 content: "";
122 display: inline-block;
123 vertical-align: -0.5px;
124 width: 8px;
125 height: 8px;
126 margin: 0 1px;
127 background-image: url(images/arrow-e.svg);
128 background-repeat: no-repeat;
129 background-size: contain;
130 -moz-context-properties: fill;
131 fill: var(--theme-text-color-inactive);
134 .computed-other-property-value:dir(rtl)::before {
135 transform: scaleX(-1);
138 .computed-property-value {
139 padding-inline-start: 14px;
140 outline: 0 !important;
143 .matchedselectors {
144 width: 100%;
145 padding-inline-start: 12px;
148 * Matched selectors element is always created, but is empty until the arrow is expanded.
149 * We only want the margin to appear when the matched selectors are visible.
151 &:not(:empty) {
152 margin-block-start: 4px;
156 /* Bug 1360238 - getSelection displays an extra "\n" on multiple sibling block elements.
157 We rely on this behavior to add an extra "\n" between matched selectors (Bug 1222737).
158 Therefore we use <div> elements around matched selectors and need this class
159 to keep them inline. We do that to avoid doing any formatting logic in JS.
160 Once Bug 1360238 will be fixed, we'll probably have to change the behavior
161 and remove this class. */
162 .fix-get-selection {
163 display: inline;
166 .visually-hidden {
167 clip: rect(1px, 1px, 1px, 1px);
168 clip-path: inset(50%);
169 height: 1px;
170 width: 1px;
171 margin: -1px;
172 overflow: hidden;
173 padding: 0;
174 position: absolute;
177 /* From skin */
178 .computed-expander {
179 visibility: hidden;
182 .computed-expandable {
183 visibility: visible;
186 .match {
187 visibility: hidden;
190 .matchedselectors > p {
191 clear: both;
192 margin: 0;
193 margin-inline-end: 2px;
194 padding: 2px;
195 overflow-x: hidden;
196 border-style: dotted;
197 border-color: var(--theme-splitter-color);
198 border-width: 1px 1px 0 1px;
201 .matchedselectors > p:last-of-type {
202 border-bottom-width: 1px;
205 .rule-text.matched {
206 text-decoration: line-through;
209 .rule-text.parentmatch {
210 opacity: 0.5;
213 #computed-no-results {
214 height: 100%;
217 .onlyuserstyles {
218 cursor: pointer;
221 .legendKey {
222 margin: 0 5px;
225 .computed-link {
226 padding: 0 3px;
227 cursor: pointer;
228 float: inline-end;
231 /* Take away these two :visited rules to get a core dumper */
232 /* See https://bugzilla.mozilla.org/show_bug.cgi?id=575675#c30 */
234 .computed-link {
235 text-decoration: underline;
236 text-decoration-skip-ink: none;
239 .computed-colorswatch {
240 border-radius: 50%;
241 width: 0.9em;
242 height: 0.9em;
243 vertical-align: middle;
244 margin-inline-end: 5px;
245 display: inline-block;
246 position: relative;
249 .computed-colorswatch::before {
250 content: '';
251 background-color: #eee;
252 background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
253 linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
254 background-size: 12px 12px;
255 background-position: 0 0, 6px 6px;
256 position: absolute;
257 border-radius: 50%;
258 top: 0;
259 left: 0;
260 right: 0;
261 bottom: 0;
262 z-index: -1;