about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2023-12-01 13:47:42 +0900
committerGitHub <noreply@github.com>2023-12-01 13:47:42 +0900
commita030add411fca6f2578232e41e2c01c5d6723bec (patch)
treecb8fe35c5d2f9a4c28cf44430c3c22280ec35e9f /src/librustdoc/html/static/css
parentc263ccf18571b4a3791e4c50dcae5473d6f9593a (diff)
parent7230f6c5c51d8668a16d92da9f49d442521de828 (diff)
downloadrust-a030add411fca6f2578232e41e2c01c5d6723bec.tar.gz
rust-a030add411fca6f2578232e41e2c01c5d6723bec.zip
Rollup merge of #118483 - notriddle:notriddle/fmt-newline, r=GuillaumeGomez
rustdoc: `div.where` instead of fmt-newline class

This is about equally readable, a lot more terse, and stops special-casing functions and methods.

```console
$ du -hs doc-old/ doc-new/
671M    doc-old/
670M    doc-new/
```
Diffstat (limited to 'src/librustdoc/html/static/css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index d8250c273b0..b898eb5d381 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -703,11 +703,8 @@ pre, .rustdoc.src .example-wrap {
 	background: var(--table-alt-row-background-color);
 }
 
-/* Shift "where ..." part of method or fn definition down a line */
-.method .where,
-.fn .where,
-.where.fmt-newline {
-	display: block;
+/* "where ..." clauses with block display are also smaller */
+div.where {
 	white-space: pre-wrap;
 	font-size: 0.875rem;
 }