about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-08-27 01:14:13 +0200
committerGitHub <noreply@github.com>2020-08-27 01:14:13 +0200
commit88c68cae4f6d2e12d54ff436eea36595454ccda8 (patch)
treed30a60c495a304019c4a1e78045987e5bc6a8b52 /src
parenta838f2fc7965f2e3f619d8f6d40915db668d7ae6 (diff)
parent5041aeef3d4155ac28245419193280491552fd35 (diff)
downloadrust-88c68cae4f6d2e12d54ff436eea36595454ccda8.tar.gz
rust-88c68cae4f6d2e12d54ff436eea36595454ccda8.zip
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
Fix font color for help button in ayu and dark themes

A nice before/after:

![Screenshot from 2020-08-23 14-47-07](https://user-images.githubusercontent.com/3050060/90979230-0dd07400-e554-11ea-85f7-046dfca65e8e.png)

![Screenshot from 2020-08-23 14-47-03](https://user-images.githubusercontent.com/3050060/90979233-145eeb80-e554-11ea-8e63-1864c3f2699b.png)

For the ayu theme, the change is very "light", the font color was already close to white, so I unified the color with the pictures of the other buttons:

![Screenshot from 2020-08-23 15-20-45](https://user-images.githubusercontent.com/3050060/90979281-5e47d180-e554-11ea-9993-8595057481ab.png)
![Screenshot from 2020-08-23 15-20-50](https://user-images.githubusercontent.com/3050060/90979279-5daf3b00-e554-11ea-8d39-beb57091aba7.png)
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/themes/ayu.css1
-rw-r--r--src/librustdoc/html/static/themes/dark.css1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/themes/ayu.css b/src/librustdoc/html/static/themes/ayu.css
index 6e8db1e9eb7..c8d4ec60352 100644
--- a/src/librustdoc/html/static/themes/ayu.css
+++ b/src/librustdoc/html/static/themes/ayu.css
@@ -495,6 +495,7 @@ kbd {
 #theme-picker, #settings-menu, .help-button {
 	border-color: #5c6773;
 	background-color: #0f1419;
+	color: #fff;
 }
 
 #theme-picker > img, #settings-menu > img {
diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css
index eeb1f0a3d4a..f5a85337768 100644
--- a/src/librustdoc/html/static/themes/dark.css
+++ b/src/librustdoc/html/static/themes/dark.css
@@ -389,6 +389,7 @@ kbd {
 #theme-picker, #settings-menu, .help-button {
 	border-color: #e0e0e0;
 	background: #f0f0f0;
+	color: #000;
 }
 
 #theme-picker:hover, #theme-picker:focus,