
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Modular grid powered by Lost and BEM
The easiest way:
bower install --save sharps<link rel="stylesheet" href="./bower_components/sharps/dist/sharps.min.css">As plugin for postcss:
npm i --save sharpssharpsconst postcss = require('postcss');
const sharps = require('sharps').postcss;
postcss([sharps({
columns: 12, // default
maxWidth: '1100px',
gutter: '10px',
flex: 'flex'
})]).process('a {color: red}').then(function(result) {
console.log(result.css);
});
As ENB module:
npm i --save-dev sharpssharps in your ENB config[require('sharps').enb, {
config: {
columns: 12, // default
maxWidth: '1100px',
gutter: '10px',
flex: 'flex'
}
}]
Note: If you have any css builder, you should change its target and add source to sharps parameters for preventing conflicts, like this:
[techs.stylus, {
target: '?.no-grid.css', // there is the changed target
sourcemap: false,
autoprefixer: {
browsers: ['ie >= 10', 'last 2 versions', 'opera 12.1', '> 2%']
}
}],
[require('sharps').enb, {
config: {
maxWidth: '1100px',
gutter: '10px',
flex: 'flex'
},
source: '?.no-grid.css' // there is the source
}]
<div class="row">
<div class="row__col row__col_mw_6">left column</div>
<div class="row__col row__col_mw_6">right column</div>
</div>
{
block: 'row',
content: [
{
elem: 'col',
elemMods: { mw: 6 },
content: 'left column'
},
{
elem: 'col',
elemMods: { mw: 6 },
content: 'right column'
}
]
}
Useful mods for row block:
(s|m|l|xl|xxl)al - align cols to left on needed displays
(s|m|l|xl|xxl)ac - align cols to center on needed displays
(s|m|l|xl|xxl)ar - align cols to right on needed displays
(s|m|l|xl|xxl)vat - align cols vertically to top on needed displays
(s|m|l|xl|xxl)vam - align cols vertically to middle on needed displays
(s|m|l|xl|xxl)vab - align cols vertically to bottom on needed displays
Useful mods for col element:
(s|m|l|xl|xxl) - auto width on needed displays
(s|m|l|xl|xxl)w - width on needed displays, 0 hide col on this device
(s|m|l|xl|xxl)o - offset on needed displays
(s|m|l|xl|xxl)of - order first this col on needed displays
(s|m|l|xl|xxl)ol - order last this col on needed displays
Please, talk about your ideas by GitHub issues.
FAQs
Modular grid powered by Lost and BEM
We found that sharps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.