Skip to content

Commit ea87964

Browse files
jesseabordenJesse Borden
andauthored
style(typography): Update headlines to have uniform size and line-height. (#1036)
Co-authored-by: Jesse Borden <jborden@apple.com>
1 parent d28c194 commit ea87964

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

assets/stylesheets/new-stylesheets/_syntax.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
}
2828
}
2929

30-
3130
&:hover {
3231
background-color: var(--color-syntax-clipboard-hover-bg);
3332

@@ -47,7 +46,7 @@
4746
pre.highlight {
4847
background: var(--color-code-background);
4948
font-size: 14px;
50-
line-height: 1.53;
49+
line-height: 1.5;
5150
overflow-x: auto;
5251

5352
.c, /* Comment */
@@ -77,10 +76,11 @@ pre.highlight {
7776
}
7877

7978
.n {
80-
color: #B181EC;
79+
color: #b181ec;
8180
}
8281

83-
.o, .p {
82+
.o,
83+
.p {
8484
color: var(--color-syntax-brackets-dots);
8585
}
8686

assets/stylesheets/new-stylesheets/includes/callout/_base.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
display: block;
3939
color: white;
4040
text-decoration: underline;
41-
text-decoration-color: rgba(255,255,255,0.5);
41+
text-decoration-color: rgba(255, 255, 255, 0.5);
4242
text-underline-offset: 2px;
4343
margin-top: 14px;
4444

@@ -65,11 +65,17 @@
6565
}
6666

6767
.callout-subtitle {
68-
line-height: 1.5;
68+
line-height: 1.25;
6969
margin-bottom: 4px;
70-
font-size: 21px;
70+
font-size: 24px;
7171
}
7272

7373
.callout-text {
7474
text-align: left;
7575
}
76+
77+
.hide-small {
78+
@media only screen and (max-width: 767px) {
79+
display: none;
80+
}
81+
}

assets/stylesheets/new-stylesheets/pages/_get-started.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234

235235
.name {
236236
font-size: 24px;
237+
line-height: 1.25;
237238
margin-bottom: 10px;
238239
}
239240

@@ -265,7 +266,8 @@
265266
position: relative;
266267

267268
.name {
268-
font-size: 22px;
269+
font-size: 24px;
270+
line-height: 1.25;
269271
margin-bottom: 10px;
270272
}
271273

@@ -303,8 +305,6 @@
303305

304306
.name {
305307
margin-bottom: 6px;
306-
font-size: 22px;
307-
line-height: 1.33;
308308
}
309309

310310
.text {

assets/stylesheets/new-stylesheets/pages/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ $icons: (
321321
}
322322

323323
.pillar-intro {
324-
font-size: 21px;
325-
line-height: 1.5;
324+
font-size: 24px;
325+
line-height: 1.45;
326326
}
327327
}
328328

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ atom: true
5757
</p>
5858
<br />
5959
<p class="pillar-intro">
60-
It's the combination of approachability, speed, safety, and all of<br/> Swift’s strengths that make it so unique.
60+
It's the combination of approachability, speed, safety, and all of<br class="hide-small"/> Swift’s strengths that make it so unique.
6161
</p>
6262
</div>
6363
{% for callout in pillar1_callouts %}

0 commit comments

Comments
 (0)