Skip to content

Commit 2cfdad2

Browse files
author
James Kolce
committed
Update root selector for vr unit
1 parent aaafce7 commit 2cfdad2

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/compile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ module.exports = (file) => {
77
}).css;
88

99
return postcss([
10-
require('postcss-vertical-rhythm'),
10+
require('postcss-vertical-rhythm')({
11+
rootSelector: ':root'
12+
}),
1113
require('postcss-custom-media'),
1214
require('postcss-media-minmax'),
1315
require('autoprefixer')

test/fixtures/verticalRhythm/verticalRhythm.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
body {
1+
:root {
22
font: 16px/2 serif;
33
}
44

test/fixtures/verticalRhythm/verticalRhythm.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
body {
1+
:root {
22
font: 16px/2 serif;
33
}
44

0 commit comments

Comments
 (0)