0.0.7 • Published 4 years ago

basscss-responsive-flex v0.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

basscss-responsive-flex

npm version

Optional module to extend Basscss, intended to offer responsive breakpoints (as determined by basscss own breakpoints) for flex utilities.

Npm installation

npm i -D basscss-responsive-flex

To import it :

import '~basscss/css/index.css'
import '~basscss-responsive-flex/css/responsive-flex.css'
// or
import '~basscss-responsive-flex/css/responsive-flex.min.css'

or in css :

@import '~basscss/css/index.css';
@import '~basscss-responsive-flex/css/responsive-flex.css'
// or
@import '~basscss-responsive-flex/css/responsive-flex.min.css'

(assuming you're using some sort of webpack aliasing, else import it with the relative node_modules path.)

CDN Link

<link href="https://unpkg.com/basscss-responsive-flex@0.0.3/css/responsive-flex.css" rel="stylesheet">

Usage

Each flex utility defined by basscss is augmented with -sm-, -md- and -lg- classes.

For example:

<nav class='flex flex-wrap flex-sm-column flex-lg-wrap '>
    <a href="#">1</a>
    <a href="#">2</a>
    <a href="#">3</a>
    <a href="#">4</a>
    <a href="#">5</a>
</nav>

would wrap at the smallest possible size, column at sm size and wrap at lg size.

For a complete breakdown of all possible classes, see the compiled .css file located in css/responsive-flex.css

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago