Skip to content

Commit e530c19

Browse files
authored
Merge pull request #15 from marksreeves/readme
Add to readme.
2 parents 9c01458 + ac72001 commit e530c19

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# cssgrid
2-
Responsive CSS helper classes based on CSS Grid Layout.
2+
3+
Responsive CSS helper classes based on [CSS3 Grid Layout module](https://www.w3.org/TR/css-grid-1/).
34

45
View [demo](https://bordertech.github.io/cssgrid/demo).
6+
7+
## Building
8+
9+
Use [yarn](https://yarnpkg.com/) to build.
10+
11+
1. `yarn install` (first time only)
12+
2. `yarn build`
13+
14+
## IE support
15+
16+
IE is kinda broke. We have some beginnings of support but it does not yet include any attempt to set the `-ms-grid-column` offsets or use margins instead of `grid-space`. The file `ie.scss` will be built as a separate file. There is a var which allows this same IE specific CSS to be built into the main CSS file if required.
17+
18+
## Tests
19+
20+
The tests are not really set up yet. The `/test/` directory contains a couple of primitive HTML pages which depend on the built CSS. This is still very much a work in progress.
21+
22+
## Configuration
23+
24+
Configuration is done through Sass variables. More info later!

sass/vars/_main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ $cg-gap-sm-m: ($cg-gap-m / 2) !default;
2020
$cg-gap-sm-l: ($cg-gap-l / 2) !default;
2121

2222
// gaps on large viewports
23-
$cg-gap-sm-s: ($cg-gap-s * 2) !default;
24-
$cg-gap-sm-m: ($cg-gap-m * 2) !default;
25-
$cg-gap-sm-l: ($cg-gap-l * 2) !default;
23+
$cg-gap-lg-s: ($cg-gap-s * 2) !default;
24+
$cg-gap-lg-m: ($cg-gap-m * 2) !default;
25+
$cg-gap-lg-l: ($cg-gap-l * 2) !default;

0 commit comments

Comments
 (0)