-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a mixin that ties a breakpoint to certain grid settings for accur…
…ate span-column()s
- Loading branch information
1 parent
7d3c738
commit bdcf776
Showing
6 changed files
with
42 additions
and
25 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
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
Empty file.
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,19 @@ | ||
// If you want to use Susy's grid mixins (eg span-columns) at a breakpoint other than the | ||
// default mobile one, you'll need to use this mixin instead of at-breakpoint to ensure the | ||
// correct grid settings are used. | ||
=at-breakpoint-with-grid-settings( $bp ) | ||
@if $bp == "tablet" | ||
+at-breakpoint($bp-tablet) | ||
+with-grid-settings($tablet-total-columns, $tablet-column-width, $tablet-gutter-width, $tablet-grid-padding) | ||
@content | ||
|
||
@else if $bp == "tablet-only" | ||
+at-breakpoint($bp-tablet-only) | ||
+with-grid-settings($tablet-total-columns, $tablet-column-width, $tablet-gutter-width, $tablet-grid-padding) | ||
@content | ||
|
||
@else if $bp == "desktop" | ||
+at-breakpoint( $bp-desktop ) | ||
+with-grid-settings($desktop-total-columns, $desktop-column-width, $desktop-gutter-width, $desktop-grid-padding) | ||
@content |
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