Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
add new utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jfet97 committed Jun 14, 2018
1 parent c97a980 commit 8b20796
Show file tree
Hide file tree
Showing 10 changed files with 1,875 additions and 132 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,3 +1,3 @@
sass/strawberry.css.map
sass/strawberry.min.css.map
dist/strawberry.min.css.map
src/strawberry.css.map
sass/.sass-cache
4 changes: 2 additions & 2 deletions .npmignore
@@ -1,6 +1,6 @@
src/strawberry.css
img/*
docs/*
sass/strawberry.css.map
sass/strawberry.min.css.map
dist/strawberry.min.css.map
src/strawberry.css.map
sass/.sass-cache
2 changes: 1 addition & 1 deletion dist/strawberry.min.css

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions dist/strawberry.min.css.map

This file was deleted.

Binary file removed docs/examples/slider/pic.png
Binary file not shown.
97 changes: 91 additions & 6 deletions sass/partials/container/_container-flex.sass
@@ -1,4 +1,4 @@
@import ../../data/fractions
@import ../../data/fractions
@import ../../mixins/flex-mixin


Expand All @@ -20,7 +20,9 @@
.sb-items-#{$name} > *
+flex(1, 1, #{$value * 1%})

.sb-items-1-1-auto
.sb-items-1-1-0 > *
+flex(1, 1, 0)
.sb-items-1-1-auto > *
+flex(1, 1, auto)

/*
Expand All @@ -35,8 +37,10 @@
.sb-items-#{$name}-nog > *
+flex(0, 1, #{$value * 1%})

.sb-items-0-1-auto-nog
+flex(0, 1, auto)
.sb-items-0-1-0-nog > *
+flex(0, 1, 0)
.sb-items-0-1-auto-nog > *
+flex(0, 1, auto)

/*
*
Expand All @@ -50,7 +54,9 @@
.sb-items-#{$name}-nos > *
+flex(1, 0, #{$value * 1%})

.sb-items-1-0-auto-nos
.sb-items-1-0-0-nos > *
+flex(1, 0, 0)
.sb-items-1-0-auto-nos > *
+flex(1, 0, auto)

/*
Expand All @@ -66,5 +72,84 @@
+flex(0, 0, #{$value * 1%})


.sb-items-0-0-auto-nogs
.sb-items-0-0-0-nogs > *
+flex(0, 0, 0)
.sb-items-0-0-auto-nogs > *
+flex(0, 0, auto)



/*
*
* Responsive is the way */
@each $media, $query in (l: "only screen and (min-width:992px)", m: "only screen and (min-width:600px) and (max-width:992px)", s: "only screen and (max-width:600px)")
@media #{$query}

/*
*
*
* Flex Grow 1 Flex Shrink 1 */
@for $i from 10 through 1
.sb-items-#{$i * 10}-#{$media} > *
+flex(1, 1, #{$i * 10%})

@each $name, $value in $fractions-map
.sb-items-#{$name}-#{$media} > *
+flex(1, 1, #{$value * 1%})

.sb-items-1-1-0-#{$media} > *
+flex(1, 1, 0)
.sb-items-1-1-auto-#{$media} > *
+flex(1, 1, auto)

/*
*
*
* Flex Grow 0 Flex Shrink 1 */
@for $i from 10 through 1
.sb-items-#{$i * 10}-nog-#{$media} > *
+flex(0, 1, #{$i * 10%})

@each $name, $value in $fractions-map
.sb-items-#{$name}-nog-#{$media} > *
+flex(0, 1, #{$value * 1%})

.sb-items-0-1-0-nog-#{$media} > *
+flex(0, 1, 0)
.sb-items-0-1-auto-nog-#{$media} > *
+flex(0, 1, auto)

/*
*
*
* Flex Grow 1 Flex Shrink 0 */
@for $i from 10 through 1
.sb-items-#{$i * 10}-nos-#{$media} > *
+flex(1, 0, #{$i * 10%})

@each $name, $value in $fractions-map
.sb-items-#{$name}-nos-#{$media} > *
+flex(1, 0, #{$value * 1%})

.sb-items-1-0-0-nos-#{$media} > *
+flex(1, 0, 0)
.sb-items-1-0-auto-nos-#{$media} > *
+flex(1, 0, auto)

/*
*
*
* Flex Grow 0 Flex Shrink 0 */
@for $i from 10 through 1
.sb-items-#{$i * 10}-nogs-#{$media} > *
+flex(0, 0, #{$i * 10%})

@each $name, $value in $fractions-map
.sb-items-#{$name}-nogs-#{$media} > *
+flex(0, 0, #{$value * 1%})


.sb-items-0-0-0-nogs-#{$media} > *
+flex(0, 0, 0)
.sb-items-0-0-auto-nogs-#{$media} > *
+flex(0, 0, auto)

0 comments on commit 8b20796

Please sign in to comment.