From 0d3f84e762b264c7d943c497eab54ad6b0a80733 Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 23 Mar 2017 04:39:21 +0100 Subject: [PATCH] Rustdoc sidebar style improvements Some improvements of the sidebar style * The sidebar now has a visually more pleasant color. Its still different from the main site, so its still easy to spot a difference * Hovering the entries in the sidebar now has a discernible difference to the sidebar background, fixing a regression of commit 2bb2a2975f25e8ba7a372898e7e112f1cec5db01 * The very unpleasant black border around the crate name has been removed. --- src/librustdoc/html/static/rustdoc.css | 3 +-- src/librustdoc/html/static/styles/main.css | 10 ++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 3df120eece9c5..e33c304f54986 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -189,7 +189,6 @@ nav.sub { } .sidebar .location { - border: 1px solid; font-size: 17px; margin: 30px 0 20px 0; text-align: center; @@ -772,4 +771,4 @@ span.since { nav.sub, .content .out-of-band, .collapse-toggle { display: none; } -} \ No newline at end of file +} diff --git a/src/librustdoc/html/static/styles/main.css b/src/librustdoc/html/static/styles/main.css index 74ec3691b3860..6762e86c58e8d 100644 --- a/src/librustdoc/html/static/styles/main.css +++ b/src/librustdoc/html/static/styles/main.css @@ -38,7 +38,7 @@ pre { } .sidebar { - background-color: #F1F1F1; + background-color: #F8F8F8; } .sidebar .current { @@ -46,13 +46,11 @@ pre { } .sidebar .location { - border-color: #000; - background-color: #fff; - color: #333; + background-color: #e1e1e1; } .block a:hover { - background: #F5F5F5; + background: #EEEEEE; } .line-numbers span { color: #c67e2d; } @@ -179,4 +177,4 @@ a.test-arrow:hover{ :target > code { background: #FDFFD3; -} \ No newline at end of file +}