Skip to content

Commit 2d38697

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
Semi-automatically clean up unused css variables
..using gpaste/4761439898959872 Bug:none Change-Id: I99c56343825e27cbf29b9e285f5fd4b8132aafa4 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6198364 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]>
1 parent 3ad8f26 commit 2d38697

File tree

2 files changed

+0
-140
lines changed

2 files changed

+0
-140
lines changed

front_end/application_color_tokens.css

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
--icon-action: var(--sys-color-primary-bright);
88
--icon-arrow-main-thread: var(--sys-color-primary-bright);
99
--icon-checkmark-green: var(--sys-color-green-bright);
10-
--icon-checkmark-purple: var(--sys-color-purple-bright);
11-
--icon-checkmark-red: var(--sys-color-error-bright);
12-
--icon-contrast-issue: var(--sys-color-error-bright);
1310
--icon-default: var(--sys-color-on-surface-subtle);
1411
--icon-default-hover: var(--sys-color-on-surface);
1512
--icon-disabled: var(--sys-color-state-disabled);
@@ -27,7 +24,6 @@
2724
--icon-folder-primary: var(--sys-color-on-surface-subtle);
2825
--icon-folder-deployed: var(--sys-color-primary-bright);
2926
--icon-folder-workspace: var(--sys-color-orange);
30-
--icon-force-white: var(--sys-color-on-tonal-container);
3127
--icon-gap-focus-selected: var(--sys-color-tonal-container);
3228
--icon-gap-default: var(--sys-color-cdt-base-container);
3329
--icon-gap-inactive: var(--sys-color-neutral-container);
@@ -38,14 +34,10 @@
3834
--icon-link: var(--sys-color-primary-bright);
3935
--icon-no-request: var(--sys-color-orange-bright);
4036
--icon-primary: var(--sys-color-primary-bright);
41-
--icon-record: var(--sys-color-error-bright);
4237
--icon-request-response: var(--sys-color-primary-bright);
4338
--icon-request: var(--sys-color-on-surface-subtle);
44-
--icon-security-lock: var(--sys-color-green-bright);
4539
--icon-css: var(--sys-color-purple-bright);
4640
--icon-css-hover: var(--sys-color-purple);
47-
--icon-status-code-ok: var(--sys-color-tertiary-bright);
48-
--icon-stop: var(--sys-color-error-bright);
4941
--icon-toggled: var(--sys-color-primary-bright);
5042
--icon-warning: var(--sys-color-orange-bright);
5143
--ui-text: var(--sys-color-on-surface-subtle);
@@ -68,84 +60,33 @@
6860
--color-background-inverted-opacity-50: rgb(0 0 0 / 50%);
6961
--color-background-opacity-50: rgb(255 255 255 / 50%);
7062
--color-background-opacity-80: rgb(255 255 255 / 80%);
71-
--color-background-elevation-0: rgb(248 249 249);
7263
--color-background-elevation-1: rgb(241 243 244);
7364
--color-background-elevation-2: rgb(222 225 230);
7465
/** Used when the elevation is visible only on dark theme */
7566
--color-background-elevation-dark-only: var(--color-background);
76-
--color-background-highlight: rgb(218 220 224);
7767
/** To draw grid lines behind elements */
7868
--divider-line: rgb(0 0 0 / 10%);
79-
80-
/**
81-
* When hovering over an element and the background should be a little
82-
* bit darker. For example, when hovering over a node in the flame chart
83-
* tree in the performance panel. This color is intentionally opaque,
84-
* since the color of the underlying element should still be dominant.
85-
*/
86-
--color-background-hover-overlay: rgb(56 121 217 / 10%);
87-
/**
88-
* Used when selecting a range of a section, for example when
89-
* selecting a range in the performance panel timeline.
90-
*/
91-
--color-selection-highlight: rgb(56 121 217 / 30%);
92-
--color-selection-highlight-border: rgb(16 81 177);
93-
/**
94-
* When showing matching elements of a particular search filter (for example
95-
* when showing all matching css selectors/rules in the elements style
96-
* pane). The highlight is intended to be used on top of the original background
97-
* color and text color.
98-
*/
99-
--color-match-highlight: rgb(56 121 217 / 20%);
10069
--color-text-primary: rgb(32 33 36);
10170
--color-text-secondary: rgb(95 99 104);
102-
--color-text-secondary-selected: rgb(188 185 182);
10371
--color-text-disabled: rgb(128 134 139);
104-
--color-details-hairline: rgb(202 205 209);
105-
--color-details-hairline-light: rgb(223 225 227);
106-
--color-accent-red: rgb(217 48 37);
10772
--color-red: rgb(238 68 47);
108-
--color-accent-green: rgb(24 128 56);
109-
--color-green: rgb(99 172 190);
110-
--color-link: var(--color-primary-old);
111-
--color-syntax-1: rgb(200 0 0);
112-
--color-syntax-2: rgb(136 18 128);
113-
--color-syntax-3: rgb(26 26 166);
114-
--color-syntax-4: rgb(153 69 0);
115-
--color-syntax-5: rgb(132 240 255);
116-
--color-syntax-6: rgb(35 110 37);
117-
--color-syntax-7: rgb(48 57 66);
118-
--color-syntax-8: rgb(168 148 166);
11973
--drop-shadow:
12074
0 0 0 1px rgb(0 0 0 / 5%),
12175
0 2px 4px rgb(0 0 0 / 20%),
12276
0 2px 6px rgb(0 0 0 / 10%);
12377
--drop-shadow-depth-1:
12478
0 1px 2px rgb(60 64 67 / 30%),
12579
0 1px 3px 1px rgb(60 64 67 / 15%);
126-
--drop-shadow-depth-2:
127-
0 1px 2px rgb(60 64 67 / 30%),
128-
0 2px 6px 2px rgb(60 64 67 / 15%);
12980
--drop-shadow-depth-3:
13081
0 4px 8px 3px rgb(60 64 67 / 15%),
13182
0 1px 3px rgb(60 64 67 / 30%);
132-
--drop-shadow-depth-4:
133-
0 6px 10px 4px rgb(60 64 67 / 15%),
134-
0 2px 3px rgb(60 64 67 / 30%);
135-
--drop-shadow-depth-5:
136-
0 8px 12px 6px rgb(60 64 67 / 15%),
137-
0 4px 4px rgb(60 64 67 / 30%);
13883
--box-shadow-outline-color: rgb(0 0 0 / 50%);
13984
/** These are the colors of the native Mac scrollbars */
14085
--color-scrollbar-mac: rgb(143 143 143 / 60%);
14186
--color-scrollbar-mac-hover: rgb(64 64 64 / 60%);
14287
/** These colors are used on all non-Mac platforms for scrollbars */
14388
--color-scrollbar-other: rgb(0 0 0 / 50%);
14489
--color-scrollbar-other-hover: rgb(0 0 0 / 50%);
145-
/** These colors have the same value in dark mode */
146-
--lighthouse-red: rgb(255 78 67);
147-
--lighthouse-orange: rgb(255 164 0);
148-
--lighthouse-green: rgb(12 206 106);
14990
/** The colors are for issue icons and related highlights */
15091
--issue-color-red: rgb(235 57 65);
15192
--issue-color-yellow: rgb(242 153 0);
@@ -157,7 +98,6 @@
15798
--color-error-text: #f00;
15899

