about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-24 20:01:39 +0000
committerbors <bors@rust-lang.org>2021-06-24 20:01:39 +0000
commit7c3872e6bfd555d2ad753ac1f871db3bd7f2a547 (patch)
treee6c64b94466caf951f18582a2a7fb0e82252a441 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentcbeda5cbeb9a3b92a1df997869a49d9584ca10c2 (diff)
parent94c84bd72a0fd9c9e0dbcff43c21e6a862cae6cf (diff)
downloadrust-7c3872e6bfd555d2ad753ac1f871db3bd7f2a547.tar.gz
rust-7c3872e6bfd555d2ad753ac1f871db3bd7f2a547.zip
Auto merge of #85651 - dns2utf8:rustdoc_flexbox, r=GuillaumeGomez
rustdoc: staggered layout for module contents on mobile

This PR adds the container `<item-table>` with its two children `<item-left>` and `<item-right>`.
It uses grid-layout on desktop and flexbox on mobile to make better use of the available space.

Additionally it allows to share parts of the CSS with the search function.

* Demo: https://data.estada.ch/rustdoc-nightly_126561cb3_2021-05-25/generic_array/index.html
* Related: #85540

## Desktop
![grafik](https://user-images.githubusercontent.com/739070/119416896-2be62300-bce4-11eb-9555-792b859ab611.png)

## Mobile
![grafik](https://user-images.githubusercontent.com/739070/119416934-44563d80-bce4-11eb-9e77-70a72edcc487.png)

r? `@GuillaumeGomez` `@jsha`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions