Skip to content

Commit 22b7436

Browse files
authored
prettify css (firefox-devtools#3187)
1 parent a8e5677 commit 22b7436

20 files changed

+51
-106
lines changed

.stylelintrc

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"number-no-trailing-zeros": true,
4848
"selector-combinator-space-after": "always",
4949
"selector-combinator-space-before": "always",
50-
"selector-list-comma-newline-after": "always",
5150
"selector-list-comma-space-before": "never",
5251
"selector-pseudo-element-colon-notation": "double",
5352
"selector-type-case": "lower",

bin/prettier.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const args = [
1414
"*.js",
1515
"src/*.js",
1616
"src/*/*.js",
17+
"src/components/**/*.css",
1718
"src/*/!(mochitest)**/*.js",
1819
"src/*/!(mochitest)*/**/*.js"
1920
];
@@ -25,7 +26,8 @@ const prettierProc = spawn(prettierCmd, prettierArgs);
2526
prettierProc.stdout.on("data", data => console.log(`${data}`));
2627
prettierProc.stderr.on("data", data => console.log(`stderr: ${data}`));
2728
prettierProc.on("close", code =>
28-
console.log(`prettier exited with code ${code}`));
29+
console.log(`prettier exited with code ${code}`)
30+
);
2931
prettierProc.on("error", error => {
3032
if (error.code == "ENOENT") {
3133
console.log(`Hmm, could not find the path ${cmd}.`);

src/components/Editor/Editor.css

+13-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
--debug-line-border: rgb(145, 188, 219);
44
--editor-searchbar-height: 27px;
55
--editor-second-searchbar-height: 27px;
6-
76
}
87

98
.theme-dark .editor-wrapper {
@@ -23,8 +22,7 @@
2322
--theme-conditional-breakpoint-color: #ccd1d5;
2423
}
2524

26-
.out-of-scope .CodeMirror-line,
27-
.out-of-scope .CodeMirror-linenumber {
25+
.out-of-scope .CodeMirror-line, .out-of-scope .CodeMirror-linenumber {
2826
opacity: 0.8;
2927
}
3028

@@ -178,17 +176,25 @@ html[dir="rtl"] .editor-mount {
178176
}
179177

180178
@keyframes fade-highlight-out {
181-
0% { background-color: var(--theme-highlight-gray); }
182-
100% { background-color: transparent; }
179+
0% {
180+
background-color: var(--theme-highlight-gray);
181+
}
182+
100% {
183+
background-color: transparent;
184+
}
183185
}
184186

185187
.theme-dark .highlight-line .CodeMirror-line {
186188
animation: fade-highlight-out-dark 1.5s normal forwards;
187189
}
188190

189191
@keyframes fade-highlight-out-dark {
190-
0% { background-color: var(--theme-content-color3); }
191-
100% { background-color: transparent; }
192+
0% {
193+
background-color: var(--theme-content-color3);
194+
}
195+
100% {
196+
background-color: transparent;
197+
}
192198
}
193199

194200
.welcomebox {

src/components/Editor/Tabs.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
border-bottom-color: transparent;
5858
}
5959

60-
.source-tab.active path,
61-
.source-tab:hover path {
60+
.source-tab.active path, .source-tab:hover path {
6261
fill: var(--theme-body-color);
6362
}
6463

@@ -75,8 +74,7 @@
7574
fill: var(--theme-textbox-box-shadow);
7675
}
7776

78-
.source-tab .blackBox,
79-
.source-tab .prettyPrint {
77+
.source-tab .blackBox, .source-tab .prettyPrint {
8078
line-height: 0;
8179
align-self: center;
8280
}

src/components/ProjectSearch/ProjectSearch.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.search-container {
32
position: absolute;
43
top: 30px;

src/components/SecondaryPanes/Breakpoints.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ html .breakpoints-list .breakpoint.paused {
7171
order: 3;
7272
}
7373

74-
:root.theme-light .breakpoint-snippet,
75-
:root.theme-firebug .breakpoint-snippet {
74+
:root.theme-light .breakpoint-snippet, :root.theme-firebug .breakpoint-snippet {
7675
color: var(--theme-comment);
7776
}
7877

src/components/SecondaryPanes/Frames/Frames.css

+3-6
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
margin: 0;
3838
}
3939

40-
:root.theme-light .frames .location,
41-
:root.theme-firebug .frames .location {
40+
:root.theme-light .frames .location, :root.theme-firebug .frames .location {
4241
color: var(--theme-comment);
4342
}
4443

@@ -53,14 +52,12 @@
5352
margin-right: 1em;
5453
}
5554

56-
.frames ul li:hover,
57-
.frames ul li:focus {
55+
.frames ul li:hover, .frames ul li:focus {
5856
background-color: var(--theme-toolbar-background-alt);
5957
outline: none;
6058
}
6159

62-
.theme-dark .frames ul li:hover,
63-
.theme-dark .frames ul li:focus {
60+
.theme-dark .frames ul li:hover, .theme-dark .frames ul li:focus {
6461
background-color: var(--theme-tab-toolbar-background);
6562
}
6663

src/components/SecondaryPanes/Frames/Group.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
.frames ul .frames-group .group,
2-
.frames ul .frames-group .group .location {
1+
.frames ul .frames-group .group, .frames ul .frames-group .group .location {
32
font-weight: 500;
43
}
54

src/components/SecondaryPanes/Frames/WhyPaused.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.why-paused {
32
background-color: var(--theme-body-background);
43
color: var(--theme-body-color);

src/components/SecondaryPanes/Scopes.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.object-node.default-property {
32
opacity: 0.6;
43
}

src/components/Sources.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
border-top-color: transparent;
114114
}
115115

116-
.source-footer .tab.active path,
117-
.source-footer .tab:hover path {
116+
.source-footer .tab.active path, .source-footer .tab:hover path {
118117
fill: var(--theme-body-color);
119118
}

src/components/shared/Accordion.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
background-color: var(--theme-toolbar-background-hover);
2929
}
3030

31-
.accordion ._header button svg,
32-
.accordion ._header:hover button svg {
31+
.accordion ._header button svg, .accordion ._header:hover button svg {
3332
fill: currentColor;
3433
height: 16px;
3534
}

src/components/shared/Autocomplete.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.autocomplete {
32
flex: 1;
43
width: 100%;

src/components/shared/BracketArrow.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
position: absolute;
33
}
44

5-
.bracket-arrow::before,
6-
.bracket-arrow::after {
5+
.bracket-arrow::before, .bracket-arrow::after {
76
content: '';
87
height: 0;
98
width: 0;

src/components/shared/Button/PaneToggle.css

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
.toggle-button-start,
2-
.toggle-button-end {
1+
.toggle-button-start, .toggle-button-end {
32
transform: translate(0, 2px);
43
transition: transform 0.25s ease-in-out;
54
cursor: pointer;
65
padding: 5px 2px;
76
}
87

9-
.toggle-button-start.vertical,
10-
.toggle-button-end.vertical {
8+
.toggle-button-start.vertical, .toggle-button-end.vertical {
119
padding: 4px 2px;
1210
}
1311

14-
.toggle-button-start svg,
15-
.toggle-button-end svg {
12+
.toggle-button-start svg, .toggle-button-end svg {
1613
width: 16px;
1714
fill: var(--theme-comment);
1815
}
1916

20-
.theme-dark .toggle-button-start svg,
21-
.theme-dark .toggle-button-end svg {
17+
.theme-dark .toggle-button-start svg, .theme-dark .toggle-button-end svg {
2218
fill: var(--theme-comment-alt);
2319
}
2420

@@ -40,7 +36,6 @@ html .toggle-button-end.vertical svg {
4036
transform: rotate(-90deg);
4137
}
4238

43-
.toggle-button-start.collapsed,
44-
.toggle-button-end.collapsed {
39+
.toggle-button-start.collapsed, .toggle-button-end.collapsed {
4540
transform: rotate(180deg);
4641
}

src/components/shared/SearchInput.css

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.search-field {
32
width: calc(100% - 1px);
43
height: 27px;
@@ -40,20 +39,17 @@
4039
color: var(--theme-body-color-inactive);
4140
}
4241

43-
.search-field i.magnifying-glass,
44-
.search-field i.sad-face {
42+
.search-field i.magnifying-glass, .search-field i.sad-face {
4543
padding: 6px;
4644
width: 24px;
4745
}
4846

49-
.search-field.big i.magnifying-glass,
50-
.search-field.big i.sad-face {
47+
.search-field.big i.magnifying-glass, .search-field.big i.sad-face {
5148
padding: 14px;
5249
width: 40px;
5350
}
5451

55-
.search-field .magnifying-glass path,
56-
.search-field .magnifying-glass ellipse {
52+
.search-field .magnifying-glass path, .search-field .magnifying-glass ellipse {
5753
stroke: var(--theme-splitter-color);
5854
}
5955

src/components/shared/Svg.css

+5-25
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,26 @@
1-
2-
.arrow,
3-
.folder,
4-
.domain,
5-
.file,
6-
.worker,
7-
.refresh,
8-
.add-button {
1+
.arrow, .folder, .domain, .file, .worker, .refresh, .add-button {
92
fill: var(--theme-splitter-color);
103
}
114

12-
.worker,
13-
.folder {
5+
.worker, .folder {
146
position: relative;
157
top: 2px;
168
}
179

18-
.domain,
19-
.file,
20-
.worker,
21-
.refresh,
22-
.add-button {
10+
.domain, .file, .worker, .refresh, .add-button {
2311
position: relative;
2412
top: 1px;
2513
}
2614

27-
.domain svg,
28-
.folder svg,
29-
.worker svg,
30-
.refresh svg,
31-
.add-button svg {
15+
.domain svg, .folder svg, .worker svg, .refresh svg, .add-button svg {
3216
width: 15px;
3317
}
3418

3519
.file svg {
3620
width: 13px;
3721
}
3822

39-
.file svg,
40-
.domain svg,
41-
.folder svg,
42-
.refresh svg,
43-
.worker svg {
23+
.file svg, .domain svg, .folder svg, .refresh svg, .worker svg {
4424
margin-inline-end: 5px;
4525
}
4626

src/components/shared/previewFunction.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.function-signature {
32
line-height: 20px;
43
align-self: center;

0 commit comments

Comments
 (0)