Skip to content

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

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Warning css #336

merged 4 commits into from
Jun 19, 2018

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented May 15, 2018

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.

@alercah
Copy link
Contributor

alercah commented May 15, 2018

I unfortunately no longer have access to that machine.

***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>
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Havvy
Copy link
Contributor Author

Havvy commented May 17, 2018

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.

@Havvy Havvy force-pushed the warning-css branch 2 times, most recently from 534962f to cb9b457 Compare May 25, 2018 03:47
@Havvy Havvy requested a review from steveklabnik June 1, 2018 18:18
@Havvy
Copy link
Contributor Author

Havvy commented Jun 10, 2018

Rebased.

Copy link
Member

@QuietMisdreavus QuietMisdreavus left a 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!

@QuietMisdreavus QuietMisdreavus merged commit 613efe8 into rust-lang:master Jun 19, 2018
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