about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/code-blocks-overflow.goml
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-06 19:48:24 -0500
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-18 10:43:14 -0800
commit6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c (patch)
treeb6dd1a95f8f47373a9b919dbc64dc368324631b1 /src/test/rustdoc-gui/code-blocks-overflow.goml
parent7bc7be860f99f4a40d45b0f74e2d01b02e072357 (diff)
downloadrust-6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c.tar.gz
rust-6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c.zip
Simplify and unify rustdoc sidebar styles
This switches to just use size, weight, and spacing to distinguish
headings in the sidebar. We no longer use boxes, horizontal bars, or
centering to distinguish headings. This makes it much easier to
understand the hierarchy of headings, and reduces visual noise.

I also refactored how the mobile topbar works. Previously, we tried to
shift around elements from the sidebar to make the topbar. Now, the
topbar gets its own elements, which can be styled on their own. This
makes styling and reasoning about those elements simpler.

Because the heading font sizes are bigger, increase the sidebar width
slightly.

As a very minor change, removed version from the "All types" page. It's
now only on the crate page.
Diffstat (limited to 'src/test/rustdoc-gui/code-blocks-overflow.goml')
-rw-r--r--src/test/rustdoc-gui/code-blocks-overflow.goml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/code-blocks-overflow.goml b/src/test/rustdoc-gui/code-blocks-overflow.goml
index ee4dad444e9..f93f3f0aefc 100644
--- a/src/test/rustdoc-gui/code-blocks-overflow.goml
+++ b/src/test/rustdoc-gui/code-blocks-overflow.goml
@@ -5,4 +5,4 @@ size: (1080, 600)
 assert-count: (".docblock > .example-wrap", 2)
 assert: ".docblock > .example-wrap > .language-txt"
 assert: ".docblock > .example-wrap > .rust-example-rendered"
-assert-css: (".docblock > .example-wrap > pre", {"width": "796px", "overflow-x": "auto"}, ALL)
+assert-css: (".docblock > .example-wrap > pre", {"width": "785.25px", "overflow-x": "auto"}, ALL)