Skip to content

Commit 0c08c39

Browse files
committed
Clean up icon and tidy results
1 parent e854456 commit 0c08c39

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,9 +2079,9 @@ button#toggle-all-docs:hover, button#toggle-all-docs:focus-visible {
20792079
/* Magnifying glass */
20802080
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" \
20812081
width="18" height="18" viewBox="0 0 16 16">\
2082-
<circle r="5" cy="7" cx="6" style="fill:none;stroke:currentColor;stroke-width:3"></circle>\
2083-
<path d="M 16,15 10,10" style="fill:none;stroke:currentColor;stroke-width:4"></path>\
2084-
<desc>Search</desc>\
2082+
<circle r="5" cy="7" cx="7" style="fill:none;stroke:black;stroke-width:3"/><path \
2083+
d="M14.5,14.5 12,12" style="fill:none;stroke:black;stroke-width:3;stroke-linecap:round">\
2084+
</path><desc>Search</desc>\
20852085
</svg>');
20862086
width: 18px;
20872087
height: 18px;

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,8 +1678,7 @@ function preLoadCss(cssUrl) {
16781678
if (isHelpPage) {
16791679
buildHelpMenu();
16801680
} else {
1681-
onEachLazy(document.querySelectorAll(`.help-menu > a`), helpLink => {
1682-
/** @param {MouseEvent} event */
1681+
onEachLazy(document.querySelectorAll(".help-menu > a"), helpLink => {
16831682
helpLink.addEventListener(
16841683
"click",
16851684
/** @param {MouseEvent} event */

src/librustdoc/html/static/js/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Local js definitions:
22
/* global getSettingValue, updateLocalStorage, updateTheme */
33
/* global addClass, removeClass, onEach, onEachLazy */
4-
/* global MAIN_ID, getVar, getSettingsButton, getHelpButton, nonnull */
4+
/* global MAIN_ID, getVar */
55

66
"use strict";
77

0 commit comments

Comments
 (0)