about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-18 21:18:47 +0200
committerGitHub <noreply@github.com>2022-10-18 21:18:47 +0200
commit2ae06ca3296ee45808919fabc9107fe184277bba (patch)
tree45d2cb14e23b0bb39ec894cd45e3895728b87a55 /compiler/rustc_errors/src/snippet.rs
parent18431b66ce68a58d3dde2c7143a6e6bfb08cae60 (diff)
parentd4e4b08b9b53f3dda7be3cc3bf8881db4180f736 (diff)
downloadrust-2ae06ca3296ee45808919fabc9107fe184277bba.tar.gz
rust-2ae06ca3296ee45808919fabc9107fe184277bba.zip
Rollup merge of #103164 - notriddle:notriddle/media-min-width, r=GuillaumeGomez
rustdoc: remove CSS `@media (min-width: 701px)`

The two rules within it can and should be done without the separate media query:

  * There ain't no rule saying a viewport can't be `700.5px` wide, since hardware pixels can be finer than CSS pixels.

    <details><summary>Screenshot</summary>

    ![image](https://user-images.githubusercontent.com/1593513/196283804-e946fbe3-d914-4819-ba2d-b4a6a07f190a.png)

    </details>

  * The rule for the first example-wrap child should probably apply on mobile.

    <details><summary>Screenshots</summary>

    ## Before

    ![rustdoc-before](https://user-images.githubusercontent.com/1593513/196282813-88b861c7-7b05-4de5-a421-914396f86a04.png)

    ## After

    ![rustdoc-after](https://user-images.githubusercontent.com/1593513/196282842-e57760c2-72d5-4dad-94f5-1d7175043326.png)

    </details>

  * The rule for the source sidebar is overriden by the mobile rule setting `max-width: 100vw`, so it can be merged with the rest of the styles.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions