3.1.0 • Published 3 years ago

chaestli v3.1.0

Weekly downloads
128
License
MIT
Repository
github
Last release
3 years ago

chaestli

Dreipol scss grid system

Build Status NPM version NPM downloads MIT License

Documentation

Available mixins

Chaestli exports only 3 mixins (chaestli.container, chaestli.grid, chaestli.column) that combined together should be enough to scaffold your grid setup. For example:

@use 'node_modules/@dreipol/chaestli';

.grid {
    .grid__container {
        // a container having a max-with of 1024px with 16px lateral padding
        @include chaestli.container(( width: 1024px, edge: 16px ));
    }
   
    .grid__row {
        // a grid made of 12 columns with 8px lateral gutter
        @include chaestli.grid(( gutter: 8px, num-cols: 12 ));
    }

    .grid__small-col {
        // two columns over 12
        @include chaestli.column(2 span, 12 span);
    }

    .grid__medium-col {
        // for columns over 12
        @include chaestli.column(4 span, 12 span);
    }

    .grid__big-col {
        // eight columns over 12
        @include chaestli.column(8 span, 12 span);
    }
}

Usage

Installation

npm i chaestli -S
3.1.0

3 years ago

3.0.0

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago