rust/src/librustdoc
Dylan DPC 3f61c730d4
Rollup merge of #70656 - GuillaumeGomez:scrollbar-display, r=kinnison
Improve scrollbar display in rustdoc

The scrollbar of the left sidebar in rustdoc looks very bad on firefox (on dark theme). This PR improves it:

<div style="display:inline-block;">
<div style="width:50%;display:inline-block;float:left;">
<image src="https://user-images.githubusercontent.com/3050060/78148412-202b0380-7435-11ea-8ff3-79f02ea8f9ed.png">
</div>
<div style="width:50%;display:inline-block;float:left;">
<image src="https://user-images.githubusercontent.com/3050060/78148437-28833e80-7435-11ea-946b-a6fc9320b705.png">
</div>
</div>

With light theme:

![old-firefox-light](https://user-images.githubusercontent.com/3050060/78148718-7bf58c80-7435-11ea-93d3-2a2cafd5c6ae.png)
![firefox-light](https://user-images.githubusercontent.com/3050060/78148736-7f891380-7435-11ea-8b10-a8898f73b4c9.png)

And on chrome:

![chrome-light](https://user-images.githubusercontent.com/3050060/78148903-ac3d2b00-7435-11ea-9a10-6c0376a675c3.png)
![chrome-dark](https://user-images.githubusercontent.com/3050060/78148907-ae9f8500-7435-11ea-9b89-0397b977753c.png)

Small extra question: should I extend it to all scrollbars? I think it'd be better but just in case...

r? @kinnison
2020-04-13 20:23:27 +02:00
..
clean Auto merge of #70161 - cjgillot:query-arena, r=nikomatsakis 2020-04-11 15:31:54 +00:00
html Rollup merge of #70656 - GuillaumeGomez:scrollbar-display, r=kinnison 2020-04-13 20:23:27 +02:00
passes Stop importing int modules in librustdoc 2020-04-05 11:22:01 +02:00
test Normalize syntax::edition imports. 2020-01-02 19:31:38 +01:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Update pulldown-cmark dependency 2020-02-14 22:39:45 +01:00
config.rs Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
core.rs librustc_middle: return LocalDefId instead of DefId in opt_local_def_id 2020-04-10 12:13:54 +01:00
docfs.rs Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call) 2020-03-05 16:39:20 +01:00
doctree.rs Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
externalfiles.rs nix syntax::errors & prefer rustc_errors over errors 2020-01-10 07:41:30 +01:00
fold.rs Format the world 2019-12-22 17:42:47 -05:00
lib.rs Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
markdown.rs Create output dir in rustdoc markdown render 2020-03-26 23:06:17 +01:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
test.rs use direct import for ErrorReported 2020-04-02 13:40:43 +02:00
theme.rs Expand and remove try_something macro. 2020-04-02 19:55:56 +02:00
visit_ast.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
visit_lib.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00

For more information about how librustdoc works, see the rustc dev guide.