<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/static/css/rustdoc.css, branch 1.77.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.77.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.77.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-01-29T19:40:43+00:00</updated>
<entry>
<title>Improve display of crate name when hovered</title>
<updated>2024-01-29T19:40:43+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-01-29T19:40:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=96e6cfa34a38cf7ef51aad168afa9b1e628cf26f'/>
<id>urn:sha1:96e6cfa34a38cf7ef51aad168afa9b1e628cf26f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #117662 - GuillaumeGomez:links-in-headings, r=notriddle</title>
<updated>2024-01-19T18:26:59+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-01-19T18:26:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cad609d9e3a33cfef1727dcb0682e05f1f036afa'/>
<id>urn:sha1:cad609d9e3a33cfef1727dcb0682e05f1f036afa</id>
<content type='text'>
[rustdoc] Allows links in headings

Reopening of https://github.com/rust-lang/rust/pull/94360.

# Explanations

Rustdoc currently doesn't follow the markdown spec on headings: we don't allow links in them. So instead of having headings linking to themselves, this PR generates an anchor on the left side like this:

![image](https://github.com/rust-lang/rust/assets/3050060/a118a7e9-5ef8-4d07-914f-46defc3245c3)

&lt;details&gt;
&lt;summary&gt;previous version&lt;/summary&gt;

![image](https://github.com/rust-lang/rust/assets/3050060/c34fa844-9cd4-47dc-bb51-b37f5f66afee)

&lt;/details&gt;

Having the anchor always displayed allows for mobile devices users to be able to have a link to the anchor. The different color used for the anchor itself is the same as links so people notice when looking at it that they can click on it.

You can test it [here](https://rustdoc.crud.net/imperio/links-in-headings/std/index.html).

cc `@camelid`
r? `@notriddle`
</content>
</entry>
<entry>
<title>use css variable for z-index of the sidebar</title>
<updated>2024-01-01T14:42:32+00:00</updated>
<author>
<name>Lukas Markeffsky</name>
<email>@</email>
</author>
<published>2023-12-31T21:25:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b1853eb3bd579d9126fa392ced94b05d45efc67e'/>
<id>urn:sha1:b1853eb3bd579d9126fa392ced94b05d45efc67e</id>
<content type='text'>
and calculate the z-indices of things that go over the sidebar
</content>
</entry>
<entry>
<title>rustdoc ui: adjust tooltip z-index to be above sidebar</title>
<updated>2023-12-31T19:31:56+00:00</updated>
<author>
<name>Lukas Markeffsky</name>
<email>@</email>
</author>
<published>2023-12-31T19:31:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d796ad4209b2c45d66a8e8b2fa8beac462c80671'/>
<id>urn:sha1:d796ad4209b2c45d66a8e8b2fa8beac462c80671</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #119066 - notriddle:notriddle/sidebar-source-redesign, r=GuillaumeGomez</title>
<updated>2023-12-31T15:32:15+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2023-12-31T15:32:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67b6975051b83ef2bd28f06e8467470d570aceb3'/>
<id>urn:sha1:67b6975051b83ef2bd28f06e8467470d570aceb3</id>
<content type='text'>
rustdoc: clean up source sidebar hide button

This is a redesign of the feature, with parts pulled from https://github.com/rust-lang/rust/pull/119049 but with a button that looks more like a button and matches the one used on other sidebar pages.

Preview:

* http://notriddle.com/rustdoc-html-demo-8/source-sidebar-resize/src/std/lib.rs.html
* http://notriddle.com/rustdoc-html-demo-8/source-sidebar-resize/std/index.html

| | Before | After |
|--|--|--|
| Closed | ![image](https://github.com/rust-lang/rust/assets/1593513/092bed75-79c3-412f-8e7b-557f30dfb1e3) | ![image](https://github.com/rust-lang/rust/assets/1593513/b68e1ee9-9aef-484d-a5b1-2fd29c9d72ea)
| Open | ![image](https://github.com/rust-lang/rust/assets/1593513/95cf9545-25b1-48ec-820b-02e1aec99839) | ![image](https://github.com/rust-lang/rust/assets/1593513/923532f6-59e0-4d7c-9976-21699c30d42e)
| Mobile Closed | ![image](https://github.com/rust-lang/rust/assets/1593513/9bc00cc5-937c-4120-94be-94c7cb6d5297) | ![image](https://github.com/rust-lang/rust/assets/1593513/76a744d8-aac2-46fe-abb9-3b34e2d3ccaa)
| Mobile Open | ![image](https://github.com/rust-lang/rust/assets/1593513/d19a94fe-47b1-462d-a280-44fc215b9b72) | ![image](https://github.com/rust-lang/rust/assets/1593513/2b2e3dec-b610-4b12-8a72-35b86359ba45)
</content>
</entry>
<entry>
<title>Fix display of warning block if it is first element of the top doc block</title>
<updated>2023-12-24T18:23:42+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2023-12-24T18:23:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=279b11c4b50236647c1f6cb11329bfd74dba476e'/>
<id>urn:sha1:279b11c4b50236647c1f6cb11329bfd74dba476e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix corner cases when dealing with mobile mode</title>
<updated>2023-12-20T02:50:53+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-12-20T01:22:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9566db1e496e6a834529e0ffbe3397b0c0d6803a'/>
<id>urn:sha1:9566db1e496e6a834529e0ffbe3397b0c0d6803a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use folder icon instead of hamburger and sidebar</title>
<updated>2023-12-19T01:22:35+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-12-19T01:22:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34984a68300ac3e68f2d5ebc1f15b7bf46faf9b0'/>
<id>urn:sha1:34984a68300ac3e68f2d5ebc1f15b7bf46faf9b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add border bottom for source sidebar title area</title>
<updated>2023-12-18T23:00:57+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-12-18T23:00:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=66779ff606908cbb6bf785fef10e4e44addcf37c'/>
<id>urn:sha1:66779ff606908cbb6bf785fef10e4e44addcf37c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop using the trigram of heaven as a hamburger button</title>
<updated>2023-12-18T20:56:55+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2023-12-18T20:30:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3e29ea5e9054c0e3fc0c6b80d7ab32e106c3294'/>
<id>urn:sha1:c3e29ea5e9054c0e3fc0c6b80d7ab32e106c3294</id>
<content type='text'>
It doesn't look quite right, because the lines are too far apart,
and it's not going to be announced by screenreaders as a menu button,
since that's not what the symbol means.

This adds a real tooltip and uses a better drawing of the icon.
</content>
</entry>
</feed>