159100
/* Colors used by the code editor */
160-
--color-selected-option: #fff;
161101
--color-continue-to-location: var(--ref-palette-blue90);
162102
--color-continue-to-location-hover: var(--ref-palette-blue80);
163103
--color-continue-to-location-hover-border: var(--ref-palette-blue70);
@@ -170,10 +110,6 @@
170110

171111
/* Color tokens for icons */
172112
--color-primary: rgb(11 87 208);
173-
--color-orange: rgb(169 91 18);
174-
--color-orange-bright: rgb(232 143 33);
175-
--color-error: rgb(179 38 30);
176-
--color-error-bright: rgb(220 54 46);
177113

178114
/* Color for strokestyle of canvas in flame chart */
179115
/* It is the same color as sys-color-primary but with a 10% opacity */
@@ -258,7 +194,6 @@
258194
/**
259195
* Colors for performance panel annotations list in sidebar.
260196
*/
261-
--app-color-performance-sidebar-entry-label: var(--ref-palette-purple80);
262197
--app-color-performance-sidebar-time-range: var(--ref-palette-pink60);
263198
--app-color-performance-sidebar-label-text-dark: var(--ref-palette-neutral10);
264199
--app-color-performance-sidebar-label-text-light: var(--ref-palette-neutral100);
@@ -269,11 +204,6 @@
269204
--app-color-card-background: var(--sys-color-base-container-elevated);
270205
--app-color-card-divider: color-mix(in srgb, var(--ref-palette-neutral0) 6%, transparent);
271206

