2.2.4 • Published 6 years ago

small-flexgrid v2.2.4

Weekly downloads
16
License
MIT
Repository
github
Last release
6 years ago

small-flexgrid.styl

A small flexgrid written in Stylus

Usage

npm install --save small-flexgrid

@import 'small-flexgrid';
/* or, for css: */
@import 'small-flexgrid/.css';
/* or, for prefixed css */
@import 'small-flexgrid/prefixed.css';
import 'small-flexgrid';
// or, for css:
import 'small-flexgrid/.css';
// or, for prefixed css
import 'small-flexgrid/prefixed.css';

OR

<link rel="stylesheet" href="https://unpkg.com/small-flexgrid/min.css">
<!-- OR -->
<link rel="stylesheet" href="https://unpkg.com/small-flexgrid/prefixed.min.css">

You can also import mixins separately:

@import 'small-flexgrid/src/mixins';

THEN (if using stylus only)

in your styles

cols-amount = 12 // basically, any amount you want
sizes = {        // basically, any breakpoints you want
  all: 0rem
  xs: 20rem
  sm: 33.75rem
  md: 48rem
  lg: 63.75rem
  xl: 76.25rem
}
col-suffix = '-my-cool'

cols(cols-amount, sizes, col-suffix) // generate all columns

helpers(cols-amount, sizes, col-suffix)  // generate helpers

cols-with-helpers(cols-amount, sizes, col-suffix) // generate all columns AND helpers
2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago