Skip to content

Commit 0272bf6

Browse files
Merge pull request #553 from rust-lang/larger-text
Improve consistency and bump text size.
2 parents 8d64759 + 5c39776 commit 0272bf6

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

src/styles/app.scss

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ $green: #398277;
99
$purple: #403D58;
1010
$yellow: #FFD45E;
1111

12+
html {
13+
font-size: 62.5%
14+
}
15+
16+
@media screen and (min-width: 30em) {
17+
html {
18+
font-size: 75%;
19+
}
20+
}
21+
1222
body {
1323
font-family: $body-font;
1424
background-color: white;
@@ -49,7 +59,7 @@ header h1, section h2 {
4959
}
5060

5161
header h1 {
52-
font-size: 10rem;
62+
font-size: 8rem;
5363
margin-bottom: 0;
5464
margin-top: 0;
5565
}
@@ -61,7 +71,7 @@ header .button.button-primary.button-download {
6171
width: 100%;
6272
padding: 20px;
6373
height: auto;
64-
font-size: 2em;
74+
font-size: 2.25rem;
6575
margin-top: 20px;
6676
}
6777

@@ -261,7 +271,7 @@ a.brand {
261271

262272
h3 {
263273
font-weight: 800;
264-
font-size: 1.8em;
274+
font-size: 1.5em;
265275
letter-spacing: normal;
266276
}
267277

@@ -345,10 +355,6 @@ blockquote::before {
345355
text-align: right;
346356
}
347357

348-
.production p {
349-
font-size: 3rem;
350-
}
351-
352358
.production .button.button-secondary {
353359
margin-top: 30px;
354360
display: block;

templates/governance/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<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>
6-
<h2 class="subtitle">How Rust is built by its community</h2>
6+
<h2 class="f2 f1-ns mt0">How Rust is built by its community</h2>
77
</div>
88
</header>
99

templates/panels/production.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<section class="white production">
2-
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
2+
<div class="w-100 mw-none ph3 mw8-m mw9-l center">
33
<header>
44
<h2>Rust in production</h2>
55
<div class="highlight"></div>
66
</header>
77
<div class="description">
8-
<p>
8+
<p class="lh-copy f2">
99
Hundreds of companies around the world are using Rust in production
1010
today for fast, low resource, cross-platform solutions. Software you know
1111
and love, like <a href="https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/" target="_blank" rel="noopener">Firefox</a>, <a href="https://blogs.dropbox.com/tech/2016/06/lossless-compression-with-brotli/" target="_blank" rel="noopener">Dropbox</a>, and <a href="https://blog.cloudflare.com/cloudflare-workers-as-a-serverless-rust-platform/" target="_blank" rel="noopener">Cloudflare</a>, uses Rust. <strong>From startups to large
@@ -15,7 +15,7 @@
1515
<div class="testimonials">
1616
<div class="testimonial row">
1717
<div class="eight columns" id="chucklefish-testimonial">
18-
<blockquote>
18+
<blockquote class="lh-title-ns">
1919
Rust is one of the few languages that really gives you a large amount of confidence that your parallel and
2020
concurrent code is anywhere near correct.
2121
</blockquote>

0 commit comments

Comments
 (0)