Skip to content

Commit b3552fe

Browse files
Merge pull request #489 from rust-lang/revert-449-reduce-homepage-whitespace
Revert "Reduce vertical padding on homepage"
2 parents be2bf76 + 9ec8a3f commit b3552fe

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

src/styles/app.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,15 @@ header h1, section h2 {
4949
}
5050

5151
header h1 {
52-
line-height: 1;
5352
font-size: 10rem;
5453
margin-bottom: 0;
5554
margin-top: 0;
5655
}
5756

57+
header {
58+
padding: 30px 0 60px 0;
59+
}
60+
5861
header .button.button-primary.button-download {
5962
background-color: $yellow;
6063
border-color: $yellow;
@@ -63,7 +66,7 @@ header .button.button-primary.button-download {
6366
padding: 20px;
6467
height: auto;
6568
font-size: 2em;
66-
margin-top: 25px;
69+
margin-top: 20px;
6770
}
6871

6972
header .button.button-primary.button-download {
@@ -81,7 +84,7 @@ h2.subtitle {
8184
}
8285

8386
section {
84-
padding: 30px 0;
87+
padding: 30px 0 60px 0;
8588
}
8689

8790
ul {
@@ -565,7 +568,7 @@ blockquote::before {
565568
.button.button-primary.button-download {
566569
padding: 5px;
567570
font-size: 1.5em;
568-
margin-top: 0;
571+
margin-top: 20px;
569572
}
570573
}
571574
}

templates/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{{#*inline "page"}}
2-
<header class="pt4 pb4-ns">
2+
<header class="mb6-ns">
33
<div class="container flex flex-column flex-row-l justify-between-l">
44
<div class="mw8-l">
55
<h1>Rust</h1>
6-
<h2 class="f2 f1-ns">
6+
<h2 class="mt4 f2 f1-ns">
77
The programming language that empowers <em>everyone</em> to become a
88
systems programmer.
99
</h2>
1010
</div>
11-
<div>
11+
<div class="mt4 mt0-l">
1212
<a class="button button-primary button-download ph4 mt0" href="/learn/get-started">
1313
Get started
1414
</a>

templates/nav.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<span class="pl4 db dn-l">{{!-- spacer --}}</span>
88
</a>
99

10-
<ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph4-ns pl0">
10+
<ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph4-ns">
1111
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/learn">Learn</a></li>
1212
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/tools">Tools</a></li>
1313
<li class="flex-inline pv2 ph2 ph4-ns"><a href="/governance">Governance</a></li>

templates/panels/language-values.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
<div class="flex flex-column flex-row-l pv4 pv0-l">
1010
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns pr4-l">
1111
<h3 class="f2 f1-l">Performance</h3>
12-
<p class="mb0 f3 lh-copy">
12+
<p class="f3 lh-copy">
1313
Rust is blazingly fast and memory-efficient: with no runtime or
1414
garbage collector, it can power performance-critical services, run on
1515
embedded devices, and easily integrate with other languages.
1616
</p>
1717
</section>
1818
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns ph3-l">
1919
<h3 class="f2 f1-l">Reliability</h3>
20-
<p class="mb0 f3 lh-copy">
20+
<p class="f3 lh-copy">
2121
Rust’s rich type system and ownership model guarantee memory-safety
2222
and thread-safety &mdash; and enable you to eliminate many other
2323
classes of bugs at compile-time.
2424
</p>
2525
</section>
2626
<section class="flex flex-column mw8 measure-wide-l pv3 pt4-ns pl4-l">
2727
<h3 class="f2 f1-l">Productivity</h3>
28-
<p class="mb0 f3 lh-copy">
28+
<p class="f3 lh-copy">
2929
Rust has great documentation, a friendly compiler with useful error
3030
messages, and top-notch tooling &mdash; an integrated package manager
3131
and build tool, a multi-editor language server, an auto-formatter, and

0 commit comments

Comments
 (0)