Skip to content

Commit b8bb908

Browse files
committed
Auto merge of #26882 - andreastt:style_improvements, r=alexcrichton
Sharpens the help dialogues edges by removing border-padding, which matches better with the rest of the document. Also increases somewhat the rounded edges of the key symbols to make it clear they are symbols. Also introduces closing apostrophes and ellipsis for search field placeholder.
2 parents d18eb74 + 885e701 commit b8bb908

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/librustdoc/html/layout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ r##"<!DOCTYPE html>
7272
<div class="search-container">
7373
<input class="search-input" name="search"
7474
autocomplete="off"
75-
placeholder="Click or press 'S' to search, '?' for more options..."
75+
placeholder="Click or press ‘S’ to search, ‘?’ for more options"
7676
type="search">
7777
</div>
7878
</form>
@@ -85,7 +85,7 @@ r##"<!DOCTYPE html>
8585
8686
<div id="help" class="hidden">
8787
<div class="shortcuts">
88-
<h1>Keyboard shortcuts</h1>
88+
<h1>Keyboard Shortcuts</h1>
8989
<dl>
9090
<dt>?</dt>
9191
<dd>Show this help dialog</dd>
@@ -100,7 +100,7 @@ r##"<!DOCTYPE html>
100100
</dl>
101101
</div>
102102
<div class="infos">
103-
<h1>Search tricks</h1>
103+
<h1>Search Tricks</h1>
104104
<p>
105105
Prefix searches with a type followed by a colon (e.g.
106106
<code>fn:</code>) to restrict the search to a given type.

src/librustdoc/html/static/main.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ tr.result span.primitive::after { content: ' (primitive type)'; font-style: ital
447447

448448
#help {
449449
background: #e9e9e9;
450-
border-radius: 4px;
451450
box-shadow: 0 0 6px rgba(0,0,0,.2);
452451
position: absolute;
453452
top: 300px;
@@ -461,7 +460,7 @@ tr.result span.primitive::after { content: ' (primitive type)'; font-style: ital
461460

462461
#help dt {
463462
float: left;
464-
border-radius: 3px;
463+
border-radius: 4px;
465464
border: 1px solid #bfbfbf;
466465
background: #fff;
467466
width: 23px;

0 commit comments

Comments
 (0)