diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index c6933a8254bc2..69409b77251cb 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -949,7 +949,7 @@ table,
#crate-search {
min-width: 115px;
margin-top: 5px;
- padding-left: 0.3125em;
+ padding-left: 0.15em;
padding-right: 23px;
border: 1px solid;
border-radius: 4px;
@@ -958,8 +958,6 @@ table,
-moz-appearance: none;
-webkit-appearance: none;
/* Removes default arrow from firefox */
- text-indent: 0.01px;
- text-overflow: "";
background-repeat: no-repeat;
background-color: transparent;
background-size: 20px;
@@ -986,7 +984,6 @@ table,
border-radius: 2px;
padding: 8px;
font-size: 1rem;
- transition: border-color 300ms ease;
width: 100%;
}
diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css
index 142ce456c5213..7ff8063904ace 100644
--- a/src/librustdoc/html/static/css/themes/ayu.css
+++ b/src/librustdoc/html/static/css/themes/ayu.css
@@ -184,7 +184,13 @@ details.rustdoc-toggle > summary::before {
#crate-search, .search-input {
background-color: #141920;
- /* Without the `!important`, the border-color is ignored for `