blob: c403e86b027fbb32af4d87a0515ed65a44c94861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
/* 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/. */
.perf {
max-width: 670px;
margin: 10vh auto;
padding: 0 5%;
}
/* This styling was originally taken from the about:preferences page. */
h1 {
margin: 0 0 8px;
font-size: 1.46em;
font-weight: 300;
line-height: 1.3em;
}
/* This styling was originally taken from the about:preferences page. */
h2 {
/* This margin was enlarged */
margin: 30px 0 15px;
font-size: 1.14em;
line-height: normal;
}
/* Intro */
.perf-intro-row {
margin: 1.7em 0;
display: flex;
line-height: 1.8em;
align-items: center;
}
.perf-intro-icon {
width: 4em;
height: 4em;
margin-inline-end: 1.3em;
background-image: url(chrome://devtools/skin/images/tool-profiler.svg);
background-size: 100%;
-moz-context-properties: fill;
fill: currentColor;
opacity: 0.5;
}
/* Shared rules */
.perf-toggle-label {
padding: 7px 0;
display: grid;
grid-template-columns: max-content auto;
max-width: max-content;
}
.perf-toggle-text-label {
display: flex;
align-items: center;
}
.perf-toggle-description {
font-size: 13px;
line-height: 1.8;
color: var(--text-color-deemphasized);
grid-column: 2;
}
/* Presets section */
.perf-presets {
margin: 2em 0;
border-bottom: 1px solid var(--in-content-border-color);
padding-bottom: 1em;
}
/* Features and settings */
.perf-settings-row {
display: flex;
line-height: 1.8;
}
.perf-settings-range-row {
display: grid;
grid-template-columns: 140px 1fr 90px;
align-items: center;
min-height: 30px;
}
.perf-settings-range-input {
margin: 0;
}
.perf-settings-range-value {
text-align: end;
}
.perf-settings-thread-columns {
display: flex;
line-height: 1.3;
}
.perf-settings-thread-column {
flex: 1;
}
.perf-settings-thread-label {
margin-block: 12px;
}
.perf-settings-all-threads {
margin-block: 12px;
}
.perf-settings-text-label {
flex: 1;
}
.perf-settings-text-input {
width: 100%;
box-sizing: border-box;
}
#perftools-settings-thread-text {
margin-inline: 0;
}
.perf-settings-checkbox-label-disabled > :not(input) {
/* The checkboxes already get their opacity set to 0.5 in common.inc.css,
so only target the text. The descriptions get their text deemphasized,
so set a value a bit higher than 0.5 to compensate for that. */
opacity: 0.65;
}
/* Local build section */
.perf-settings-dir-list {
box-sizing: border-box;
width: 100%;
height: 100px;
border: 1px solid var(--in-content-border-color);
margin: 0;
padding: 0;
overflow-y: auto;
background-color: var(--in-content-box-background);
}
.perf-settings-dir-list:hover {
border-color: var(--in-content-border-hover);
}
.pref-settings-dir-list-item {
display: flex;
padding: 3px 5px;
}
.pref-settings-dir-list-item::before {
content: url(chrome://devtools/skin/images/folder.svg);
display: inline-flex;
align-self: center;
width: 12px;
height: 12px;
margin-inline-end: 5px;
-moz-context-properties: fill;
fill: currentColor;
}
.perf-settings-dir-list-button-group {
padding-block: 4px;
}
.perf-settings-dir-list-button-group > button {
margin-inline: 0 8px;
}
/* Back button */
.perf-back {
margin-block-end: 13px;
}
.perf-back-button {
/* Remove the inherited margins */
margin-inline: 0;
}
|