Skip to content

Commit e56839b

Browse files
committed
Replace px font units with rem, resolves #904
1 parent de3c315 commit e56839b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

assets/css/application.scss

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
body {
88
background: #fafafa;
99
color: #5c5855;
10-
font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
10+
font: 0.875rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
1111
}
1212

1313
@media (prefers-color-scheme: dark) {
@@ -68,7 +68,7 @@ h1, h2, h3, h5 {
6868
}
6969

7070
h1 {
71-
font-size: 35px;
71+
font-size: 2.1875rem;
7272
margin-bottom: 25px;
7373
}
7474

@@ -78,19 +78,19 @@ h1 {
7878

7979
h2 {
8080
opacity: 0.8;
81-
font-size: 24px;
81+
font-size: 1.5rem;
8282
margin-top: 24px;
8383
margin-bottom: 10px;
8484
}
8585

8686
h3 {
87-
font-size: 15px;
87+
font-size: 0.9375rem;
8888
margin-top: 20px;
8989
margin-bottom: 10px;
9090
}
9191

9292
h5 {
93-
font-size: 14px;
93+
font-size: 0.875rem;
9494
margin-bottom: 15px;
9595
}
9696

@@ -120,12 +120,12 @@ strong {
120120
}
121121

122122
.home h1 {
123-
font-size: 60px;
123+
font-size: 3.75rem;
124124
}
125125

126126
.home h2 {
127127
color: #687072;
128-
font-size: 27px;
128+
font-size: 1.6875rem;
129129
line-height: 70px;
130130
margin-bottom: 45px;
131131
vertical-align: middle;
@@ -134,7 +134,7 @@ strong {
134134

135135
.home h2 span {
136136
color: rgba(127,127,127,10%);
137-
font-size: 70px;
137+
font-size: 4.375rem;
138138
padding: 0 5px;
139139
position: relative;
140140
top: 10px;
@@ -160,7 +160,7 @@ strong {
160160
}
161161

162162
.triptych h3 {
163-
font-size: 22px;
163+
font-size: 1.375rem;
164164
margin: 0 auto 20px auto;
165165
width: 220px;
166166
}
@@ -218,7 +218,7 @@ strong {
218218
}
219219

220220
.license-overview-name {
221-
font-size: 28px;
221+
font-size: 1.75rem;
222222
margin-top: 5px;
223223
}
224224

@@ -228,7 +228,7 @@ strong {
228228

229229
.license-rules {
230230
border-bottom: solid 1px #ddd;
231-
font-size: 13px;
231+
font-size: 0.8125rem;
232232
line-height: 1.3;
233233
margin-bottom: 12px;
234234
width: 100%;
@@ -240,7 +240,7 @@ strong {
240240
}
241241

242242
.license-rules th {
243-
font-size: 15px;
243+
font-size: 0.9375rem;
244244
padding: 5px 10px 5px 0;
245245
vertical-align: bottom;
246246
}
@@ -259,11 +259,11 @@ strong {
259259
}
260260

261261
.license-rules .name a {
262-
font-size: 28px;
262+
font-size: 1.75rem;
263263
}
264264

265265
.license-rules .name small a {
266-
font-size: 16px;
266+
font-size: 1rem;
267267
}
268268

269269
.license-rules td {
@@ -302,14 +302,14 @@ strong {
302302
}
303303

304304
.license-body {
305-
font-size: 15px;
305+
font-size: 0.9375rem;
306306
float: left;
307307
width: 700px;
308308
}
309309

310310
.license-body pre {
311311
font-family: Consolas, Monaco, Courier, monospace;
312-
font-size: 14px;
312+
font-size: 0.875rem;
313313
background-color: #fff;
314314
border: 1px solid #eee;
315315
-webkit-border-radius: 3px;
@@ -327,7 +327,7 @@ strong {
327327
.sidebar {
328328
float: right;
329329
width: 220px;
330-
font-size: 12px;
330+
font-size: 0.75rem;
331331
}
332332

333333
.sidebar a.button {
@@ -398,7 +398,7 @@ strong {
398398
background-image: -o-linear-gradient(#eee, #ddd);
399399
background-image: linear-gradient(#eee, #ddd);
400400
display: inline-block;
401-
font-size: 12px;
401+
font-size: 0.75rem;
402402
font-weight: normal;
403403
padding: 5px 10px;
404404
text-align: center;
@@ -423,7 +423,7 @@ strong {
423423
margin-top: 30px;
424424
padding-top: 20px;
425425
color: #555;
426-
font-size: 12px;
426+
font-size: 0.75rem;
427427
text-align: left;
428428
line-height: 1.5;
429429
}
@@ -467,7 +467,7 @@ strong {
467467
.qtip-limitations,
468468
.qtip-fetching,
469469
.qtip-error {
470-
font-size: 12px;
470+
font-size: 0.75rem;
471471
line-height: 1.3;
472472
}
473473

0 commit comments

Comments
 (0)