Skip to content

Commit

Permalink
Rollup merge of #74555 - GuillaumeGomez:important-traits-popup, r=Man…
Browse files Browse the repository at this point in the history
…ishearth

Improve "important traits" popup display on mobile

I implemented what @XAMPPRocky suggested in the [internals thread topic](https://internals.rust-lang.org/t/feedback-on-important-traits-rustdoc-feature/12752/18). I can confirm it works nicely.

r? @Manishearth

@Manishearth: By the way: I realized that when you click on the "i", you have to click again to make the popup disappear. Do you want me to extend the popup removal to any click outside the popup?
  • Loading branch information
Manishearth authored Jul 20, 2020
2 parents 810d322 + 995d63a commit 963b837
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,11 @@ h4 > .important-traits {
#main > .line-numbers {
margin-top: 0;
}

.important-traits .important-traits-tooltiptext {
left: 0;
top: 100%;
}
}

@media print {
Expand Down

0 comments on commit 963b837

Please sign in to comment.