Skip to content

Commit 7cfd451

Browse files
author
James Kolce
committed
Replace postcss-vertical-rhythm with postcss-lh
1 parent e0a2f95 commit 7cfd451

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

lib/compile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ module.exports = (file) => {
77
}).css;
88

99
return postcss([
10-
require('postcss-vertical-rhythm')({
11-
rootSelector: ':root',
12-
rhythmUnit: 'lh'
13-
}),
10+
require('postcss-lh'),
1411
require('postcss-custom-media'),
1512
require('postcss-media-minmax'),
1613
require('autoprefixer')

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": "jameskolce/postcss-lh"
21+
"postcss-lh": "jameskolce/postcss-lh"
2222
},
2323
"devDependencies": {
2424
"tape": "^4.5.1"

test/fixtures/verticalRhythm/verticalRhythm.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
}
1616

1717
p {
18-
margin-bottom: 24px;
19-
padding-top: 12px;
18+
margin-bottom: 1.5rem;
19+
padding-top: 0.75rem;
2020
}

0 commit comments

Comments
 (0)