postcss-structure
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -1,2 +0,3 @@ | ||
0.6.0 | ||
0.7.3 | ||
- feat: add hide feature | ||
@@ -3,0 +4,0 @@ 0.5.0 |
@@ -38,3 +38,4 @@ 'use strict'; | ||
rights: [], | ||
shows: [] | ||
shows: [], | ||
hides: [] | ||
}; | ||
@@ -104,2 +105,7 @@ | ||
_utils2.default.declClean(decl); | ||
} else if (value[0] === 'hide') { | ||
e.hides[value[1]] = e.hides[value[1]] || []; | ||
e.hides[value[1]].push(decl.parent.selector); | ||
_utils2.default.declClean(decl); | ||
} else if (value[0] === 'right') { | ||
@@ -106,0 +112,0 @@ e.rights[value[1]] = e.rights[value[1]] || []; |
@@ -43,2 +43,6 @@ 'use strict'; | ||
var _hidesQuery = require('./hides-query'); | ||
var _hidesQuery2 = _interopRequireDefault(_hidesQuery); | ||
var _rightsQuery = require('./rights-query'); | ||
@@ -88,2 +92,3 @@ | ||
(0, _showsQuery2.default)(breakpoint, mediaQuery, e.shows); | ||
(0, _hidesQuery2.default)(breakpoint, mediaQuery, e.hides); | ||
(0, _rightsQuery2.default)(opts, breakpoint, mediaQuery, e.rights); | ||
@@ -90,0 +95,0 @@ (0, _columnsQuery2.default)(opts, breakpoint, mediaQuery, e.columns); |
{ | ||
"name": "postcss-structure", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "A PostCSS plugin to create CSS grids based on a fixed block width.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -220,2 +220,14 @@ # PostCSS-structure [![Build Status][ci-img]][ci] | ||
### Hide | ||
`structure: hide [breakpoint]` | ||
- _breakpoint_: the element is hidden when the screen is wider than _breakpoint_. | ||
``` css | ||
.my-element { | ||
structure: hide 3; | ||
} | ||
``` | ||
### Right | ||
@@ -222,0 +234,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56195
37
1667
245