Skip to content

Instantly share code, notes, and snippets.

@startinggravity
Created July 30, 2014 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save startinggravity/cd26d6de7d8779f2b4f4 to your computer and use it in GitHub Desktop.
Save startinggravity/cd26d6de7d8779f2b4f4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="foo">
Barley sour/acidic noble hops additive? Hop back keg degrees plato pitch crystal malt, barley. Crystal malt, mead, dry hopping, additive autolysis bung. Top-fermenting yeast scotch ale length fermentation krug crystal malt dry hopping! "Brewhouse craft centennial maris otter."
</div>
// ----
// Sass (v3.3.12)
// Compass (v1.0.0.alpha.21)
// Breakpoint (v2.4.6)
// Singularity.gs (v1.2.0.rc.6)
// ----
@import "breakpoint";
@import "compass";
@import "singularitygs";
/*** Breakpoints *** */
$breakpoint-hamburger: 20em;
$breakpoint-tabs: 36.25em;
$breakpoint-twocolumn: 56.25em;
$breakpoint-fullfeatures: 68.75em;
//** Example ***
.foo {
padding: 10px;
color: white;
@include breakpoint($breakpoint-hamburger) {
background: green;
&:before {
color: yellow;
content: 'This is the hamburger breakpoint --';
}
}
@include breakpoint($breakpoint-tabs) {
background: purple;
&:before {
color: yellow;
content: 'This is the tabs breakpoint --';
}
}
@include breakpoint($breakpoint-twocolumn) {
background: blue;
&:before {
color: yellow;
content: 'This is the twocolumn breakpoint --';
}
}
@include breakpoint($breakpoint-fullfeatures) {
background: red;
&:before {
color: yellow;
content: 'This is the fullfeatures breakpoint --';
}
}
}
/*** Breakpoints *** */
.foo {
padding: 10px;
color: white;
}
@media (min-width: 20em) {
.foo {
background: green;
}
.foo:before {
color: yellow;
content: 'This is the hamburger breakpoint --';
}
}
@media (min-width: 36.25em) {
.foo {
background: purple;
}
.foo:before {
color: yellow;
content: 'This is the tabs breakpoint --';
}
}
@media (min-width: 56.25em) {
.foo {
background: blue;
}
.foo:before {
color: yellow;
content: 'This is the twocolumn breakpoint --';
}
}
@media (min-width: 68.75em) {
.foo {
background: red;
}
.foo:before {
color: yellow;
content: 'This is the fullfeatures breakpoint --';
}
}
<div class="foo">
Barley sour/acidic noble hops additive? Hop back keg degrees plato pitch crystal malt, barley. Crystal malt, mead, dry hopping, additive autolysis bung. Top-fermenting yeast scotch ale length fermentation krug crystal malt dry hopping! "Brewhouse craft centennial maris otter."
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment