Last active
January 25, 2016 16:14
-
-
Save peduarte/0dcb03ac7f99327d6336 to your computer and use it in GitHub Desktop.
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
/** | |
* | |
* Settings | |
* | |
**/ | |
// Defining breakpoints | |
$bp-small: 520px !default; | |
$bp-medium: 768px !default; | |
$bp-wide: 1024px !default; | |
$bp-huge: 1200px !default; | |
// Defining container widths | |
$container-small: 520px !default; | |
$container-medium: 860px !default; | |
$container-wide: 1024px !default; | |
$container-huge: 1180px !default; | |
// Defining grid columns | |
$g-small: 6 !default; | |
$g-wide: 12 !default; | |
// Defining spacing/gutter size | |
$spacing: 1rem !default; | |
// Susy settings | |
// http://susydocs.oddbird.net/en/latest/settings/ | |
$susy: ( | |
columns: 6, | |
gutter-position: inside, | |
gutters: 0, | |
global-box-sizing: border-box, | |
debug: ( | |
image: hide, | |
color: rgba(blue, 0.10) | |
), | |
use-custom: ( | |
box-sizing: false | |
) | |
); | |
$susy-small: $container-small $g-small (0) inside; | |
$susy-medium: $container-medium $g-wide (0) inside; | |
$susy-wide: $container-wide $g-wide (0) inside; | |
$susy-huge: $container-huge $g-wide (0) inside; | |
// Breakpoint-sass option | |
// https://github.com/at-import/breakpoint/wiki/Basic-Media-Queries#em-based-media-queries | |
@include breakpoint-set("to ems", false); | |
// flex html class | |
$has-flex: has-flex !default; | |
$no-flex: no-flex !default; | |
// Media query helpers | |
// Aliases for susy-breakpoint | |
// http://susydocs.oddbird.net/en/latest/toolkit/#breakpoint | |
@mixin small { | |
@include susy-breakpoint($bp-small, $susy-small) { @content }; | |
} | |
@mixin to-small { | |
@include susy-breakpoint(0 ($bp-medium - 1), $susy-small) { @content }; | |
} | |
@mixin small-only { | |
@include susy-breakpoint(0 ($bp-medium - 1), $susy-small) { @content }; | |
} | |
@mixin medium { | |
@include susy-breakpoint($bp-medium, $susy-medium) { @content }; | |
} | |
@mixin to-medium { | |
@include susy-breakpoint(0 ($bp-medium - 1), $susy-small) { @content }; | |
} | |
@mixin medium-only { | |
@include susy-breakpoint($bp-medium ($bp-wide - 1), $susy-medium) { @content }; | |
} | |
@mixin wide { | |
@include susy-breakpoint($bp-wide, $susy-wide) { @content }; | |
} | |
@mixin to-wide { | |
@include susy-breakpoint(0 ($bp-wide - 1), $susy-wide) { @content }; | |
} | |
@mixin wide-only { | |
@include susy-breakpoint($bp-wide ($bp-huge - 1), $susy-wide) { @content }; | |
} | |
@mixin huge { | |
@include susy-breakpoint($bp-huge, $susy-huge) { @content }; | |
} | |
@mixin to-huge { | |
@include susy-breakpoint(0 ($bp-huge - 1), $susy-huge) { @content }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment