]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: remove no-op mobile CSS `.sidebar { margin: 0; padding: 0 }`
authorMichael Howell <michael@notriddle.com>
Mon, 5 Dec 2022 16:15:43 +0000 (09:15 -0700)
committerMichael Howell <michael@notriddle.com>
Mon, 5 Dec 2022 16:15:43 +0000 (09:15 -0700)
This isn't overriding anything, because the sidebar never has a margin or
padding on it.

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

index f44797fe55f179245c31eb6a9755846af7ce8749..c1c1241ba543cd7378a6c8c92e22277d59563876 100644 (file)
@@ -1660,8 +1660,6 @@ in storage.js
                /* Hide the sidebar offscreen while not in use. Doing this instead of display: none means
                   the sidebar stays visible for screen readers, which is useful for navigation. */
                left: -1000px;
-               margin: 0;
-               padding: 0;
                z-index: 11;
                /* Reduce height slightly to account for mobile topbar. */
                height: calc(100vh - 45px);