Skip to content

Commit a02218b

Browse files
committed
Clean up icon and tidy results
1 parent ec768e4 commit a02218b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1919,9 +1919,9 @@ button#toggle-all-docs:hover, button#toggle-all-docs:focus-visible {
19191919
/* Magnifying glass */
19201920
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" \
19211921
width="18" height="18" viewBox="0 0 16 16">\
1922-
<circle r="5" cy="7" cx="6" style="fill:none;stroke:currentColor;stroke-width:3"></circle>\
1923-
<path d="M 16,15 10,10" style="fill:none;stroke:currentColor;stroke-width:4"></path>\
1924-
<desc>Search</desc>\
1922+
<circle r="5" cy="7" cx="7" style="fill:none;stroke:black;stroke-width:3"/><path \
1923+
d="M14.5,14.5 12,12" style="fill:none;stroke:black;stroke-width:3;stroke-linecap:round">\
1924+
</path><desc>Search</desc>\
19251925
</svg>');
19261926
width: 18px;
19271927
height: 18px;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
15281528
if (isHelpPage) {
15291529
buildHelpMenu();
15301530
} else {
1531-
onEachLazy(document.querySelectorAll(`.help-menu > a`), helpLink => {
1531+
onEachLazy(document.querySelectorAll(".help-menu > a"), helpLink => {
15321532
helpLink.addEventListener("click", event => {
15331533
// By default, have help button open docs in a popover.
15341534
// If user clicks with a moderator, though, use default browser behavior,
@@ -1544,7 +1544,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
15441544
} else {
15451545
showHelp();
15461546
}
1547-
})
1547+
});
15481548
});
15491549
}
15501550

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

+1-1
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 */
4+
/* global MAIN_ID, getVar */
55

66
"use strict";
77

0 commit comments

Comments
 (0)