rust/src
Yuki Okushi a5084488f8
Rollup merge of #93694 - jsha:font-sizes-spacing, r=GuillaumeGomez
rustdoc: tweak line spacing and paragraph spacing for accessibility

The [W3C Web Content Accessibility Guidelines](https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation.html) specify a minimum line spacing of 1.5 and a minimum paragraph spacing of 1.5 times the line spacing. Our current line spacing (implemented by line-height) is 1.4, so it's a small bump to go up to 1.5. Similarly, we have a paragraph spacing of 0.6em. Bump that to 0.75em (which is 1.5 times the 0.5em distance between lines).

Also, fix all the font sizes so instead of being round-ish numbers in rem (like 1.1rem, 1.2rem), they are round numbers in pixels: 16px, 18px, 20px, 22px, 24px. Ensure each font size is at least 2 pixels different than the nearest other font size, so distinctions can be clearly seen. Overall the font-sizes are mostly staying the same, being rounded up or down as appropriate. This will make reasoning about consistent layout sizes much easier.

Remove a few unused styles.

Simplify the display of the mobile-topbar location, by setting its margins to auto rather than trying to size it exactly to the topbar.

Part of #59845.

Demo: https://rustdoc.crud.net/jsha/font-sizes-spacing/std/string/struct.String.html

r? `@GuillaumeGomez`
2022-02-09 14:12:18 +09:00
..
bootstrap Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis 2022-02-07 23:40:26 +00:00
build_helper Hide failed command unless in verbose mode 2022-01-30 17:37:11 -05:00
ci Auto merge of #93719 - scottmcm:core-as-2021-everywhere, r=Mark-Simulacrum 2022-02-07 12:38:21 +00:00
doc Auto merge of #93561 - Amanieu:more-unwind-abi, r=nagisa 2022-02-08 03:20:05 +00:00
etc Auto merge of #93626 - wesleywiser:fix_hashmap_natvis, r=michaelwoerister 2022-02-08 10:05:05 +00:00
librustdoc rustdoc: tweak line and ¶ spacing for a11y 2022-02-08 03:09:10 -08:00
llvm-project@fdc8f411ec Update llvm-project submodule 2022-02-05 21:00:23 +00:00
rustdoc-json-types Increase the format version of rustdoc-json-types 2022-01-20 22:14:02 +01:00
test Rollup merge of #93694 - jsha:font-sizes-spacing, r=GuillaumeGomez 2022-02-09 14:12:18 +09:00
tools ⬆️ rust-analyzer 2022-02-08 11:10:44 +02:00
README.md
stage0.json bump bootstrap compiler 2022-01-28 15:01:04 +01:00
version bump version to 1.60.0 2022-01-07 10:04:15 +01:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.