272-
/**
273-
* Color for scrollable area shadow gradient
274-
*/
275-
--app-color-scroll-area-shadow-start: color-mix(in srgb, var(--ref-palette-neutral0) 30%, transparent);
276-
277207
/**
278208
* Colors for element panel sidebar subtitle
279209
*/
@@ -308,53 +238,24 @@
308238
--color-background-inverted-opacity-50: rgb(255 255 255 / 50%);
309239
--color-background-opacity-50: rgb(32 33 36 / 50%);
310240
--color-background-opacity-80: rgb(32 33 36 / 80%);
311-
--color-background-elevation-0: rgb(32 32 35);
312241
--color-background-elevation-1: rgb(41 42 45);
313242
--color-background-elevation-2: rgb(53 54 58);
314243
--color-background-elevation-dark-only: var(--color-background-elevation-1);
315-
--color-background-highlight: rgb(69 69 69);
316244
--divider-line: rgb(255 255 255 / 10%);
317-
--color-background-hover-overlay: rgb(56 121 217 / 10%);
318-
--color-selection-highlight: rgb(251 202 70 / 20%);
319-
--color-selection-highlight-border: rgb(251 202 70);
320-
--color-match-highlight: rgb(56 121 217 / 35%);
321245
--color-text-primary: rgb(232 234 237);
322246
--color-text-secondary: rgb(154 160 166);
323-
--color-text-secondary-selected: rgb(188 185 182);
324247
--color-text-disabled: rgb(128 134 139);
325-
--color-details-hairline: rgb(73 76 80);
326-
--color-details-hairline-light: rgb(54 57 59);
327-
--color-accent-red: rgb(242 139 130);
328248
--color-red: rgb(237 78 76);
329-
--color-accent-green: rgb(129 201 149);
330-
--color-link: var(--color-primary-old);
331-
--color-syntax-1: rgb(53 212 199);
332-
--color-syntax-2: rgb(93 176 215);
333-
--color-syntax-3: rgb(242 151 102);
334-
--color-syntax-4: rgb(155 187 220);
335-
--color-syntax-5: rgb(132 240 255);
336-
--color-syntax-6: rgb(171 171 171);
337-
--color-syntax-7: rgb(207 208 208);
338-
--color-syntax-8: rgb(93 176 215);
339249
--drop-shadow:
340250
0 0 0 1px rgb(255 255 255 / 20%),
341251
0 2px 4px 2px rgb(0 0 0 / 20%),
342252
0 2px 6px 2px rgb(0 0 0 / 10%);
343253
--drop-shadow-depth-1:
344254
0 1px 2px rgb(0 0 0 / 30%),
345255
0 1px 3px 1px rgb(0 0 0 / 15%);
346-
--drop-shadow-depth-2:
347-
0 1px 2px rgb(0 0 0 / 30%),
348-
0 2px 6px 2px rgb(0 0 0 / 15%);
349256
--drop-shadow-depth-3:
350257
0 4px 8px 3px rgb(0 0 0 / 15%),
351258
0 1px 3px rgb(0 0 0 / 30%);
352-
--drop-shadow-depth-4:
353-
0 6px 10px 4px rgb(0 0 0 / 15%),
354-
0 2px 3px rgb(0 0 0 / 30%);
355-
--drop-shadow-depth-5:
356-
0 8px 12px 6px rgb(0 0 0 / 15%),
357-
0 4px 4px rgb(0 0 0 / 30%);
358259
--box-shadow-outline-color: rgb(0 0 0 / 50%);
359260
--color-scrollbar-mac: rgb(51 51 51);
360261
--color-scrollbar-mac-hover: rgb(75 76 79);
@@ -363,7 +264,6 @@
363264
--color-error-text: hsl(0deg 100% 75%);
364265

365266
/* Colors used by the code editor */
366-
--color-selected-option: #fff;
367267
--color-continue-to-location: var(--ref-palette-yellow30);
368268
--color-continue-to-location-hover: var(--ref-palette-yellow40);
369269
--color-continue-to-location-hover-border: var(--ref-palette-yellow50);
@@ -376,10 +276,6 @@
376276

377277
/* Color tokens for icons */
378278
--color-primary: rgb(168 199 250);
379-
--color-orange: rgb(255 184 113);
380-
--color-orange-bright: rgb(238 152 54);
381-
--color-error: rgb(242 184 181);
382-
--color-error-bright: rgb(228 105 98);
383279

384280
/* Color for strokestyle of canvas in flame chart */
385281
/* It is the same color as sys-color-primary but with a 10% opacity */
@@ -461,11 +357,6 @@
461357
--app-color-card-divider: color-mix(in srgb, var(--ref-palette-neutral100) 10%, transparent);
462358
--app-color-card-background: var(--sys-color-surface2);
463359

