Skip to content

Commit f3d2df6

Browse files
author
James Kolce
committed
Use custom version of postcss-vertical-rhythm
1 parent 2cfdad2 commit f3d2df6

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"postcss": "^5.0.21",
1919
"postcss-custom-media": "^5.0.1",
2020
"postcss-media-minmax": "^2.1.2",
21-
"postcss-vertical-rhythm": "^1.1.5"
21+
"postcss-vertical-rhythm": "jameskolce/postcss-vertical-rhythm"
2222
},
2323
"devDependencies": {
2424
"tape": "^4.5.1"
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
:root {
2-
font: 16px/2 serif;
2+
font: 16px / 1.5 "Helvetica", "Arial", sans-serif;
3+
}
4+
5+
@media (max-width: 500px) {
6+
:root {
7+
font-size: 14px;
8+
}
9+
}
10+
11+
@media print {
12+
:root {
13+
font: 11pt / 1.3 "Georgia", "Times New Roman", "Times", serif;
14+
}
315
}
416

517
p {
6-
margin-bottom: 32px;
7-
padding-top: 16px;
18+
margin-bottom: 24px;
19+
padding-top: 12px;
820
}

test/fixtures/verticalRhythm/verticalRhythm.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
:root {
2-
font: 16px/2 serif;
2+
font: 16px / 1.5 "Helvetica", "Arial", sans-serif;
3+
4+
@media (max-width: 500px) {
5+
font-size: 14px;
6+
}
7+
}
8+
9+
@media print {
10+
:root {
11+
font: 11pt / 1.3 "Georgia", "Times New Roman", "Times", serif;
12+
}
313
}
414

515
p {

0 commit comments

Comments
 (0)