Skip to content

Commit 6d82086

Browse files
committed
Auto merge of #86725 - JohnTitor:normalizecss-8, r=GuillaumeGomez
Upgrade normalize.css to v8.0.1 Fixes #86629, this addresses #82548 and #82542 with tweaks. I expect that this changes the style *slightly* but shouldn't have any major changes. Here's some changes I observed, I'd say they all are an improvement. <details> <summary>Before</summary> ![before 1](https://user-images.githubusercontent.com/25030997/123854746-0fc84800-d95a-11eb-8484-ea86dfe0ae14.png) ![before 2](https://user-images.githubusercontent.com/25030997/123854754-135bcf00-d95a-11eb-8cca-f49994629e08.png) </details> <details> <summary>After</summary> ![after 1](https://user-images.githubusercontent.com/25030997/123854809-21115480-d95a-11eb-9dd2-0d3b9ca45edd.png) ![after 2](https://user-images.githubusercontent.com/25030997/123854818-22428180-d95a-11eb-83aa-fb5a698124f9.png) </details> r? `@jsha`
2 parents 6e0b554 + 5101078 commit 6d82086

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

src/librustdoc/html/static/normalize.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustdoc/html/static/rustdoc.css

+23-2
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,31 @@ summary {
200200
outline: none;
201201
}
202202

203-
/* FIXME: Remove after normalize.css is either upgraded or removed (#86629) */
203+
/* Fix some style changes due to normalize.css 8 */
204+
205+
td,
206+
th {
207+
padding: 0;
208+
}
209+
210+
table {
211+
border-collapse: collapse;
212+
}
213+
214+
button,
215+
input,
216+
optgroup,
217+
select,
218+
textarea {
219+
color: inherit;
220+
font: inherit;
221+
margin: 0;
222+
}
223+
224+
/* end tweaks for normalize.css 8 */
225+
204226
details:not(.rustdoc-toggle) summary {
205227
margin-bottom: .6em;
206-
display: list-item;
207228
}
208229

209230
code, pre, a.test-arrow {

0 commit comments

Comments
 (0)