diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-16 17:09:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-16 17:09:02 -0700 |
| commit | 874097c8c7e376b2a101e69cad6a29de151eca8a (patch) | |
| tree | 8bc57d6025f7685db04dccb72db8ce76d24bbcaf | |
| parent | c60b051bbb844dc06eace271372cbaf01ca6ca41 (diff) | |
| parent | d08bb4037e6a3fea6d85909ab64d3d4192dff611 (diff) | |
| download | rust-874097c8c7e376b2a101e69cad6a29de151eca8a.tar.gz rust-874097c8c7e376b2a101e69cad6a29de151eca8a.zip | |
Rollup merge of #74371 - Aloso:patch-1, r=GuilliameGomez
Improve ayu rustdoc theme This PR changes the following: * It makes some lines darker * It gives the crate selector and search bar a border * The search bar's border turns blue when focused * ~~Gives the logo a bright shadow.~~ For standard library crates, it would be better to invert the logo, but that would be bad for crates with a colored logo, e.g. [async-std](https://docs.rs/async-std/1.6.2/async_std/). Before:  After (note that this PR no longer includes the white shadow of the logo): 
| -rw-r--r-- | src/librustdoc/html/static/themes/ayu.css | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css index 382c0f417ae..1326acec51c 100644 --- a/src/librustdoc/html/static/themes/ayu.css +++ b/src/librustdoc/html/static/themes/ayu.css @@ -108,7 +108,7 @@ pre { } .sidebar .version { - border-bottom-color: #DDD; + border-bottom-color: #424c57; } .sidebar-title { @@ -198,7 +198,7 @@ pre.rust .comment, pre.rust .doccomment { } nav:not(.sidebar) { - border-bottom-color: #e0e0e0; + border-bottom-color: #424c57; } nav.main .current { border-top-color: #5c6773; @@ -223,22 +223,19 @@ a { #crate-search { color: #c5c5c5; background-color: #141920; - border-radius: 4px; - box-shadow: none; - border-color: #5c6773; + box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent; + border-color: #424c57; } .search-input { color: #ffffff; background-color: #141920; - box-shadow: none; + box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent; transition: box-shadow 150ms ease-in-out; - border-radius: 4px; - margin-left: 8px; } #crate-search+.search-input:focus { - box-shadow: 0px 6px 20px 0px black; + box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent; } .search-focus:disabled { |
