Skip to content

Commit 1423f65

Browse files
committed
Decrease header line-height on mobile
1 parent bef20c4 commit 1423f65

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

scss/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ h1, h2, h3, h4, h5, h6 {
3737
line-height: 1.7;
3838
margin: 1em 0 15px;
3939
padding: 0;
40+
41+
@include mobile {
42+
line-height: 1.4;
43+
}
4044
}
4145

4246
h1 {

style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ h1, h2, h3, h4, h5, h6 {
334334
line-height: 1.7;
335335
margin: 1em 0 15px;
336336
padding: 0; }
337+
@media screen and (max-width: 520px) {
338+
h1, h2, h3, h4, h5, h6 {
339+
line-height: 1.4; } }
337340

338341
h1 {
339342
font-weight: 400;

0 commit comments

Comments
 (0)