-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fluid centered container. * Changed modular spacing to new values and applied to centered-column mixin. * Fix grid example background striping. * Revised margin variables.
- Loading branch information
Showing
9 changed files
with
520 additions
and
296 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,26 @@ | ||
@charset "UTF-8"; | ||
|
||
// | ||
// @centered-column($grid: $grid-media, $screens: $grid-screens) | ||
// @centered-column($grid: $grid-media, $margin: $screen-margins) | ||
// | ||
// Centers a single cellin a container based on max width in breakpoints. | ||
// | ||
// Style guide: Mixins.Grid.centered-column | ||
// | ||
@mixin centered-column($grid: $grid-media, $screens: $grid-screens, $gutters: $grid-gutters) { | ||
@mixin centered-column($grid: $grid-media, $screens: $grid-screens, $margin: $screen-margins) { | ||
@include margin(0 auto); | ||
@each $code, $breakpoint in $grid { | ||
$max-width: map-get($screens, $code); | ||
$gutter: map-get($gutters, $code); | ||
$spacing: map-get($margin, $code); | ||
|
||
@media #{$breakpoint} { | ||
max-width: $max-width - $gutter; | ||
@if breakpoint-max($code, $grid) == null { | ||
$max-width: map-get($screens, $code); | ||
max-width: $max-width; | ||
width: calc(100% - #{$spacing * 2}); | ||
} @else { | ||
max-width: calc(100% - #{$spacing * 2}); | ||
width: calc(100% - #{$spacing * 2}); | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@charset "UTF-8"; | ||
|
||
// $screen-margins | ||
// | ||
// A sass map of screen margins for edge containment | ||
// | ||
//``` | ||
// $screen-margins: ( | ||
// 'xs': 20px, | ||
// 'sm': 30px, | ||
// 'md': 50px, | ||
// 'lg': 80px, | ||
// 'xl': 100px, | ||
// '2xl': 100px | ||
// ) !default; | ||
// ``` | ||
// | ||
// Style guide: Variables.Core.screen-margins | ||
// | ||
$screen-margins: ( | ||
'xs': 20px, | ||
'sm': 30px, | ||
'md': 50px, | ||
'lg': 80px, | ||
'xl': 100px, | ||
'2xl': 100px | ||
) !default; |
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
Oops, something went wrong.