Skip to content

Commit deb6538

Browse files
committed
rustdoc: remove unused mobile CSS .rustdoc { padding-top: 0 }
When this rule was added in dd437ee, as `body { padding-top: 0 }`, the desktop body tag had non-zero top padding. This padding was removed in 135281e. This rule no longer overrides a rule in rustdoc's desktop styles, and also doesn't override the UA stylesheet, since the [HTML standard] has only margin, not padding, on the page body. [HTML standard]: https://html.spec.whatwg.org/multipage/rendering.html#the-page
1 parent c0a7612 commit deb6538

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,6 @@ in storage.js
16771677
}
16781678

16791679
.rustdoc {
1680-
padding-top: 0px;
16811680
/* Sidebar should overlay main content, rather than pushing main content to the right.
16821681
Turn off `display: flex` on the body element. */
16831682
display: block;

0 commit comments

Comments
 (0)