about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/settings.css
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-28 13:52:13 -0700
committerMichael Howell <michael@notriddle.com>2022-09-28 15:39:27 -0700
commitf55ea418c3a85061ae681f7b8a589f41b582be7f (patch)
tree10834c103c2df8802c6f87c660406d2b27ce63a3 /src/librustdoc/html/static/css/settings.css
parent307dd938d7937c93dc7a880e81a2383b82f30ad0 (diff)
downloadrust-f55ea418c3a85061ae681f7b8a589f41b582be7f.tar.gz
rust-f55ea418c3a85061ae681f7b8a589f41b582be7f.zip
rustdoc: clean up "normalize.css 8" input override CSS
These rules were copied from normalize.css 3, and are mostly redundant.

* `optgroup` isn't used in rustdoc at all
* `textarea` is only used for the "copy" button, so it's not visible
* The remaining buttons and inputs mostly have styles set anyway.
* We should never be setting `color` without also setting the
  background to something. Otherwise, you get white-on-gray
  text. That seems to be [the reason] why `normalize.css` changed this.

[the reason]: https://github.com/necolas/normalize.css/pull/502
Diffstat (limited to 'src/librustdoc/html/static/css/settings.css')
-rw-r--r--src/librustdoc/html/static/css/settings.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/settings.css b/src/librustdoc/html/static/css/settings.css
index e82ec042637..821c4e978e8 100644
--- a/src/librustdoc/html/static/css/settings.css
+++ b/src/librustdoc/html/static/css/settings.css
@@ -12,7 +12,8 @@
 	margin-right: 0.3em;
 	height: 1.2rem;
 	width: 1.2rem;
-	border: 1px solid;
+	color: inherit;
+	border: 1px solid currentColor;
 	outline: none;
 	-webkit-appearance: none;
 	cursor: pointer;