Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-structure

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-structure - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

lib/hide-query.js

3

CHANGELOG.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc