-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
add kbd style tag to main.css in rustdoc #46938
Conversation
Some changes occurred in HTML/CSS. |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (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. |
CSS seems good. Can you add a screenshot with a key in the middle of a text please? |
line-height: 10px; | ||
color: #444d56; | ||
vertical-align: middle; | ||
background-color: #fafbfc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh forgot this: please put all color rules into the main.css
. The point is to make easier the add of multiple themes by just changing one CSS file instead of several.
Also, as long as the discussion issue isn't resolved, this PR's merge will be frozen. Being the rustdoc's style only maintainer (or not so far, sorry if I missed someone...), I'm really opposed to this add (I add the explanation once again) since it doesn't add something useful for rustdoc rendering but an ease for users (or maybe just user, singular). This isn't the point of this file. It's already really difficult to maintain and I don't want to increase the burden for something mostly useless. If users want, they can add the missing style by themselves without issues. I added such options in rustdoc (I'm referring to |
ping @GuillaumeGomez, looks likt his may be ready for another inspection! |
border-bottom-color: #c6cbd1; | ||
box-shadow-color: #c6cbd1; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the last, empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please!
The change is incomplete. I'll quote myself (hehe):
So the style change seems good, but I can't accept the PR as is, sorry. Just a bit more to do and we're good to go! |
Sorry, I was on vacation and had no time doing stuff. I will tackle it this weekend, hopefully |
No need to hurry or worry, and thanks! |
removed styling of dt tages, which would make them look like keys and added <kbd> tag inside of dt tag. Added css style for kbd and removed some stylings for dt
Just one last thing (two with the extra empty line at the end of the file): please change all your whitespaces into tabulations into the CSS files. |
Done |
Thanks! @bors: r+ rollup |
📌 Commit 0c946c0 has been approved by |
…laumeGomez add kbd style tag to main.css in rustdoc Added css style for kbd tags so they actually look like keys. Result preview and discussion was going on in rust-lang#46900 .
…laumeGomez add kbd style tag to main.css in rustdoc Added css style for kbd tags so they actually look like keys. Result preview and discussion was going on in rust-lang#46900 .
Added css style for kbd tags so they actually look like keys.
Result preview and discussion was going on in #46900 .