about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-12-12 11:42:34 -0800
committerCamelid <camelidcamel@gmail.com>2020-12-12 11:59:52 -0800
commit2b455aa7d805a2a88e231585c7e89cb1652d3d3c (patch)
tree303d9bbfcfa6425ab6ed44c5f27ec60273c58295 /src/librustdoc
parent2225ee1b62ff089917434aefd9b2bf509cfa087f (diff)
downloadrust-2b455aa7d805a2a88e231585c7e89cb1652d3d3c.tar.gz
rust-2b455aa7d805a2a88e231585c7e89cb1652d3d3c.zip
rustdoc light theme: Fix CSS for selected buttons
The background was dark before, which made the text impossible to read.
Now the background is white, which is how selected `div`s are rendered.

As a result, the search results tabs now look identical to how they
used to look (before #79896).
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/html/static/themes/light.css2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css
index 52cfdf6f7a3..997e1f00f85 100644
--- a/src/librustdoc/html/static/themes/light.css
+++ b/src/librustdoc/html/static/themes/light.css
@@ -349,8 +349,8 @@ pre.ignore:hover, .information:hover + pre.ignore {
 }
 
 #titles > button:hover, #titles > button.selected {
+	background-color: #ffffff;
 	border-top-color: #0089ff;
-	background-color: #353535;
 }
 
 #titles > button > div.count {