Skip to content

Commit ad4bc55

Browse files
committed
Bug 1508369 - clean up browser CSS to pass basic stylelint rules, r=desktop-theme-reviewers,webcompat-reviewers,extension-reviewers,devtools-reviewers,nchevobbe,denschub,dao
Differential Revision: https://phabricator.services.mozilla.com/D177476
1 parent f7a3c25 commit ad4bc55

File tree

29 files changed

+16
-40
lines changed

29 files changed

+16
-40
lines changed

browser/base/content/browser.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ body {
4343
min-height: 0;
4444
}
4545

46-
.browserContainer {
47-
/* .browserContainer only contains the devtools when docked horizontally */
48-
min-height: 0;
49-
}
50-
5146
/* We set large flex on both containers to allow the devtools toolbox to
5247
* set a flex value itself. We don't want the toolbox to actually take up free
5348
* space, but we do want it to collapse when the window shrinks, and with
@@ -60,6 +55,9 @@ body {
6055
flex: 10000 10000;
6156
/* To contain the status panel */
6257
position: relative;
58+
59+
/* .browserContainer only contains the devtools when docked horizontally */
60+
min-height: 0;
6361
}
6462

6563
.browserStack {

browser/base/content/test/siteIdentity/test_no_mcb_on_http_site_font.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
font-family: testFont;
33
src: url(http://example.com/browser/devtools/client/fontinspector/test/browser_font.woff);
44
}
5+
/* stylelint-disable font-family-no-missing-generic-family-keyword */
56
body {
67
font-family: Arial;
78
}

browser/components/extensions/extension.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
/* stylelint-disable property-no-vendor-prefix */
6-
/* stylelint-disable property-no-vendor-prefix */
76

87
/* Global */
98
html,
@@ -31,7 +30,6 @@ body * {
3130
text-align: left;
3231
}
3332

34-
/* stylelint-disable property-no-vendor-prefix */
3533
/* Buttons */
3634
button.browser-style,
3735
select.browser-style {
@@ -346,7 +344,6 @@ textarea.browser-style:invalid:not(:focus) {
346344
0 0 0 4px rgba(251, 0, 34, 0.3);
347345
}
348346

349-
/* stylelint-disable property-no-vendor-prefix */
350347
.panel-section {
351348
display: flex;
352349
flex-direction: row;

browser/components/firefoxview/moz-tab-row.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
display: grid;
1111
grid-template-columns: subgrid;
1212
grid-column: span 6;
13-
border-radius: 4px;
1413
align-items: stretch;
1514
border-radius: 4px;
1615
}

browser/components/protections/content/protections.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,11 @@ a.hidden,
292292
-moz-context-properties: fill;
293293
fill: var(--gear-icon-fill);
294294
background: url("chrome://global/skin/icons/settings.svg") no-repeat 0;
295-
font-size: 0.75em;
296295
cursor: pointer;
297296
width: max-content;
298297
color: var(--in-content-deemphasized-text);
299298
margin-block: 6px 0;
300-
font-size: 12px;
299+
font-size: 0.8em;
301300
padding-block: 4px;
302301
padding-inline: 24px 4px;
303302
}

browser/components/screenshots/overlay/overlay.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
}
142142

143143
:-moz-native-anonymous .screenshots-button {
144-
appearance: none;
145144
display: flex;
146145
align-items: center;
147146
justify-content: center;
@@ -154,7 +153,7 @@
154153
min-width: 36px;
155154
z-index: 6;
156155
margin-inline: 4px;
157-
font-family: "Segoe UI";
156+
font-family: "Segoe UI", sans-serif;
158157

159158
/* Below styles are copied from common-shared.css */
160159
appearance: none;

browser/extensions/webcompat/about-compat/aboutCompat.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
z-index: 2;
109109
display: inline-block;
110110
text-align: left;
111-
font-weight: bold;
112111
border-block: 2px solid transparent;
113112
font-size: 1em;
114113
font-weight: bold;

browser/themes/linux/places/organizer.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
}
8484

