diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-24 10:35:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 10:35:39 +0200 |
| commit | 96558580ac0c998d4f194cd014c5e3ffab9ad548 (patch) | |
| tree | cb8a2b8989eef7683d6471cbb7243f3799ebfc34 /compiler/rustc_pattern_analysis/src | |
| parent | 93bf791e8b94d4b5fba606bc16ed0e95df57428f (diff) | |
| parent | a53655a023cee5dee1873bd3dfc805d7c460fbeb (diff) | |
| download | rust-96558580ac0c998d4f194cd014c5e3ffab9ad548.tar.gz rust-96558580ac0c998d4f194cd014c5e3ffab9ad548.zip | |
Rollup merge of #131906 - notriddle:notriddle/spacing, r=GuillaumeGomez
rustdoc: adjust spacing and typography in header Fixes #131589 Preview: https://notriddle.com/rustdoc-html-demo-12/spacing/std/index.html | Before | After | |--|--| |  |  |  |  |  |  |  |  First of all, we put 4px additional margin below the search box, and 4px margin below the header to balance it out. The bigger problem we have to solve is making the lines look logically spaced. This is troublesome, because Fira Sans (the typeface we use here) wants to look good on average, and to avoid breaking, with text that uses [ascenders and descenders](https://www.w3.org/TR/css-inline-3/images/text-edge.png). If the text we're putting in happens to not have any, things look weird (strictly speaking, there’s hand-tuning here, because the Copy Path button messes with stuff, but the overall point is that there is no true, one perfect layout). In order to play nicely with the font, I've tweaked the text to use that space. The word "Source" for the link is now capitalized, and the Since version number now uses oldstyle nums with descenders.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
