<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/static/css/rustdoc.css, branch 1.60.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.60.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.60.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-02-17T22:00:57+00:00</updated>
<entry>
<title>Rollup merge of #93780 - GuillaumeGomez:links-in-sidebar, r=jsha</title>
<updated>2022-02-17T22:00:57+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-02-17T22:00:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a2b612590284f2e8fc08117c976e017ddd79d81'/>
<id>urn:sha1:6a2b612590284f2e8fc08117c976e017ddd79d81</id>
<content type='text'>
Generate list instead of div items in sidebar

Fixes #92986.

Surprisingly, we didn't have much CSS for this...

[Demo](https://rustdoc.crud.net/imperio/links-in-sidebar/std/index.html).

r? `@jsha`
</content>
</entry>
<entry>
<title>Unify sidebar a bit more by generating a list using &lt;ul&gt; instead of &lt;div&gt; elements</title>
<updated>2022-02-16T19:32:53+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-02-08T16:04:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5136b549c9b8906065681844e6a30082a6f5742e'/>
<id>urn:sha1:5136b549c9b8906065681844e6a30082a6f5742e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #93382 - GuillaumeGomez:search-input-padding, r=jsha</title>
<updated>2022-02-16T17:59:28+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-02-16T17:59:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01f0da2373183482148deee18e35fcad202d045e'/>
<id>urn:sha1:01f0da2373183482148deee18e35fcad202d045e</id>
<content type='text'>
Add a bit more padding in search box

As asked in https://github.com/rust-lang/rust/pull/93113#issuecomment-1021565703, here is a bit more padding.

You can check it [here](https://rustdoc.crud.net/imperio/search-input-padding/foo/index.html).

r? `@camelid`
</content>
</entry>
<entry>
<title>Auto merge of #93763 - jsha:re-space-empty-impls, r=GuillaumeGomez</title>
<updated>2022-02-13T09:41:41+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2022-02-13T09:41:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c26fbf857f82b2d0cb919c633ba0e3a90e5b9426'/>
<id>urn:sha1:c26fbf857f82b2d0cb919c633ba0e3a90e5b9426</id>
<content type='text'>
rustdoc: fix spacing of non-toggled impl blocks

We [recently removed the "up here" arrows on item-infos](https://github.com/rust-lang/rust/pull/92651), and adjusted
vertical spacing so that even without the arrow, it would be visually
clear which item the item-info belonged to. The new CSS styles for
vertical spacing only applied to toggles, though. This missed
non-toggled impl blocks - for instance, those without any methods, like
https://doc.rust-lang.org/nightly/std/marker/trait.Send.html#implementors.
The result was lists of implementors that were spaced too closely. This
PR fixes the spacing by making it apply to non-toggled impl blocks as
well.

This also fixes an issue where item-infos were displayed too far below
their items. That was a result of display: table on .item-info .stab.
Changed that to display: inline-block.

Demo: https://rustdoc.crud.net/jsha/re-space-empty-impls/std/marker/trait.Send.html

Before:

&lt;img width=300 src="https://user-images.githubusercontent.com/220205/152954394-ec0b80e7-2573-4f06-9d7a-7b10b8ceac60.png"&gt;

After:

&lt;img width=300 src="https://user-images.githubusercontent.com/220205/152954228-abac1d30-a76d-4ab1-89ec-ef7549fe8c9c.png"&gt;

r? `@GuillaumeGomez`
</content>
</entry>
<entry>
<title>rustdoc: fix spacing of non-toggled impl blocks</title>
<updated>2022-02-10T07:34:10+00:00</updated>
<author>
<name>Jacob Hoffman-Andrews</name>
<email>github@hoffman-andrews.com</email>
</author>
<published>2022-02-08T06:36:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b22d4170eddc179680c0da4415fab721e02f85a'/>
<id>urn:sha1:0b22d4170eddc179680c0da4415fab721e02f85a</id>
<content type='text'>
We recently removed the "up here" arrows on item-infos, and adjusted
vertical spacing so that even without the arrow, it would be visually
clear which item the item-info belonged to. The new CSS styles for
vertical spacing only applied to toggles, though. This missed
non-toggled impl blocks - for instance, those without any methods, like
https://doc.rust-lang.org/nightly/std/marker/trait.Send.html#implementors.
The result was lists of implementors that were spaced too closely. This
PR fixes the spacing by making it apply to non-toggled impl blocks as
well.

This also fixes an issue where item-infos were displayed too far below
their items. That was a result of display: table on .item-info .stab.
Changed that to display: inline-block.
</content>
</entry>
<entry>
<title>Unify headings indent and remove useless anchor</title>
<updated>2022-02-09T13:43:44+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-02-09T13:43:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6aad08f13ffba2a18428c4f5ad03977bc1503f5d'/>
<id>urn:sha1:6aad08f13ffba2a18428c4f5ad03977bc1503f5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a bit more padding on search padding and reduce its font size</title>
<updated>2022-02-09T09:46:15+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-01-27T16:55:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b12d92647d1a41849a5148b671e9bf5c7bd2750b'/>
<id>urn:sha1:b12d92647d1a41849a5148b671e9bf5c7bd2750b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: tweak line and ¶ spacing for a11y</title>
<updated>2022-02-08T11:09:10+00:00</updated>
<author>
<name>Jacob Hoffman-Andrews</name>
<email>github@hoffman-andrews.com</email>
</author>
<published>2022-02-05T13:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dd5ff428edbc7cd4fa600b81f27bbec28589704f'/>
<id>urn:sha1:dd5ff428edbc7cd4fa600b81f27bbec28589704f</id>
<content type='text'>
The W3C Web Content Accessibility Guidelines specify a minimum line
spacing of 1.5 and a minimum paragraph spacing of 1.5 times the line
spacing. Our current line spacing (implemented by line-height) is 1.4,
so it's a small bump to go up to 1.5. Similarly, we have a paragraph
spacing of 0.6em. Bump that to 0.75em (which is 1.5 times the 0.5em
distance between lines).

Also, fix all the font sizes so instead of being round-ish numbers in
rem (like 1.1rem, 1.2rem), they are round numbers in pixels. Ensure each
font size is at least 2 pixels different than the nearest other font
size, so distinctions can be clearly seen. Overall the font-sizes are
mostly staying the same, being rounded up or down as appropriate.

Remove a few unused styles.

Simplify the display of the mobile-topbar location, by setting its
margins to auto rather than trying to size it exactly to the topbar.
</content>
</entry>
<entry>
<title>Fix hover effects in sidebar</title>
<updated>2022-02-07T20:26:55+00:00</updated>
<author>
<name>Jacob Hoffman-Andrews</name>
<email>github@hoffman-andrews.com</email>
</author>
<published>2022-01-31T13:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c20e2a9c237cab7b481137f8f34a4b1822c43aae'/>
<id>urn:sha1:c20e2a9c237cab7b481137f8f34a4b1822c43aae</id>
<content type='text'>
The dark and ayu themes have a menu-like highlight on sidebar items. The
light theme used to, but it was accidentally lost in the sidebar
unification. The change brings back the hover effect in the light theme.

It also makes the hover effect apply consistently to all links in the
sidebar, including headings.

It also simplifies the "In _path_" heading so it's one big link. The
breadcrumbs are still readily available at the top of the page.
</content>
</entry>
<entry>
<title>Rollup merge of #93673 - jsha:linkify-sidebar-headings, r=GuillaumeGomez</title>
<updated>2022-02-07T14:08:35+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2022-02-07T14:08:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b6c7fbbba8540cf33a257022324849580316510'/>
<id>urn:sha1:0b6c7fbbba8540cf33a257022324849580316510</id>
<content type='text'>
Linkify sidebar headings for sibling items

Also adjust CSS so this doesn't produce excess padding/margin.

Note: I tried and failed to write a test with browser-UI-test. First I tried to `assert-property: (".block.mod h3 a", {"href": "index.html#macros"})`. But the `href` that gets read out is the fully-quallified URL, starting with `file:///`. That URL will differ depending on what path the test is run from, so that doesn't work.

Next I tried clicking on the appropriate sidebar link, and verifying that the appropriate heading on the next page is highlighted with the right background color. However, that also didn't work: according to browser-UI-test, the targeted heading was plain white. However, running with no-headless, I could see that it actually was yellow. I suspect this is a bug in the older version of Chromium used with browser-UI-test's bundled puppeteer, since it doesn't reproduce on latest Chrome.

Fixes #92957

Demo: https://rustdoc.crud.net/jsha/linkify-sidebar-headings/std/string/trait.ToString.html

r? ``@GuillaumeGomez``
</content>
</entry>
</feed>