8585
#placesMenu > menu::after {
86-
content: "";
8786
display: flex;
8887
width: 12px;
8988
height: 12px;

browser/themes/shared/tabs.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
:root {
88
--tab-min-height: 36px;
99
--inline-tab-padding: 8px;
10-
/* Value for --in-content-page-background in in-content/common.inc.css */
11-
--tabpanel-background-color: #f9f9fa;
1210
--tab-border-radius: 4px;
1311
--tab-shadow-max-size: 6px;
1412
--tab-block-margin: 4px;

browser/themes/shared/toolbarbutton-icons.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ toolbar[brighttext]:-moz-lwtheme {
340340
from {
341341
transform: translateX(0);
342342
}
343+
/* Bug 1831300 is on file for this. */
344+
/* stylelint-disable-next-line keyframe-block-no-duplicate-selectors */
343345
from {
344346
transform: translateX(-832px);
345347
}

browser/themes/shared/urlbar-searchbar.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@
607607

608608
#urlbar-zoom-button {
609609
appearance: none;
610-
color: inherit;
611610
font-size: .8em;
612611
padding: 3px 7px;
613612
border-radius: var(--urlbar-icon-border-radius);

devtools/client/netmonitor/src/assets/styles/CustomRequestPanel.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
}
109109

110110
.network-monitor .custom-header {
111-
border-bottom-width: 1px;
112111
border-style: solid;
113112
border-width: 0;
114113
flex: none;

devtools/client/netmonitor/src/assets/styles/HTTPCustomRequestPanel.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@
215215
}
216216

217217
.network-monitor .http-custom-header {
218-
border-bottom-width: 1px;
219218
border-style: solid;
220219
border-width: 0;
221220
flex: none;

devtools/client/shared/components/SmartTrace.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147

148148
.group .img.arrow {
149149
mask: url("chrome://devtools/content/debugger/images/arrow.svg");
150-
mask-size: auto;
151150
margin-inline-end: 4px;
152151
background-color: var(--theme-icon-dimmed-color);
153152
width: 10px;

devtools/client/themes/perf.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ a.perf-photon-button:focus {
184184
min-width: 186px;
185185
padding-block: 3px;
186186
padding-inline: 5px;
187-
border: 1px solid transparent;
188187

189188
/* Presentational: */
190189
appearance: none;

devtools/client/themes/webconsole.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@
498498

499499
.message.network .message-body .status {
500500
flex: none;
501-
cursor: default;
502501
margin-left: 1ch;
503502
cursor: default;
504503
}

devtools/server/actors/highlighters.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,6 @@
715715
user-select: none;
716716

717717
color: var(--text-color);
718-
border-radius: 2px;
719718
box-shadow: var(--toolbar-box-shadow);
720719
background-color: var(--toolbar-background);
721720
border: 1px solid var(--toolbar-border);
@@ -729,7 +728,6 @@
729728
margin: 8px 4px 6px 6px;
730729
width: 16px;
731730
height: 16px;
732-
mask-size: contain;
733731
mask-repeat: no-repeat;
734732
mask-position: center;
735733
mask-size: 16px 16px;
@@ -767,7 +765,6 @@
767765
}
768766

769767
:-moz-native-anonymous button.paused-dbg-resume-button {
770-
margin-right: 6px;
771768
margin-right: 6px;
772769
mask-image: url(chrome://devtools/content/shared/images/resume.svg);
773770
padding: 0;
@@ -782,8 +779,6 @@
782779
:-moz-native-anonymous .paused-dbg-reason {
783780
padding: 3px 16px;
784781
margin: 8px 0px;
785-
line-height: 20px;
786-
font-size: 18px;
787782
font: var(--highlighter-font-family);
788783
font-size: var(--highlighter-font-size);
789784
}
@@ -825,7 +820,6 @@
825820
gap: 8px;
826821

827822
padding: 8px 16px;
828-
font-size: 24px;
829823

830824
color: var(--text-color);
831825
box-shadow: var(--toolbar-box-shadow);

gfx/layers/layerviewer/tree.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ html, body {
1313
.layerHover > .layerPreview::after {
1414
position: absolute;
1515
top: 0; right: 0; bottom: 0; left: 0;
16-
background-color: inherit;
1716
content: "";
1817
background-color: rgba(0,0,0,0.2);
1918
box-shadow: -2px 2px 0 #FFF;
@@ -31,7 +30,6 @@ html, body {
3130

3231
.layerHover > .layerPreview {
3332
animation: layerHoverAnimation 200ms;
34-
animation-transform-origin: 50% 50%;
3533
background: gold !important;
3634
box-shadow: 10px 10px 5px #888888;
3735
border-color: blue !important;

layout/style/res/html.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ table[rules][rules="groups"] > thead,
395395
table[rules][rules="groups"] > tbody {
396396
border-block-start-width: thin;
397397
border-block-end-width: thin;
398-
border-block-start-style: solid;
398+
/* Note: `-end` is missing, see https://bugzilla.mozilla.org/show_bug.cgi?id=1832101 */
399399
border-block-start-style: solid;
400400
}
401401

toolkit/components/aboutmemory/content/aboutMemory.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ html {
1616

1717
body {
1818
padding: 0 2em;
19-
margin: 0;
2019
min-width: 45em;
2120
margin: auto;
2221
}

toolkit/content/widgets/message-bar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
display: block;
187187
width: 2px;
188188
position: absolute;
189-
background-image: linear-gradient(0, #9059ff 0%, #ff4aa2 52.08%, #ffbd4f 100%);
189+
background-image: linear-gradient(0deg, #9059ff 0%, #ff4aa2 52.08%, #ffbd4f 100%);
190190
top: 0;
191191
inset-inline-start: 0;
192192
height: 100%;

toolkit/mozapps/extensions/content/aboutaddons.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ addon-card[expanded] .update-postponed-bar + .addon-card-message {
358358

359359
.theme-enable-button {
360360
min-width: auto;
361-
height: auto;
362361
font-size: 13px;
363362
min-height: auto;
364363
height: 24px;

toolkit/themes/mobile/global/aboutMemory.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ html {
1616

1717
body {
1818
padding: 0 2em;
19-
margin: 0;
2019
min-width: 45em;
2120
margin: auto;
2221
}

toolkit/themes/osx/global/menu.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ menubar > menu[_moz-menuactive="true"][open="true"] {
113113
/* menu/menuitems in popups */
114114

115115
menupopup {
116+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
116117
font: -moz-pull-down-menu;
117118
}
118119

toolkit/themes/osx/global/splitter.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ splitter[state="collapsed"][substate="before"]:-moz-locale-dir(rtl) {
3232

3333
splitter[orient="vertical"] {
3434
cursor: ns-resize;
35-
min-width: 0px;
3635
min-height: 9px;
3736
min-width: 9px;
3837
}

toolkit/themes/shared/aboutCache.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ th {
2424
}
2525

2626
td {
27-
font-family: -moz-fixed;
27+
font-family: monospace;
2828
word-wrap: break-word;
2929
}
3030

toolkit/themes/shared/aboutCacheEntry.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ th {
1919

2020
td {
2121
display: block;
22-
font-family: -moz-fixed;
22+
font-family: monospace;
2323
white-space: pre-wrap;
2424
}
2525

toolkit/themes/shared/tree.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ html|input.tree-input {
294294
}
295295
}
296296

297+
/* Stylelint doesn't cope with the Level 4 media query here.
298+
* Filed as https://github.com/stylelint/stylelint/issues/6834 */
299+
/* stylelint-disable-next-line media-feature-name-no-unknown */
297300
@media (-moz-platform: macos) and (not (prefers-contrast)) {
298301
/* We show a `SelectedItem` background on selected rows, so we do not need the
299302
dotted outline in that case. For users who have Full Keyboard Access

tools/tryselect/selectors/chooser/static/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ body {
4141
padding-bottom: 10px;
4242
margin-bottom: 0;
4343
user-select: none;
44-
user-select: none;
4544
vertical-align: middle;
4645
}
4746

0 commit comments

Comments
 (0)