diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 4c79218f62a4d..b4bd13778bcf8 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1502,7 +1502,6 @@ kbd {
vertical-align: middle;
border: solid 1px;
border-radius: 3px;
- box-shadow: inset 0 -1px 0;
cursor: default;
}
diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css
index 5d60aca6f27cd..07cb8f7ac1cbd 100644
--- a/src/librustdoc/html/static/css/themes/ayu.css
+++ b/src/librustdoc/html/static/css/themes/ayu.css
@@ -531,7 +531,7 @@ kbd {
background-color: #314559;
border-color: #5c6773;
border-bottom-color: #5c6773;
- box-shadow-color: #c6cbd1;
+ box-shadow: inset 0 -1px 0 #5c6773;
}
#theme-picker, #settings-menu, #help-button {
@@ -630,5 +630,5 @@ input:checked + .slider {
background: #616161;
}
.toggle-line:hover .toggle-line-inner {
- background: ##898989;
+ background: #898989;
}
diff --git a/src/librustdoc/html/static/css/themes/dark.css b/src/librustdoc/html/static/css/themes/dark.css
index 96588af54e8fb..ae194279090ea 100644
--- a/src/librustdoc/html/static/css/themes/dark.css
+++ b/src/librustdoc/html/static/css/themes/dark.css
@@ -407,7 +407,7 @@ kbd {
background-color: #fafbfc;
border-color: #d1d5da;
border-bottom-color: #c6cbd1;
- box-shadow-color: #c6cbd1;
+ box-shadow: inset 0 -1px 0 #c6cbd1;
}
#theme-picker, #settings-menu, #help-button {
@@ -496,5 +496,5 @@ div.files > .selected {
background: #616161;
}
.toggle-line:hover .toggle-line-inner {
- background: ##898989;
+ background: #898989;
}
diff --git a/src/librustdoc/html/static/css/themes/light.css b/src/librustdoc/html/static/css/themes/light.css
index edb346c23b48c..2bc5ebbb2ecd7 100644
--- a/src/librustdoc/html/static/css/themes/light.css
+++ b/src/librustdoc/html/static/css/themes/light.css
@@ -44,7 +44,9 @@ pre, .rustdoc.source .example-wrap {
}
.rust-logo {
- /* No need for a border in here! */
+ /* This rule exists to force other themes to explicitly style the logo.
+ * Rustdoc has a custom linter for this purpose.
+ */
}
/* Improve the scrollbar display on webkit-based browsers */
@@ -391,7 +393,7 @@ kbd {
background-color: #fafbfc;
border-color: #d1d5da;
border-bottom-color: #c6cbd1;
- box-shadow-color: #c6cbd1;
+ box-shadow: inset 0 -1px 0 #c6cbd1;
}
#theme-picker, #settings-menu, #help-button {