Skip to content

Commit 1ac7a6f

Browse files
committed
2.0.12 - add breakpoints for wrap
1 parent bbdacbb commit 1ac7a6f

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

flex-attributes.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flex-attributes",
3-
"version": "2.0.9",
3+
"version": "2.0.12",
44
"description": "A css library that allows you to compose mobile first, adaptive flexbox layouts and grids with attributes.",
55
"main": "flex-attributes.css",
66
"keywords": [

src/grid.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ $rows = range($min-rows, $max-rows)
2020
[grid-{$size}-{$num}], [data-grid-{$size}-{$num}]
2121
flex-grow 1
2222
box-sizing border-box
23-
@media screen and (max-width: $breakpoint)
23+
@media screen and (min-width: $breakpoint)
2424
flex-basis floor(percentage($num/$max-rows))

src/layout.styl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,32 @@ $secondary-axis = center start end stretch baseline
2525
for $size, $breakpoint in $sizes
2626
&[{$direction}-{$size}],
2727
&[data-{$direction}-{$size}]
28-
@media screen and (max-width: $breakpoint)
28+
@media screen and (min-width: $breakpoint)
2929
display flex
3030
flex-direction $direction
3131

3232
&[wrap],
3333
&[data-wrap]
3434
flex-wrap wrap
3535

36+
for $size, $breakpoint in $sizes
37+
@media screen and (min-width: $breakpoint)
38+
&[wrap-{$size}],
39+
&[data-wrap-{$size}]
40+
@media screen and (min-width: $breakpoint)
41+
flex-wrap wrap
42+
3643
&[wrap='reverse'],
3744
&[data-wrap='reverse']
3845
flex-wrap wrap-reverse
3946

47+
for $size, $breakpoint in $sizes
48+
@media screen and (min-width: $breakpoint)
49+
&[wrap-{$size}='reverse'],
50+
&[data-wrap-{$size}='reverse']
51+
@media screen and (min-width: $breakpoint)
52+
flex-wrap wrap-reverse
53+
4054
for $alignment in $primary-axis
4155
&[data-layout=\'{$alignment}\'],
4256
&[layout=\'{$alignment}\']

0 commit comments

Comments
 (0)