1.1.0 • Published 6 years ago
fluxgrid-responsive-gutter v1.1.0
Fluxgrid - Responsive gutter
Responsive and customisable utility-based CSS grid built with Sass.
This package is a fork of Fluxgrid, it adds the possibility to change gutters throughout breakpoints, but prevents the use of lgGutter|noGutter on .grid as well as gutter|noGutter on .cell.
Install
npm i fluxgrid-responsive-gutter --saveDefault config
- Columns:
12 - Gutters width:
Responsive - Nestable: Yes
- Direction: Row
- Breakpoints:
| Extra small | Small | Medium | Large | Extra large | |
|---|---|---|---|---|---|
| Device | Phone | Tablet | Desktop | Large desktop | Extra large desktop |
| Breakpoint | > 0 | ≥ 425px | ≥ 768px | ≥ 1024px | ≥ 1366px |
| Suffix | @xs | @sm | @md | @lg | @xl |
Syntax
<div class="container container--modifier">
<div class="grid grid--modifier-*">
<div class="cell cell--modifier-*"></div>
</div>
</div>Responsive: *@xs|@sm|@md|@lg|@xl
Options
Head over the demo page.
Getting Started
Choose your preferred way:
A. With the default config
Link the pre-compiled files to your document's
<head>:<link rel="stylesheet" type="text/css" href="node_modules/fluxgrid-responsive-gutter/assets/dist/css/fluxgrid/fluxgrid.min.css" />fluxgrid-debug.min.css(optional, not recommended in production)<link rel="stylesheet" type="text/css" href="node_modules/fluxgrid-responsive-gutter/assets/dist/css/fluxgrid/fluxgrid-debug.min.css" />
B. Recommended With a custom config - within your own build environment (Webpack / Gulp / Grunt / any)
- To overwrite the default config, redefine any of the
!defaultSass variables from_settings.scss:$fluxgrid-namespace $fluxgrid-division $fluxgrid-breakpoints - Import Fluxgrid:
@import "node_modules/fluxgrid-responsive-gutter/assets/src/scss/fluxgrid/fluxgrid.scss" - Optionally (not recommended in production) import
fluxgrid-debug.scssthe same way - Run these through your Sass pipeline. It is advised to Autoprefix and minify them
- Link the output files to your document's
<head>as shown above
C. With a custom config - with the provided build tool
- Clone the repo
- Install the dependencies:
$ npm i - Customise the Sass variables from
_settings.scssto your liking:$fluxgrid-namespace $fluxgrid-division $fluxgrid-breakpoints - To build the grid, run:
$ npx gulp prod, with the optional flag--debug - Link the output files to your document's
<head>as shown above