]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: remove unused mobile CSS `.rustdoc { padding-top: 0 }`
authorMichael Howell <michael@notriddle.com>
Wed, 2 Nov 2022 17:10:44 +0000 (10:10 -0700)
committerMichael Howell <michael@notriddle.com>
Wed, 2 Nov 2022 17:10:44 +0000 (10:10 -0700)
When this rule was added in dd437ee6ed81f85c715bf415d261feca484bb39f, as
`body { padding-top: 0 }`, the desktop body tag had non-zero top padding.
This padding was removed in 135281ed1525db15edd8ebd092aa10aa40df2386.

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

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

index 219d1b4ed53ffadea6aba8645bbf244cbdaecc63..a18fff3bb14749931944d5941ba5eaa7eda72536 100644 (file)
@@ -1677,7 +1677,6 @@ in storage.js
        }
 
        .rustdoc {
-               padding-top: 0px;
                /* Sidebar should overlay main content, rather than pushing main content to the right.
                   Turn off `display: flex` on the body element. */
                display: block;