Skip to content

Commit 1cf0e63

Browse files
author
James Kolce
committed
[fix: #14] Add postcss-input-range
1 parent 42c7f4a commit 1cf0e63

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

lib/compile.js

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

99
return postcss([
10+
require('postcss-input-range'),
1011
require('postcss-lh'),
1112
require('postcss-custom-media'),
1213
require('postcss-media-minmax'),
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
::-moz-range-track {
2+
background: #3071a9;
3+
width: 100%
4+
}
5+
6+
::-ms-track {
7+
background: #3071a9;
8+
width: 100%
9+
}
10+
11+
::-webkit-slider-runnable-track {
12+
background: #3071a9;
13+
width: 100%
14+
}
15+
16+
::-moz-range-thumb {
17+
border-radius: 3px;
18+
cursor: pointer
19+
}
20+
21+
::-ms-thumb {
22+
border-radius: 3px;
23+
cursor: pointer
24+
}
25+
26+
::-webkit-slider-thumb {
27+
border-radius: 3px;
28+
cursor: pointer
29+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
::range-track {
2+
background: #3071a9;
3+
width: 100%;
4+
}
5+
6+
::range-thumb {
7+
border-radius: 3px;
8+
cursor: pointer;
9+
}

test/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ test('units', (t) => {
3232

3333
t.end();
3434
});
35+
36+
test('range input', (t) => {
37+
t.equal(
38+
actual('input-range'),
39+
expected('input-range'),
40+
'should be transformed');
41+
42+
t.end();
43+
});

0 commit comments

Comments
 (0)