[go: nahoru, domu]

blob: 6089ae91f5cb51fd57b5c4d2d27aa0094473dbd4 [file] [log] [blame]
Tim van der Lippea53672d2021-07-08 14:52:351/*
2 * Copyright 2021 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
Blink Reformat4c46d092018-04-07 15:32:377.data-grid {
Mathias Bynensb0c1f4b2020-05-15 14:34:418 position: relative;
Jack Franklincea0d712021-05-05 13:26:429 border: 1px solid var(--color-details-hairline-light) !important; /* stylelint-disable-line declaration-no-important */
Jack Franklin49a94812021-02-05 14:20:1210 /* See: crbug.com/1152736 for color variable migration. */
Mathias Bynensb0c1f4b2020-05-15 14:34:4111 line-height: 120%;
Blink Reformat4c46d092018-04-07 15:32:3712}
13
14.data-grid table {
Mathias Bynensb0c1f4b2020-05-15 14:34:4115 table-layout: fixed;
16 border-spacing: 0;
17 border-collapse: separate;
18 height: 100%;
19 width: 100%;
Blink Reformat4c46d092018-04-07 15:32:3720}
21
22.data-grid .header-container,
23.data-grid .data-container {
Mathias Bynensb0c1f4b2020-05-15 14:34:4124 position: absolute;
25 left: 0;
26 right: 0;
27 overflow-x: hidden;
Victor Porofa294d0e2021-09-03 15:40:0528 background-color: var(--color-background);
Blink Reformat4c46d092018-04-07 15:32:3729}
30
31.data-grid .header-container {
Mathias Bynensb0c1f4b2020-05-15 14:34:4132 top: 0;
33 height: 21px;
Blink Reformat4c46d092018-04-07 15:32:3734}
35
36.data-grid .data-container {
Mathias Bynensb0c1f4b2020-05-15 14:34:4137 top: 21px;
38 bottom: 0;
39 overflow-y: overlay;
40 transform: translateZ(0);
Blink Reformat4c46d092018-04-07 15:32:3741}
42
Brandon Goddard5bd7d462019-12-17 20:40:1443.data-grid .aria-live-label {
Mathias Bynensb0c1f4b2020-05-15 14:34:4144 width: 1px;
45 height: 1px;
46 overflow: hidden;
Brandon Goddard5bd7d462019-12-17 20:40:1447}
48
Blink Reformat4c46d092018-04-07 15:32:3749.data-grid.inline .header-container,
50.data-grid.inline .data-container {
Mathias Bynensb0c1f4b2020-05-15 14:34:4151 position: static;
Blink Reformat4c46d092018-04-07 15:32:3752}
53
Sigurd Schneidera152d612020-06-24 13:50:5854.data-grid .corner {
55 width: 14px;
56 padding-right: 0;
57 padding-left: 0;
Tim van der Lippeaf02dec2021-05-04 13:56:1958 border-left: 0 none transparent !important; /* stylelint-disable-line declaration-no-important */
Sigurd Schneidera152d612020-06-24 13:50:5859}
60
Blink Reformat4c46d092018-04-07 15:32:3761.data-grid.inline .corner {
Mathias Bynensb0c1f4b2020-05-15 14:34:4162 display: none;
Blink Reformat4c46d092018-04-07 15:32:3763}
64
Blink Reformat4c46d092018-04-07 15:32:3765.data-grid.data-grid-fits-viewport .corner {
Mathias Bynensb0c1f4b2020-05-15 14:34:4166 display: none;
Blink Reformat4c46d092018-04-07 15:32:3767}
68
Blink Reformat4c46d092018-04-07 15:32:3769.data-grid .top-filler-td,
70.data-grid .bottom-filler-td {
Tim van der Lippeaf02dec2021-05-04 13:56:1971 height: auto !important; /* stylelint-disable-line declaration-no-important */
72 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
Blink Reformat4c46d092018-04-07 15:32:3773}
74
75.data-grid table.data {
Mathias Bynensb0c1f4b2020-05-15 14:34:4176 position: absolute;
77 left: 0;
78 top: 0;
79 right: 0;
80 bottom: 0;
81 border-top: 0 none transparent;
82 table-layout: fixed;
Blink Reformat4c46d092018-04-07 15:32:3783}
84
85.data-grid.inline table.data {
Mathias Bynensb0c1f4b2020-05-15 14:34:4186 position: static;
Blink Reformat4c46d092018-04-07 15:32:3787}
88
89.data-grid table.data tr {
Mathias Bynensb0c1f4b2020-05-15 14:34:4190 display: none;
91 height: 20px;
Blink Reformat4c46d092018-04-07 15:32:3792}
93
94.data-grid table.data tr.revealed {
Mathias Bynensb0c1f4b2020-05-15 14:34:4195 display: table-row;
Blink Reformat4c46d092018-04-07 15:32:3796}
97
Jack Franklincea0d712021-05-05 13:26:4298.striped-data-grid .revealed.data-grid-data-grid-node:nth-child(odd):not(.dirty):not(.selected),
99.striped-data-grid-starts-with-odd .revealed.data-grid-data-grid-node:nth-child(even):not(.dirty):not(.selected) {
100 background-color: var(--color-background-elevation-1);
Blink Reformat4c46d092018-04-07 15:32:37101}
102
103.data-grid td,
104.data-grid th {
Mathias Bynensb0c1f4b2020-05-15 14:34:41105 white-space: nowrap;
106 text-overflow: ellipsis;
107 overflow: hidden;
108 line-height: 18px;
109 height: 18px;
Jack Franklincea0d712021-05-05 13:26:42110 border-left: 1px solid var(--color-details-hairline);
Mathias Bynensb0c1f4b2020-05-15 14:34:41111 padding: 1px 4px;
Blink Reformat4c46d092018-04-07 15:32:37112}
113
Blink Reformat4c46d092018-04-07 15:32:37114.data-grid td {
Mathias Bynensb0c1f4b2020-05-15 14:34:41115 vertical-align: top;
116 user-select: text;
Blink Reformat4c46d092018-04-07 15:32:37117}
118
119.data-grid th {
Mathias Bynensb0c1f4b2020-05-15 14:34:41120 text-align: left;
Jack Franklin374ec392021-04-27 15:36:55121 background-color: var(--color-background-elevation-1);
Jack Franklincea0d712021-05-05 13:26:42122 border-bottom: 1px solid var(--color-details-hairline);
Mathias Bynensb0c1f4b2020-05-15 14:34:41123 font-weight: normal;
124 vertical-align: middle;
Blink Reformat4c46d092018-04-07 15:32:37125}
126
Sigurd Schneidera152d612020-06-24 13:50:58127.data-grid th:first-child,
128.data-grid td:first-child {
Tim van der Lippeaf02dec2021-05-04 13:56:19129 border-left: none !important; /* stylelint-disable-line declaration-no-important */
Sigurd Schneidera152d612020-06-24 13:50:58130}
131
Blink Reformat4c46d092018-04-07 15:32:37132.data-grid td > div,
133.data-grid th > div {
Mathias Bynensb0c1f4b2020-05-15 14:34:41134 white-space: nowrap;
135 text-overflow: ellipsis;
136 overflow: hidden;
Alex Rudenko32b93f82020-06-08 10:46:08137 min-width: 8px;
Blink Reformat4c46d092018-04-07 15:32:37138}
139
140.data-grid td.editing > div {
Mathias Bynensb0c1f4b2020-05-15 14:34:41141 text-overflow: clip;
Blink Reformat4c46d092018-04-07 15:32:37142}
143
144.data-grid .center {
Mathias Bynensb0c1f4b2020-05-15 14:34:41145 text-align: center;
Blink Reformat4c46d092018-04-07 15:32:37146}
147
148.data-grid .right {
Mathias Bynensb0c1f4b2020-05-15 14:34:41149 text-align: right;
Blink Reformat4c46d092018-04-07 15:32:37150}
151
152.data-grid th.sortable {
Mathias Bynensb0c1f4b2020-05-15 14:34:41153 position: relative;
Blink Reformat4c46d092018-04-07 15:32:37154}
155
Blink Reformat4c46d092018-04-07 15:32:37156.data-grid th .sort-order-icon-container {
Kateryna Prokopenko69666ff2021-10-18 12:32:57157 background-color: var(--color-background-elevation-1);
Mathias Bynensb0c1f4b2020-05-15 14:34:41158 position: absolute;
159 top: 1px;
160 right: 0;
161 bottom: 1px;
162 display: flex;
163 align-items: center;
Blink Reformat4c46d092018-04-07 15:32:37164}
165
Kateryna Prokopenko69666ff2021-10-18 12:32:57166.data-grid th:hover .sort-order-icon-container {
167 background-color: var(--color-background-highlight);
168}
169
Blink Reformat4c46d092018-04-07 15:32:37170.data-grid th .sort-order-icon {
Mathias Bynensb0c1f4b2020-05-15 14:34:41171 margin-right: 4px;
172 margin-bottom: -2px;
173 display: none;
Blink Reformat4c46d092018-04-07 15:32:37174}
175
176.data-grid th.sort-ascending .sort-order-icon,
177.data-grid th.sort-descending .sort-order-icon {
Mathias Bynensb0c1f4b2020-05-15 14:34:41178 display: block;
Blink Reformat4c46d092018-04-07 15:32:37179}
180
Danil Somsikovb9b8df32021-09-13 07:28:26181.data-grid th.sort-ascending,
182.data-grid th.sort-descending {
183 padding-right: 14px;
184}
185
Blink Reformat4c46d092018-04-07 15:32:37186.data-grid th.sortable:hover {
Jack Franklin06c18612021-07-19 08:58:00187 background-color: var(--color-background-highlight);
Blink Reformat4c46d092018-04-07 15:32:37188}
189
Brandon Goddard4d4c87f2019-07-30 20:39:47190.data-grid .top-filler-td {
Mathias Bynensb0c1f4b2020-05-15 14:34:41191 border-bottom: 0 none transparent;
192 line-height: 0;
Brandon Goddard4d4c87f2019-07-30 20:39:47193}
194
Blink Reformat4c46d092018-04-07 15:32:37195.data-grid button {
Mathias Bynensb0c1f4b2020-05-15 14:34:41196 line-height: 18px;
197 color: inherit;
Blink Reformat4c46d092018-04-07 15:32:37198}
199
200.data-grid td.disclosure::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41201 user-select: none;
Tim van der Lippe88ba72d2021-03-04 14:54:14202 -webkit-mask-image: var(--image-file-treeoutlineTriangles);
Tim van der Lippe2efbb1b2020-07-14 14:24:20203 -webkit-mask-position: 0 0;
204 -webkit-mask-size: 32px 24px;
Mathias Bynensb0c1f4b2020-05-15 14:34:41205 float: left;
206 width: 8px;
207 height: 12px;
208 margin-right: 2px;
209 content: "";
210 position: relative;
211 top: 3px;
Jack Franklincea0d712021-05-05 13:26:42212 background-color: var(--color-text-secondary);
Blink Reformat4c46d092018-04-07 15:32:37213}
214
215.data-grid tr:not(.parent) td.disclosure::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41216 background-color: transparent;
Blink Reformat4c46d092018-04-07 15:32:37217}
218
Blink Reformat4c46d092018-04-07 15:32:37219.data-grid tr.expanded td.disclosure::before {
Tim van der Lippe2efbb1b2020-07-14 14:24:20220 -webkit-mask-position: -16px 0;
Blink Reformat4c46d092018-04-07 15:32:37221}
222
223.data-grid table.data tr.revealed.selected {
Jack Franklincea0d712021-05-05 13:26:42224 background-color: var(--color-background-highlight);
Mathias Bynensb0c1f4b2020-05-15 14:34:41225 color: inherit;
Blink Reformat4c46d092018-04-07 15:32:37226}
227
Sigurd Schneider4b84d5b2021-02-17 11:03:14228.data-grid table.data tr.revealed.selected.dirty {
Jack Franklin9b1435f2021-04-28 13:25:49229 color: var(--legacy-selection-fg-color);
Sigurd Schneider4b84d5b2021-02-17 11:03:14230}
231
Peter Marshall9a3d85f2020-08-12 14:38:00232.data-grid.no-selection:focus-visible {
Tim van der Lippeaf02dec2021-05-04 13:56:19233 border: 1px solid var(--legacy-accent-color) !important; /* stylelint-disable-line declaration-no-important */
Brandon Goddardcba421f2019-10-31 16:09:49234}
235
Blink Reformat4c46d092018-04-07 15:32:37236.data-grid:focus table.data tr.selected {
Jack Franklin9b1435f2021-04-28 13:25:49237 background-color: var(--legacy-selection-bg-color);
238 color: var(--legacy-selection-fg-color);
Blink Reformat4c46d092018-04-07 15:32:37239}
240
Sigurd Schneider4b84d5b2021-02-17 11:03:14241.data-grid:focus tr.selected.dirty {
Jack Franklincea0d712021-05-05 13:26:42242 --override-data-grid-dirty-background-color: hsl(0deg 100% 70%);
Sigurd Schneider4b84d5b2021-02-17 11:03:14243}
244
245.data-grid table.data tr.selected.dirty {
Jack Franklincea0d712021-05-05 13:26:42246 --override-data-grid-dirty-background-color: hsl(0deg 100% 30%);
247
248 background-color: var(--override-data-grid-dirty-background-color);
Sigurd Schneider4b84d5b2021-02-17 11:03:14249}
250
Blink Reformat4c46d092018-04-07 15:32:37251.data-grid:focus tr.selected .devtools-link {
Jack Franklin9b1435f2021-04-28 13:25:49252 color: var(--legacy-selection-fg-color);
Blink Reformat4c46d092018-04-07 15:32:37253}
254
255.data-grid:focus tr.parent.selected td.disclosure::before {
Jack Franklin9b1435f2021-04-28 13:25:49256 background-color: var(--legacy-selection-fg-color);
Tim van der Lippe2efbb1b2020-07-14 14:24:20257 -webkit-mask-position: 0 0;
Blink Reformat4c46d092018-04-07 15:32:37258}
259
260.data-grid:focus tr.expanded.selected td.disclosure::before {
Jack Franklin9b1435f2021-04-28 13:25:49261 background-color: var(--legacy-selection-fg-color);
Tim van der Lippe2efbb1b2020-07-14 14:24:20262 -webkit-mask-position: -16px 0;
Blink Reformat4c46d092018-04-07 15:32:37263}
264
265.data-grid tr.inactive {
Jack Franklincea0d712021-05-05 13:26:42266 color: var(--color-text-disabled);
Mathias Bynensb0c1f4b2020-05-15 14:34:41267 font-style: italic;
Blink Reformat4c46d092018-04-07 15:32:37268}
269
270.data-grid tr.dirty {
Jack Franklincea0d712021-05-05 13:26:42271 --override-data-grid-dirty-background-color: hsl(0deg 100% 92%);
272
273 background-color: var(--override-data-grid-dirty-background-color);
274 color: var(--color-red);
Mathias Bynensb0c1f4b2020-05-15 14:34:41275 font-style: normal;
Blink Reformat4c46d092018-04-07 15:32:37276}
277
Brian Cui6a60ef12019-12-18 21:31:48278.data-grid td.show-more {
Mathias Bynensb0c1f4b2020-05-15 14:34:41279 white-space: normal;
Brian Cui6a60ef12019-12-18 21:31:48280}
281
282.data-grid td.show-more::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41283 display: none;
Brian Cui6a60ef12019-12-18 21:31:48284}
285
Blink Reformat4c46d092018-04-07 15:32:37286.data-grid-resizer {
Mathias Bynensb0c1f4b2020-05-15 14:34:41287 position: absolute;
288 top: 0;
289 bottom: 0;
290 width: 5px;
291 z-index: 500;
Blink Reformat4c46d092018-04-07 15:32:37292}
Kham Udome2250012020-02-17 20:40:25293
294@media (forced-colors: active) {
Tim van der Lippef746fe42021-11-04 16:11:54295 .sort-order-icon-container [is=ui-icon].icon-mask,
Mathias Bynensb0c1f4b2020-05-15 14:34:41296 .data-grid td.disclosure::before {
297 forced-color-adjust: none;
298 background-color: ButtonText;
299 }
300
Peter Marshall9a3d85f2020-08-12 14:38:00301 .data-grid.no-selection:focus-visible * {
302 color: ButtonText;
303 }
304
Sigurd Schneidera152d612020-06-24 13:50:58305 .data-grid th.sortable:hover *,
Tim van der Lippef746fe42021-11-04 16:11:54306 .data-grid th.sortable:hover .sort-order-icon-container [is=ui-icon].icon-mask,
Sigurd Schneidera152d612020-06-24 13:50:58307 .data-grid tr.parent.selected td.disclosure::before,
Mathias Bynensb0c1f4b2020-05-15 14:34:41308 .data-grid:focus tr.parent.selected td.disclosure::before,
Sigurd Schneidera152d612020-06-24 13:50:58309 .data-grid table.data tr.parent.revealed:hover td.disclosure::before {
Mathias Bynensb0c1f4b2020-05-15 14:34:41310 background-color: HighlightText;
311 }
312
Sigurd Schneidera152d612020-06-24 13:50:58313 .striped-data-grid .revealed.data-grid-data-grid-node:nth-child(odd),
314 .striped-data-grid-starts-with-odd .revealed.data-grid-data-grid-node:nth-child(even),
315 .request-cookies-view tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(2n),
316 .cookies-table tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(odd) {
317 background-color: canvas;
318 }
319
Peter Marshall9a3d85f2020-08-12 14:38:00320 .data-grid.no-selection:focus-visible {
Sigurd Schneidera152d612020-06-24 13:50:58321 forced-color-adjust: none;
322 border-color: Highlight;
323 }
324
Mathias Bynensb0c1f4b2020-05-15 14:34:41325 .data-grid th.sortable:hover,
326 .data-grid table.data tr.revealed:hover,
327 .data-grid table.data tr.revealed.selected,
328 .striped-data-grid .revealed:hover.data-grid-data-grid-node:nth-child(odd),
329 .striped-data-grid-starts-with-odd .revealed:hover.data-grid-data-grid-node:nth-child(even),
330 .request-cookies-view tr.revealed:hover.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(2n),
331 .cookies-table tr.revealed:hover.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(odd) {
332 forced-color-adjust: none;
333 background-color: Highlight;
334 }
335
Mathias Bynensb0c1f4b2020-05-15 14:34:41336 .data-grid table.data tr.revealed:hover *,
337 .data-grid table.data tr.revealed.selected *,
338 .data-grid table.data tr.revealed:focus *,
339 .data-grid table.data tr.revealed:hover .heap-object-tag {
340 color: HighlightText;
341 }
342
Mathias Bynensb0c1f4b2020-05-15 14:34:41343 .data-grid th {
344 background-color: canvas;
345 border-color: Highlight;
346 }
Kham Udome2250012020-02-17 20:40:25347}