Skip to content

Tiny update to rustdoc CSS #40719

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

Closed
wants to merge 1 commit into from

Conversation

icefoxen
Copy link
Contributor

Just makes trait bounds a bit less blaring. I find it decreases the noise in the common case when I'm not terribly interested in them, while making them still easily visible when I am. Example screenshot here: https://alopex.li/temp/rustdoc-small-traits.png

Not sure if anyone besides me cares about this, but... 😄

Just makes trait bounds a bit less blaring.
@rust-highfive
Copy link
Contributor

Some changes occurred in HTML/CSS.

cc @GuillaumeGomez

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @frewsxcv (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@GuillaumeGomez
Copy link
Member

I can't find the difference. Could you add screenshot here (you can put images in comments on github) of before and after of the change please?

@ghost
Copy link

ghost commented Mar 22, 2017

very small diff with color

@GuillaumeGomez
Copy link
Member

That's what I saw from the diff yes, but I'd prefer to have both screenshot of before and after in order to have opinion on the style change itself. I think it'll be fine but I prefer to have every information.

@icefoxen
Copy link
Contributor Author

icefoxen commented Mar 22, 2017

Oh, totally.

Before: https://alopex.li/temp/rustdoc-normal-traits.png

After: https://alopex.li/temp/rustdoc-small-traits.png

Side-by-side, new on right: https://alopex.li/temp/rustdoc-comparison2.png

It just makes the trait text a little smaller and a little lighter. I feel sort of silly making such a small PR, but...

@steveklabnik
Copy link
Member

I feel sort of silly making such a small PR, but...

To be clear, we love small PRs. Small PRs are easier to understand, and you can get a lot done with a number of small PRs over time. Don't worry about it 😄

@frewsxcv
Copy link
Member

+1 for small PRs, so much easier to review than large PRs, open as many as you want :)

Regarding the changes in the pull request in this PR, I'm +0. I can see why it might look better, but it seems like the second lines in the function declarations (the ones that got lighter in this PR) are just as important as the first. Both lines make up the entire function declaration. I don't feel strongly about this though.

@GuillaumeGomez
Copy link
Member

I find the new color not black enough. Thoughts @rust-lang/docs?

@GuillaumeGomez
Copy link
Member

@rfcbot reviewed

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label). label Apr 14, 2017
@daniellockyer
Copy link
Contributor

The color property is missing a semicolon!

@GuillaumeGomez
Copy link
Member

Very good point @neosilky!

@arielb1 arielb1 added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Apr 15, 2017
@arielb1
Copy link
Contributor

arielb1 commented Apr 25, 2017

Is the docs team looking at this?

@GuillaumeGomez
Copy link
Member

It seems not. Still waiting for their opinions.

cc @rust-lang/docs

@steveklabnik
Copy link
Member

Regarding the changes in the pull request in this PR, I'm +0. I can see why it might look better, but it seems like the second lines in the function declarations (the ones that got lighter in this PR) are just as important as the first. Both lines make up the entire function declaration. I don't feel strongly about this though.

This is how I feel too.

@CryZe
Copy link
Contributor

CryZe commented Apr 25, 2017

I like these changes because they give the function names more focus. So it's easier to scroll through a lot of functions to find the one you need. And once you found the function, it's still easy enough to focus on the trait bounds.

@QuietMisdreavus
Copy link
Member

I wanted to see how this interacted with the changes to where clause rendering that landed since this was opened:

image

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Apr 26, 2017

Ok, the @rust-lang/docs accepted this PR. Just add the missing ';' for the color property please, then we're merging it. Thanks!

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label). labels May 14, 2017
@@ -378,6 +378,8 @@ h4 > code, h3 > code, .invisible > code {
.content .fn .where,
.content .where.fmt-newline {
display: block;
color: #4E4C4C
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semicolon here?

@arielb1
Copy link
Contributor

arielb1 commented May 16, 2017

@icefoxen

This PR is almost ready for merging, we are just waiting for you to add the semicolon!

@frewsxcv
Copy link
Member

Going to close this for now. If you get around to addressing this @icefoxen, feel free to open a new PR, thanks!

@frewsxcv frewsxcv closed this May 21, 2017
@daniellockyer
Copy link
Contributor

@frewsxcv Shall I submit the new PR?

bors added a commit that referenced this pull request May 21, 2017
Update to trait bounds CSS in rustdoc

Fixed re-submission of #40719.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants