Skip to content

Commit dfd3fd1

Browse files
committed
Fixed issue #21
Added helper prefixes, now v1.3.6. Also added sponsor button on repo, linking to paypal.me.
1 parent ece4165 commit dfd3fd1

File tree

8 files changed

+35
-24
lines changed

8 files changed

+35
-24
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://paypal.me/lucasgruwez

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ typings/
7171

7272
# custom gitignored folders
7373

74-
docs/_jade
74+
package-lock.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ npm install waffle-grid
4242
# or
4343
$ bower install waffle-grid
4444
```
45-
If you want you can still download the waffle grid [here](https://github.com/lucasgruwez/waffle-grid/releases/download/v1.3.1/waffle-grid.min.css).
45+
If you want you can still download the waffle grid [here](https://github.com/lucasgruwez/waffle-grid/releases).
4646

4747
## Docs
4848

dist/waffle-grid.css

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* waffle-grid - v1.3.5 - (https://lucasgruwez.github.io/waffle-grid)
2+
* waffle-grid - v1.3.6 - (https://lucasgruwez.github.io/waffle-grid)
33
* Copyright 2017 Lucas Gruwez.
44
* Licensed under MIT
55
* https://lucasgruwez.github.io/waffle-grid
@@ -10,13 +10,16 @@
1010
}
1111

1212
.grid,.row {
13+
display: -webkit-box;
1314
display: -ms-flexbox;
1415
display: flex;
1516
}
1617

1718
.grid {
18-
-ms-flex-direction: column;
19-
flex-direction: column;
19+
-webkit-box-orient: vertical;
20+
-webkit-box-direction: normal;
21+
-ms-flex-direction: column;
22+
flex-direction: column;
2023
}
2124

2225
.grid.full-width {
@@ -25,15 +28,18 @@
2528
}
2629

2730
.row {
28-
-ms-flex-direction: row;
29-
flex-direction: row;
31+
-webkit-box-orient: horizontal;
32+
-webkit-box-direction: normal;
33+
-ms-flex-direction: row;
34+
flex-direction: row;
3035
width: 100%;
3136
-ms-flex-wrap: wrap;
3237
flex-wrap: wrap;
3338
}
3439

3540
.col {
36-
box-sizing: border-box;
41+
-webkit-box-sizing: border-box;
42+
box-sizing: border-box;
3743
margin: 10px;
3844
vertical-align: top;
3945
}
@@ -47,8 +53,9 @@
4753
}
4854

4955
.w-auto {
50-
-ms-flex: 1;
51-
flex: 1;
56+
-webkit-box-flex: 1;
57+
-ms-flex: 1;
58+
flex: 1;
5259
}
5360

5461
.col-1-of-4,.col-2-of-8,.col-3-of-12 {
@@ -249,8 +256,9 @@
249256
}
250257

251258
.w-m-auto {
252-
-ms-flex: 1;
253-
flex: 1;
259+
-webkit-box-flex: 1;
260+
-ms-flex: 1;
261+
flex: 1;
254262
}
255263

256264
.m-un-push {
@@ -412,8 +420,9 @@
412420
}
413421

414422
.w-s-auto {
415-
-ms-flex: 1;
416-
flex: 1;
423+
-webkit-box-flex: 1;
424+
-ms-flex: 1;
425+
flex: 1;
417426
}
418427

419428
.s-un-push {

dist/waffle-grid.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ url: lucasgruwez.github.io
1010
baseurl: /waffle-grid
1111

1212
# Custom variables
13-
version: v1.3.5
13+
version: v1.3.6
1414
cdn: https://unpkg.com/waffle-grid
1515
repo: https://github.com/lucasgruwez/waffle-grid
16-
download: https://github.com/lucasgruwez/waffle-grid/releases/download/v1.3.5/waffle-grid.min.css
16+
download: https://github.com/lucasgruwez/waffle-grid/releases/download/v1.3.6/waffle-grid.min.css
1717
docs: https://github.com/lucasgruwez/waffle-grid/wiki
1818
stargazers: https://github.com/lucasgruwez/waffle-grid/stargazers
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "waffle-grid",
3-
"version": "1.3.5",
3+
"version": "1.3.6",
44
"description": "An easy to use flexbox grid system",
55
"main": "dist/waffle-grid.min.css",
66
"repository": {

src/waffle-grid.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* waffle-grid - v1.3.5 - (https://lucasgruwez.github.io/waffle-grid)
2+
* waffle-grid - v1.3.6 - (https://lucasgruwez.github.io/waffle-grid)
33
* Copyright 2017 Lucas Gruwez.
44
* Licensed under MIT
55
* https://lucasgruwez.github.io/waffle-grid
@@ -11,6 +11,7 @@ $grid-classname: "grid" !default;
1111
$row-classname: "row" !default;
1212
$column-classname: "col" !default;
1313
$container-classname: "container" !default;
14+
$helper-prefix: "" !default;
1415

1516
// Column amounts, results in:
1617
// .col-n-of-4, or .col-n-of-8
@@ -68,10 +69,10 @@ $breakpoints: (
6869
vertical-align: top;
6970
}
7071

71-
.center {margin-left: auto; margin-right: auto;}
72-
.left {margin-right: auto;}
73-
.right {margin-left: auto;}
74-
.w-auto {flex: 1}
72+
.#{$helper-prefix}center {margin-left: auto; margin-right: auto;}
73+
.#{$helper-prefix}left {margin-right: auto;}
74+
.#{$helper-prefix}right {margin-left: auto;}
75+
.#{$helper-prefix}w-auto {flex: 1}
7576

7677
@each $col-am in $grid-columns {
7778
@for $i from 1 through $col-am {

0 commit comments

Comments
 (0)