Rollup merge of #102118 - notriddle:notriddle/line-numbers, r=GuillaumeGomez

rustdoc: clean up line numbers on code examples

* First commit switches from `display: inline-flex; width: 100%` to `display: flex`.

  `display: inline-flex` was used as part of e961d397ca, the original commit that added these line numbers. Does anyone know why it was done this way?

* Second commit makes it so that toggling this checkbox will update the page in real time, just like changing themes does.

Preview: https://notriddle.com/notriddle-rustdoc-test/line-numbers/std/vec/struct.Vec.html
This commit is contained in:
Matthias Krüger 2022-09-22 21:34:50 +02:00 committed by GitHub
commit ecbc00fa9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 17 deletions

View file

@ -577,13 +577,9 @@ h2.location a {
}
.rustdoc .example-wrap {
display: inline-flex;
display: flex;
margin-bottom: 10px;
}
.example-wrap {
position: relative;
width: 100%;
}
.example-wrap > pre.line-number {