]> git.lizzy.rs Git - rust.git/commit
rustdoc: clean up margin CSS for scraped examples
authorMichael Howell <michael@notriddle.com>
Fri, 16 Dec 2022 17:11:37 +0000 (10:11 -0700)
committerMichael Howell <michael@notriddle.com>
Fri, 16 Dec 2022 17:16:13 +0000 (10:16 -0700)
commitf309934b5ee074a74229546d859252dd7e946b2d
treee0bd074fe29936195d850cc325152ddf4c0a2e69
parent03770f0e2b60c02db8fcf52fed5fb36aac70cedc
rustdoc: clean up margin CSS for scraped examples

* This stops applying a margin to the additional example links.
  Because these links are `display: inline`, it doesn't actually do anything.
* This switches from using a margin-bottom with a special exception for
  the examples themselves, plus an additional margin on the hide button,
  to instead using just margin-top on the examples, with an exception for
  the first one.

No user-visible changes should result from this.
src/librustdoc/html/static/css/rustdoc.css