Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: Larger click areas for sidebar items #14878

Merged
merged 1 commit into from
Jun 14, 2014

Conversation

vtsatskin
Copy link

There was feedback gathered by @bjz which request for larger click targets in the rustdoc sidebar. Here's my attempt at that.

My only concern with this patch is the removal of <br> between sidebar links. This may break formatting for text-only viewers of this documentation. If there is a large enough demographic of people that will be affected, perhaps we can try switching the structure of each sidebar block sidebar to an <ol> with each item as a <li>.

  • Change links to display:block for click larger targets
  • Remove linebreaks due to extra space
  • Adjust margins so that element spacing stays the same
  • Sidebar item hover background colour chosen from <pre> styling

* Change links to display:block for click larger targets
* Remove linebreaks due to extra space
* Adjust margins so that element spacing stays the same
* Sidebar item hover background colour chosen from <pre> styling
@vtsatskin
Copy link
Author

screen shot 2014-06-13 at 5 14 02 pm

bors added a commit that referenced this pull request Jun 14, 2014
…r=alexcrichton

There was feedback gathered by @bjz which request for larger click targets in the rustdoc sidebar. Here's my attempt at that.

My only concern with this patch is the removal of `<br>` between sidebar links. This may break formatting for text-only viewers of this documentation. If there is a large enough demographic of people that will be affected, perhaps we can try switching the structure of each sidebar block sidebar to an `<ol>` with each item as a `<li>`. 

* Change links to display:block for click larger targets
* Remove linebreaks due to extra space
* Adjust margins so that element spacing stays the same
* Sidebar item hover background colour chosen from `<pre>` styling
@bors bors closed this Jun 14, 2014
@bors bors merged commit 0188beb into rust-lang:master Jun 14, 2014
@brendanzab
Copy link
Member

<3

@brendanzab
Copy link
Member

perhaps we can try switching the structure of each sidebar block sidebar to an <ol> with each item as a <li>.

Wouldn't that be a <ul>?

@vtsatskin
Copy link
Author

Wouldn't that be a <ul>?

Indeed. Typo on my part.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
Implement `${count()}` metavariable expression

This PR implements `${count()}` metavariable expression for MBE as described in [RFC 3086][rfc]. See [this section][sec-count] of the RFC for its semantics.

Additionally, this PR changes the type of depth parameter of `${index()}` from u32 to usize so as to match how [rustc parses it][index-usize].

Part of rust-lang#11952
Fixes rust-lang#14871

[rfc]: rust-lang/rfcs#3086
[sec-count]: https://github.com/rust-lang/rfcs/blob/master/text/3086-macro-metavar-expr.md#count
[index-usize]:https://github.com/rust-lang/rust/blob/ddad0576caf8d0515ed453e04b468977c7d3dfc1/compiler/rustc_expand/src/mbe/metavar_expr.rs#L22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants