-
Notifications
You must be signed in to change notification settings - Fork 537
Warning css #336
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
Warning css #336
Conversation
I unfortunately no longer have access to that machine. |
src/trait-bounds.md
Outdated
***Warning:*** lifetime bounds are allowed on lifetimes in a `for` binder, but | ||
have no effect: `for<'a, 'b: 'a>` is no different to `for<'a, 'b>`. | ||
|
||
</div> |
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.
This stopped being true in 1.26, so can you just remove this warning?
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.
Done
As per the meeting, I've increased the contrast on the darker theme links in the warning; I've darkened the warning border in the Rust theme, and I've made the background in the light themes match what @alercah wanted. This is ready for review. |
534962f
to
cb9b457
Compare
Rebased. |
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.
Looks good to me, let's add it!
I want warnings to stand out more, so why not give them their own CSS?
I'm not quite sure what this looks like when there's no font that handles the warning sign character, but as long as it's not terrible, it should be fine? It's mostly there for decoration. cc @alercah for having a Linux box that has said lack of font.