about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-09 01:35:13 +0200
committerGitHub <noreply@github.com>2020-09-09 01:35:13 +0200
commit3cec71e9b44f719e60e5d12cfe4c45e5c7b3b606 (patch)
tree0595daa9c7b4580a66f85660f07a24050a4d6b84
parent4ac88c01c3ad5a65e3563d14aea2151d277b3010 (diff)
parentd80415a3bf0990efa9618273d30bb2c6d23b6f43 (diff)
downloadrust-3cec71e9b44f719e60e5d12cfe4c45e5c7b3b606.tar.gz
rust-3cec71e9b44f719e60e5d12cfe4c45e5c7b3b606.zip
Rollup merge of #76374 - pickfire:patch-4, r=Cldfire
Improve ayu doc source line number contrast

Improve contrast of foreground line number.

Before

![image](https://user-images.githubusercontent.com/4687791/92305696-1bf2ab80-efbc-11ea-8b5c-a24c4f6261e0.png)

After

![image](https://user-images.githubusercontent.com/4687791/92305700-2a40c780-efbc-11ea-9061-dbfcb1e71980.png)

r? @Cldfire

I think we should add the line for light and dark theme too, it looks better and clearer that way.
-rw-r--r--src/librustdoc/html/static/themes/ayu.css5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css
index b4571018270..ba79c16afd2 100644
--- a/src/librustdoc/html/static/themes/ayu.css
+++ b/src/librustdoc/html/static/themes/ayu.css
@@ -129,9 +129,10 @@ pre {
 	color: #ffb44c;
 }
 
-.line-numbers span { color: #5c6773ab; }
+.line-numbers span { color: #5c6773; }
 .line-numbers .line-highlighted {
-	background-color: rgba(255, 236, 164, 0.06) !important;
+	color: #708090;
+	background-color: rgba(255, 236, 164, 0.06);
 	padding-right: 4px;
 	border-right: 1px solid #ffb44c;
 }