
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.
modern-grid
Advanced tools
Import file if your bundler supports SCSS.
@import "node_modules/modern-grid/src/modern-grid.scss";
@import url("/node_modules/modern-grid/src/modern-grid.scss") screen and (min-width: 992px);
Or link to the file by the <link> element:
<link rel="stylesheet" href="path-to-the-file/modern-grid.min.css">
:root {
--wrapper: min(1600px, 92vw);
--gutter: 3vw;
}
<div class="wrapper">
<div class="column" style="--column: 2; --offset: 2;">column 2 offset 2</div>
<div class="column" style="--column: 5;">column 5</div>
<div class="column column--infinite" style="--column: 3;">column 3 infinite</div>
</div>
| Class | Description |
|---|---|
.wrapper | ... |
.column | ... |
.column--infinite | Stretches the first or last column to the edge of the screen. |
| Variable | Description |
|---|---|
--wrapper | Sets the width of the wrapper and the size of the margins from the wrapper on the left and right. For example: 80vw or calc(100vw - 100px) or min(1600px, 92vw). |
--gutter | Sets the size of the margins between the columns. |
--column | Used to set the width of one column. Allowed to use positive decimals. Example: --column: 3.5. |
--offset | Move columns to the right using --offset variables. These variables increase the left margin of a column. For example, --column: 8; --offset: 4;. |
modern-grid is released under MIT license.
FAQs
Flexbox grid system
We found that modern-grid 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.