464-
/**
465-
* Color for scrollable area shadow gradient
466-
*/
467-
--app-color-scroll-area-shadow-start: color-mix(in srgb, var(--ref-palette-neutral100) 30%, transparent);
468-
469360
/**
470361
* Colors for element panel sidebar subtitle
471362
*/

front_end/ui/legacy/inspectorCommon.css

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,11 @@
2525
* https://crbug.com/1122511
2626
*/
2727
--legacy-accent-color: #1a73e8;
28-
--legacy-accent-fg-color: #1a73e8;
29-
--legacy-accent-color-hover: #3b86e8;
30-
--legacy-accent-fg-color-hover: #1567d3;
31-
--legacy-active-control-bg-color: #5a5a5a;
32-
--legacy-focus-bg-color: hsl(214deg 40% 92%);
3328
--legacy-focus-ring-inactive-shadow-color: #e0e0e0;
3429
--legacy-input-validation-error: #db1600;
35-
--legacy-toolbar-hover-bg-color: #eaeaea;
36-
--legacy-selection-fg-color: #fff;
3730
--legacy-selection-bg-color: var(--legacy-accent-color);
38-
--legacy-selection-inactive-fg-color: #5a5a5a;
39-
--legacy-selection-inactive-bg-color: #dadada;
40-
--legacy-divider-border: 1px solid var(--sys-color-divider);
4131
--legacy-focus-ring-inactive-shadow: 0 0 0 1px var(--legacy-focus-ring-inactive-shadow-color);
4232
--legacy-focus-ring-active-shadow: 0 0 0 1px var(--legacy-accent-color);
43-
--legacy-item-selection-bg-color: #cfe8fc;
44-
--legacy-item-selection-inactive-bg-color: #e0e0e0;
4533
--monospace-font-size: 10px;
4634
--monospace-font-family: monospace;
4735
--source-code-font-size: 11px;
@@ -50,8 +38,6 @@
5038
--sys-motion-duration-medium2: 300ms;
5139
--sys-motion-duration-long2: 500ms;
5240
--sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
53-
--sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
54-
--sys-motion-easing-emphasized-accelerate: cubic-bezier(0.2, 0, 0, 1);
5541

5642
/* This will be overridden by the platform-X classes that get
5743
* added to the html tag on load, but is here as a safe
@@ -72,19 +58,8 @@
7258
* https://crbug.com/1122511
7359
*/
7460
--legacy-accent-color: #0e639c;
75-
--legacy-accent-fg-color: #ccc;
76-
--legacy-accent-fg-color-hover: #fff;
77-
--legacy-accent-color-hover: rgb(17 119 187);
78-
--legacy-active-control-bg-color: #cdcdcd;
79-
--legacy-focus-bg-color: hsl(214deg 19% 27%);
8061
--legacy-focus-ring-inactive-shadow-color: #5a5a5a;
81-
--legacy-toolbar-hover-bg-color: #202020;
82-
--legacy-selection-fg-color: #cdcdcd;
83-
--legacy-selection-inactive-fg-color: #cdcdcd;
84-
--legacy-selection-inactive-bg-color: hsl(0deg 0% 28%);
8562
--legacy-focus-ring-inactive-shadow: 0 0 0 1px var(--legacy-focus-ring-inactive-shadow-color);
86-
--legacy-item-selection-bg-color: hsl(207deg 88% 22%);
87-
--legacy-item-selection-inactive-bg-color: #454545;
8863
}
8964

9065
body {
@@ -682,11 +657,6 @@ button.link:focus-visible {
682657
border-radius: var(--sys-shape-corner-full);
683658
}
684659

685-
.theme-with-dark-background button.link:focus-visible,
686-
:host-context(.theme-with-dark-background) button.link:focus-visible {
687-
--override-link-focus-background-color: rgb(230 230 230 / 8%);
688-
}
689-
690660
@media (forced-colors: active) {
691661
.dimmed,
692662
select:disabled {
@@ -756,7 +726,6 @@ input.custom-search-input::-webkit-search-cancel-button:hover {
756726

757727
:host-context(.theme-with-dark-background) devtools-adorner {
758728
--override-adorner-border-color: var(--sys-color-tonal-outline);
759-
--override-adorner-focus-border-color: var(--sys-color-state-focus-ring);
760729
--override-adorner-active-background-color: var(--sys-color-state-riple-neutral-on-subtle);
761730
}
762731

0 commit comments

Comments
 (0)