tachyons-grid-layout 0.1.0
CSS Grid module for Tachyons
Stats
1583 | 239 | 267 |
---|---|---|
bytes | selectors | declarations |
Installation
npm
Withnpm install --save-dev tachyons-grid-layout
Learn more about using css installed with npm:
With Git
http:
git clone https://github.com/bobek-balinek/tachyons-grid-layout
ssh:
git clone git@github.com:bobek-balinek/tachyons-grid-layout.git
Usage
Postcss
Using withImport the css module
;
Then process the css using the tachyons-cli
$ npm i -g tachyons-cli$ tachyons path/to/css-file.css > dist/t.css
Using the css
CDN
The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with:
<link rel="stylesheet" href="http://unpkg.com/tachyons-grid-layout@0.1.0/css/tachyons-grid-layout.min.css" />
Locally
The built css is located in the css
directory. It contains an unminified and minified version.
You can either cut and paste that css or link to it directly in your html.
Development
The source css files can be found in the src
directory.
Running $ npm start
will process the source css and place the built css in the css
directory.
The css
/* GRID Media Query Extensions: -ns = not-small -m = medium -l = large *//* GAP Base g = gap Modifiers a = all c = column r = row 0 = none 1 = 1st step in spacing scale 2 = 2nd step in spacing scale 3 = 3rd step in spacing scale 4 = 4th step in spacing scale 5 = 5th step in spacing scale 6 = 6th step in spacing scale 7 = 7th step in spacing scale Media Query Extensions: -ns = not-small -m = medium -l = large *//* GRID COLUMNS Base g = gap Modifiers 1 = 1 column c = column r = row 0 = none 1 = 1st step in spacing scale 2 = 2nd step in spacing scale 3 = 3rd step in spacing scale 4 = 4th step in spacing scale 5 = 5th step in spacing scale 6 = 6th step in spacing scale 7 = 7th step in spacing scale Media Query Extensions: -ns = not-small -m = medium -l = large */ 1 = 1/* GRID COLUMNS Base g = gap Modifiers COLUMN START c = column r = row 0 = none 1 = 1st step in spacing scale 2 = 2nd step in spacing scale 3 = 3rd step in spacing scale 4 = 4th step in spacing scale 5 = 5th step in spacing scale 6 = 6th step in spacing scale 7 = 7th step in spacing scale 7 = 7th line Media Query Extensions: -ns = not-small -m = medium -l = large */ 7 = 7/* GRID COLUMNS Base: grid-columns = grid-template-columns Modifiers COLUMN START 2 = 2 columns 3 = 3 columns 4 = 4 columns.column-end-7 { grid-column-end: 7; } 5 = 5 columns 6 = 6 columns ROW START Media Query Extensions: -ns = not-small -m = medium -l = large 7 = 7th line*/ 7 = 7/* GRID COLUMNS Base: grid-rows = grid-template-rows.column-start-7 { grid-column-start: 7; } Modifiers COLUMN END 2 = 2 rows 3 = 3 rows 4 = 4 rows ROW END 6 = 6 rows Media Query Extensions: -ns = not-small -m = medium -l = large 7 = 7th line*/ 7 = 7/* COLUMN START Base: column-start = grid-column-start.column-end-7 { grid-column-end: 7; } Modifiers ROW START 2 = 2nd line 3 = 3rd line 4 = 4th line 5 = 5th line .ga0-ns { gap: 0; } .ga1-ns { gap: .25rem; } .ga2-ns { gap: .5rem; } .ga3-ns { gap: 1rem; } .ga4-ns { gap: 2rem; } .ga5-ns { gap: 4rem; } .ga6-ns { gap: 8rem; } .gc0-ns { -webkit-column-gap: 0; column-gap: 0; } .gc1-ns { -webkit-column-gap: .25rem; column-gap: .25rem; } .gc2-ns { -webkit-column-gap: .5rem; column-gap: .5rem; } .gc3-ns { -webkit-column-gap: 1rem; column-gap: 1rem; } .gc4-ns { -webkit-column-gap: 2rem; column-gap: 2rem; } .gc5-ns { -webkit-column-gap: 4rem; column-gap: 4rem; } .gc6-ns { -webkit-column-gap: 8rem; column-gap: 8rem; } .gr0-ns { row-gap: 0; } .gr1-ns { row-gap: .25rem; } .gr2-ns { row-gap: .5rem; } .gr3-ns { row-gap: 1rem; } .gr4-ns { row-gap: 2rem; } .gr5-ns { row-gap: 4rem; } .gr6-ns { row-gap: 8rem; } 6 = 6th line 7 = 7th line Media Query Extensions: -ns = not-small -m = medium -l = large 7 = 7th line *//* .column-start-7-ns { grid-column-start: 7; } COLUMN END Base: column-end = grid-column-end ROW END .column-end-7-ns { grid-column-end: 7; } Modifiers 1 = 1st line 2 = 2nd line 3 = 3rd line 4 = 4th line 5 = 5th line 6 = 6th line 7 = 7th line Media Query Extensions: -ns = not-small 7 = 7th line -m = medium -l = large .ga0-m { gap: 0; } .ga1-m { gap: .25rem; } .ga2-m { gap: .5rem; } .ga3-m { gap: 1rem; } .ga4-m { gap: 2rem; } .ga5-m { gap: 4rem; } .ga6-m { gap: 8rem; } .gc0-m { -webkit-column-gap: 0; column-gap: 0; } .gc1-m { -webkit-column-gap: .25rem; column-gap: .25rem; } .gc2-m { -webkit-column-gap: .5rem; column-gap: .5rem; } .gc3-m { -webkit-column-gap: 1rem; column-gap: 1rem; } .gc4-m { -webkit-column-gap: 2rem; column-gap: 2rem; } .gc5-m { -webkit-column-gap: 4rem; column-gap: 4rem; } .gc6-m { -webkit-column-gap: 8rem; column-gap: 8rem; } .gr0-m { row-gap: 0; } .gr1-m { row-gap: .25rem; } .gr2-m { row-gap: .5rem; } .gr3-m { row-gap: 1rem; } .gr4-m { row-gap: 2rem; } .gr5-m { row-gap: 4rem; } .gr6-m { row-gap: 8rem; }*//* ROW START Base: row-start = grid-row-start .ga0-ns { gap: 0; } .ga1-ns { gap: .25rem; } .ga2-ns { gap: .5rem; } .ga3-ns { gap: 1rem; } .ga4-ns { gap: 2rem; } .ga5-ns { gap: 4rem; } .ga6-ns { gap: 8rem; } .gc0-ns { -webkit-column-gap: 0; column-gap: 0; } .gc1-ns { -webkit-column-gap: .25rem; column-gap: .25rem; } .column-end-7-m { grid-column-end: 7; } .gc2-ns { -webkit-column-gap: .5rem; column-gap: .5rem; } .gc3-ns { -webkit-column-gap: 1rem; column-gap: 1rem; } .gc4-ns { -webkit-column-gap: 2rem; column-gap: 2rem; } .gc5-ns { -webkit-column-gap: 4rem; column-gap: 4rem; } .gc6-ns { -webkit-column-gap: 8rem; column-gap: 8rem; } .gr0-ns { row-gap: 0; } .gr1-ns { row-gap: .25rem; } .gr2-ns { row-gap: .5rem; } .gr3-ns { row-gap: 1rem; } .gr4-ns { row-gap: 2rem; } .gr5-ns { row-gap: 4rem; } .gr6-ns { row-gap: 8rem; } Modifiers 1 = 1st line 2 = 2nd line .ga0-l { gap: 0; } .ga1-l { gap: .25rem; } .ga2-l { gap: .5rem; } .ga3-l { gap: 1rem; } .ga4-l { gap: 2rem; } .ga5-l { gap: 4rem; } .ga6-l { gap: 8rem; } .gc0-l { -webkit-column-gap: 0; column-gap: 0; } .gc1-l { -webkit-column-gap: .25rem; column-gap: .25rem; } .gc2-l { -webkit-column-gap: .5rem; column-gap: .5rem; } .gc3-l { -webkit-column-gap: 1rem; column-gap: 1rem; } .gc4-l { -webkit-column-gap: 2rem; column-gap: 2rem; } .gc5-l { -webkit-column-gap: 4rem; column-gap: 4rem; } .gc6-l { -webkit-column-gap: 8rem; column-gap: 8rem; } .gr0-l { row-gap: 0; } .gr1-l { row-gap: .25rem; } .gr2-l { row-gap: .5rem; } .gr3-l { row-gap: 1rem; } .gr4-l { row-gap: 2rem; } .gr5-l { row-gap: 4rem; } .gr6-l { row-gap: 8rem; } 3 = 3rd line 4 = 4th line 5 = 5th line 6 = 6th line 7 = 7th line Media Query Extensions: -ns = not-small -m = medium -l = large *//* ROW END .column-end-7-ns { grid-column-end: 7; } .column-end-7-l { grid-column-end: 7; } Base: row-end = grid-row-end Modifiers 1 = 1st line 2 = 2nd line 3 = 3rd line 4 = 4th line 5 = 5th line 6 = 6th line 7 = 7th line Media Query Extensions: -ns = not-small .ga0-m { gap: 0; } .ga1-m { gap: .25rem; } .ga2-m { gap: .5rem; } .ga3-m { gap: 1rem; } .ga4-m { gap: 2rem; } .ga5-m { gap: 4rem; } .ga6-m { gap: 8rem; } .gc0-m { -webkit-column-gap: 0; column-gap: 0; } .gc1-m { -webkit-column-gap: .25rem; column-gap: .25rem; } .gc2-m { -webkit-column-gap: .5rem; column-gap: .5rem; } .gc3-m { -webkit-column-gap: 1rem; column-gap: 1rem; } .gc4-m { -webkit-column-gap: 2rem; column-gap: 2rem; } .gc5-m { -webkit-column-gap: 4rem; column-gap: 4rem; } .gc6-m { -webkit-column-gap: 8rem; column-gap: 8rem; } .gr0-m { row-gap: 0; } .gr1-m { row-gap: .25rem; } .gr2-m { row-gap: .5rem; } .gr3-m { row-gap: 1rem; } .gr4-m { row-gap: 2rem; } .gr5-m { row-gap: 4rem; } .gr6-m { row-gap: 8rem; } -m = medium -l = large *//* VARIABLES*/{}{}{}
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Authors
License
ISC