Skip to content

Commit 2c5d904

Browse files
Merge pull request #535 from rust-lang/vertical-padding-446
Improve white space in headings
2 parents beddf3b + d550978 commit 2c5d904

File tree

22 files changed

+41
-37
lines changed

22 files changed

+41
-37
lines changed

src/styles/app.scss

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ header h1 {
5454
margin-top: 0;
5555
}
5656

57-
header {
58-
padding: 30px 0 60px 0;
59-
}
60-
6157
header .button.button-primary.button-download {
6258
background-color: $yellow;
6359
border-color: $yellow;
@@ -85,6 +81,17 @@ h2.subtitle {
8581

8682
section {
8783
padding: 30px 0 60px 0;
84+
85+
header {
86+
padding: 30px 0 60px 0;
87+
display: inline-block;
88+
89+
h2 {
90+
margin: 0;
91+
padding: 0;
92+
letter-spacing: 1px;
93+
}
94+
}
8895
}
8996

9097
ul {
@@ -267,20 +274,10 @@ h3 {
267274
border-bottom: 1px dotted white;
268275
}
269276

270-
section header {
271-
display: inline-block;
272-
}
273-
274277
header h1 {
275278
letter-spacing: 1px;
276279
}
277280

278-
section header h2 {
279-
margin: 0;
280-
padding: 0;
281-
letter-spacing: 1px;
282-
}
283-
284281
.highlight {
285282
height: 30px;
286283
position: relative;
@@ -575,6 +572,13 @@ blockquote::before {
575572
margin-top: 20px;
576573
}
577574
}
575+
576+
section header {
577+
padding: {
578+
top: 10px;
579+
bottom: 30px;
580+
}
581+
}
578582
}
579583

580584
.team {

templates/community/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Community</h1>
66
</div>

templates/governance/group.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>{{ data.info[0].name }}</h1>
66
</div>

templates/governance/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Governance</h1>
66
<h2 class="subtitle">How Rust is built by its community</h2>

templates/index.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{#*inline "page"}}
2-
<header class="mb6-ns">
2+
<header class="mt3 mt0-ns mb6-ns">
33
<div class="container flex flex-column flex-row-l justify-between-l">
44
<div class="mw8-l">
55
<h1>Rust</h1>
@@ -8,7 +8,7 @@
88
systems programmer.
99
</h2>
1010
</div>
11-
<div class="mt4 mt0-l">
11+
<div>
1212
<a class="button button-primary button-download ph4 mt0" href="/learn/get-started">
1313
Get started
1414
</a>

templates/learn/get-started.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Getting started</h1>
66
<h2 class="subtitle">Quickly set up a Rust development environment and write a small app!</h2>

templates/learn/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Learn Rust</h1>
66
</div>

templates/policies/code-of-conduct.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Code of conduct</h1>
66
</div>

templates/policies/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Policies</h1>
66
</div>

templates/policies/licenses.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Licenses</h1>
66
</div>

templates/policies/media-guide.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#* inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Media guide</h1>
66
</div>

templates/policies/security.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Security policy</h1>
66
</div>

templates/production/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Production</h1>
66
</div>

templates/production/users.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Users</h1>
66
</div>

templates/tools/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Tools</h1>
66
</div>

templates/tools/install.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Install Rust</h1>
66
</div>

templates/tools/rustup.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="row">
22
<div id="platform-instructions-unix" class="instructions" style="display: block;">
33
<p>It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.</p>
4-
<code>curl https://sh.rustup.rs -sSf | sh</code>
4+
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
55
</div>
66
<div id="platform-instructions-win" class="instructions" style="display: none;">
77
<p>It looks like you’re running Windows. To install Rust, download and run</p>
88
<a href="https://win.rustup.rs" class="button button-secondary">rustup‑init.exe</a>
99
<p>...then follow the onscreen instructions.</p>
1010
<p><b>Windows Subsystem for Linux</b></p>
1111
<p>If you’re a Windows Subsystem for Linux user run the following in your terminal, then follow the on-screen instructions to install Rust.</p>
12-
<code>curl https://sh.rustup.rs -sSf | sh</code>
12+
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
1313
</div>
1414
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
1515
<!-- unrecognized platform: ask for help -->

templates/what/cli.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Command-line apps</h1>
66
</div>

templates/what/embedded.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Embedded devices</h1>
66
</div>

templates/what/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>What</h1>
66
</div>

templates/what/networking.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Networking</h1>
66
</div>

templates/what/wasm.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#*inline "page"}}
22

3-
<header>
3+
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
55
<h1>Web&shy;Assembly</h1>
66
</div>

0 commit comments

Comments
 (0)