Skip to content

Commit 6ebbfe6

Browse files
committed
rev v
1 parent 99e1651 commit 6ebbfe6

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

index.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
const _ = require('lodash')
22

3-
module.exports = function({
3+
module.exports = function ({
44
grids = _.range(1, 12),
55
gaps = {},
66
autoMinWidths = {},
77
variants = ['responsive'],
88
}) {
9-
return function({ e, addUtilities }) {
9+
return function ({
10+
e,
11+
addUtilities
12+
}) {
1013
addUtilities(
11-
[
12-
{
14+
[{
1315
'.grid': {
1416
display: 'grid',
1517
},
@@ -20,11 +22,11 @@ module.exports = function({
2022
},
2123
},
2224
..._.map(gaps, (size, name) => {
23-
const gridGap = name.endsWith('-y')
24-
? 'gridRowGap'
25-
: name.endsWith('-x')
26-
? 'gridColumnGap'
27-
: 'gridGap'
25+
const gridGap = name.endsWith('-y') ?
26+
'gridRowGap' :
27+
name.endsWith('-x') ?
28+
'gridColumnGap' :
29+
'gridGap'
2830

2931
return {
3032
[`.${e(`grid-gap-${name}`)}`]: {
@@ -72,4 +74,4 @@ module.exports = function({
7274
variants,
7375
)
7476
}
75-
}
77+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-grid",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "CSS grid plugin for tailwindcss framework",
55
"main": "index.js",
66
"scripts": {
@@ -25,4 +25,4 @@
2525
"devDependencies": {
2626
"lodash": "^4.17.5"
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)