-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation and bump version
- Loading branch information
1 parent
7a6ec8b
commit b2e914f
Showing
13 changed files
with
101 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
|
||
### @mixin collapse | ||
|
||
Use as direct child of `@include span` element. Make sure there's no padding on the parent element | ||
|
||
#### Arguments | ||
|
||
| Name | Type | Default | Description | | ||
| ---- | ---- | ------- | ----------- | | ||
| `sides` | `string` | `both` | Choose which side(s) to collapse gutter. Defaults to 'both' | | ||
| `multiplier` | `number` | `1` | Defaults to `1` and can be set to any number dividable by `0.5` | | ||
| `fromto` | `list` | `false to false` | Set starting and stopping breakpoints. Accepts single value: `@include collapse(both, 1, $beta)` or list: `@include collapse(both, 1, $beta to $charlie)`. The second (to) value only means that Illusion is not adding more media queries. The styling is not being reset on this 'to' breakpoint | | ||
| `gutter` | `string` | `false` | Custom gutter value for Illusion to calculate (`calc()`) with. | | ||
|
||
#### SCSS | ||
|
||
{% highlight css %} | ||
.foo { | ||
@include collapse(); | ||
} | ||
{% endhighlight %} | ||
|
||
#### CSS | ||
|
||
{% highlight css %} | ||
.foo { | ||
margin-right: calc((-1 * 1) * 16px); | ||
margin-left: calc((-1 * 1) * 16px); | ||
} | ||
|
||
@media screen and (min-width: 560px) { | ||
.foo { | ||
margin-right: calc((-1 * 1) * 24px); | ||
margin-left: calc((-1 * 1) * 24px); | ||
} | ||
} | ||
|
||
@media screen and (min-width: 1024px) { | ||
.foo { | ||
margin-right: calc((-1 * 1) * 32px); | ||
margin-left: calc((-1 * 1) * 32px); | ||
} | ||
} | ||
{% endhighlight %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
### @mixin row | ||
|
||
#### Arguments | ||
|
||
| Name | Type | Default | Description | | ||
| ---- | ---- | ------- | ----------- | | ||
| `type` | `string` | `$illusion-grid-container-type` | Choose between clearfix (for floats) or flexbox container. Defaults to clearfix container. | | ||
|
||
#### SCSS | ||
|
||
{% highlight css %} | ||
.foo { | ||
@include row(); | ||
} | ||
{% endhighlight %} | ||
|
||
#### CSS | ||
|
||
{% highlight css %} | ||
.foo:before, .foo:after { | ||
display: table; | ||
content: " "; | ||
} | ||
|
||
.foo:after { | ||
clear: both; | ||
} | ||
{% endhighlight %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters