New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

modern-grid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

modern-grid

Flexbox grid system

unpublished
latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

modern-grid

npm GitHub package version NPM Downloads

370 bytes gzipped

Demo


Import

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

Usage

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

Settings

Class                                  Description
.wrapper...
.column...
.column--infiniteStretches the first or last column to the edge of the screen.

Variable               Description
--wrapperSets 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).
--gutterSets the size of the margins between the columns.
--columnUsed to set the width of one column. Allowed to use positive decimals. Example: --column: 3.5.
--offsetMove columns to the right using --offset variables. These variables increase the left margin of a column. For example, --column: 8; --offset: 4;.

License

modern-grid is released under MIT license.

Keywords

Grid system

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

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.

Install

Related posts