Created
February 27, 2014 22:23
-
-
Save jensgro/9260939 to your computer and use it in GitHub Desktop.
Testing Singularity, as seen on SassBites.
This file contains hidden or 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
<div class="container"> | |
<section class="contact"></section> | |
<div class="follow-flow"> | |
<section class="follow"></section> | |
<section class="newsletter"></section> | |
</div> | |
<section class="thanks"></section> | |
<section class="liner"></section> | |
</div> |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// Breakpoint (v2.4.1) | |
// Singularity.gs (v1.2.0.rc.6) | |
// Toolkit (v2.0.0.alpha.10) | |
// ---- | |
@import 'compass'; | |
@import 'toolkit/kickstart'; | |
@import 'breakpoint'; | |
@import 'singularitygs'; | |
@include add-grid(6); | |
@include add-grid(9 at 675px); | |
@include add-grid(12 at 850px); | |
@include add-grid(15 at 1075px); | |
@include add-grid(18 at 1200px); | |
@include add-gutter(1/3); | |
@include sgs-change('output', 'isolation'); | |
body, | |
html { | |
height:100%; | |
padding:0; | |
margin:0; | |
@include background-grid; | |
} | |
.container { | |
max-width:750px; | |
margin: 0 auto; | |
} | |
.contact { | |
background-color:#654321; | |
height:10em; | |
@include breakpoint(675px 849px) { | |
@include isolation-span(5,1,'left'); | |
} | |
@include breakpoint(850px 1074px) { | |
@include isolation-span(6,1,'left'); | |
} | |
@include breakpoint(1075px 1199px) { | |
@include isolation-span(5,1); | |
} | |
@include breakpoint(1200px) { | |
@include isolation-span(6,1); | |
} | |
} | |
.follow { | |
background-color:#123456; | |
height:5em; | |
@include breakpoint(675px 849px) { | |
@include isolation-span(4,6,'right'); | |
} | |
@include breakpoint(850px 1074px) { | |
@include isolation-span(6,7,'right'); | |
} | |
@include breakpoint(1075px 1199px) { | |
@include isolation-span(5,6,'none'); | |
} | |
@include breakpoint(1200px) { | |
width: 100%; | |
margin: 0; | |
clear: none; | |
float: right; | |
} | |
} | |
.newsletter { | |
background-color:#3f3f3f; | |
height:5em; | |
@include breakpoint(675px 849px) { | |
@include isolation-span(4,6,'right'); | |
} | |
@include breakpoint(850px 1074px) { | |
@include isolation-span(6,7,'right'); | |
} | |
@include breakpoint(1075px 1199px) { | |
@include isolation-span(5,6,'none'); | |
} | |
@include breakpoint(1200px) { | |
width: 100%; | |
margin: 0; | |
clear: right; | |
float: left; | |
} | |
} | |
.thanks { | |
background-color:#cecece; | |
height:10em; | |
@include breakpoint(675px 849px) { | |
@include isolation-span(9,1,'both'); | |
} | |
@include breakpoint(850px 1074px) { | |
@include isolation-span(12,1,'both'); | |
} | |
@include breakpoint(1075px 1199px) { | |
@include isolation-span(5,11, 'none'); | |
} | |
@include breakpoint(1200px) { | |
@include isolation-span(6,13,'none'); | |
} | |
} | |
.liner { | |
background-color:brown; | |
height:10em; | |
@include breakpoint(675px 849px) { | |
@include isolation-span(9, 1, 'both'); | |
} | |
@include breakpoint(850px 1074px) { | |
@include isolation-span(12, 1, 'both'); | |
} | |
@include breakpoint(1075px 1199px) { | |
@include isolation-span(15, 1, 'both'); | |
} | |
@include breakpoint(1200px) { | |
@include isolation-span(18, 1, 'both'); | |
} | |
} | |
.follow-flow { | |
@include breakpoint(1200px) { | |
@include isolation-span(6,7, 'none'); | |
} | |
} |
This file contains hidden or 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
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
img, video { | |
max-width: 100%; | |
height: auto; | |
} | |
body, | |
html { | |
height: 100%; | |
padding: 0; | |
margin: 0; | |
} | |
.container { | |
max-width: 750px; | |
margin: 0 auto; | |
} | |
.contact { | |
background-color: #654321; | |
height: 10em; | |
} | |
@media (min-width: 675px) and (max-width: 849px) { | |
.contact { | |
width: 54.2857142857%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: "left"; | |
} | |
} | |
@media (min-width: 850px) and (max-width: 1074px) { | |
.contact { | |
width: 48.9361702128%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: "left"; | |
} | |
} | |
@media (min-width: 1075px) and (max-width: 1199px) { | |
.contact { | |
width: 32.2033898305%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: none; | |
} | |
} | |
@media (min-width: 1200px) { | |
.contact { | |
width: 32.3943661972%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: none; | |
} | |
} | |
.follow { | |
background-color: #123456; | |
height: 5em; | |
} | |
@media (min-width: 675px) and (max-width: 849px) { | |
.follow { | |
width: 42.8571428571%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "right"; | |
} | |
} | |
@media (min-width: 850px) and (max-width: 1074px) { | |
.follow { | |
width: 48.9361702128%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "right"; | |
} | |
} | |
@media (min-width: 1075px) and (max-width: 1199px) { | |
.follow { | |
width: 32.2033898305%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 33.8983050847%; | |
clear: "none"; | |
} | |
} | |
@media (min-width: 1200px) { | |
.follow { | |
width: 100%; | |
margin: 0; | |
clear: none; | |
float: right; | |
} | |
} | |
.newsletter { | |
background-color: #3f3f3f; | |
height: 5em; | |
} | |
@media (min-width: 675px) and (max-width: 849px) { | |
.newsletter { | |
width: 42.8571428571%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "right"; | |
} | |
} | |
@media (min-width: 850px) and (max-width: 1074px) { | |
.newsletter { | |
width: 48.9361702128%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "right"; | |
} | |
} | |
@media (min-width: 1075px) and (max-width: 1199px) { | |
.newsletter { | |
width: 32.2033898305%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 33.8983050847%; | |
clear: "none"; | |
} | |
} | |
@media (min-width: 1200px) { | |
.newsletter { | |
width: 100%; | |
margin: 0; | |
clear: right; | |
float: left; | |
} | |
} | |
.thanks { | |
background-color: #cecece; | |
height: 10em; | |
} | |
@media (min-width: 675px) and (max-width: 849px) { | |
.thanks { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 850px) and (max-width: 1074px) { | |
.thanks { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 1075px) and (max-width: 1199px) { | |
.thanks { | |
width: 32.2033898305%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "none"; | |
} | |
} | |
@media (min-width: 1200px) { | |
.thanks { | |
width: 32.3943661972%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "none"; | |
} | |
} | |
.liner { | |
background-color: brown; | |
height: 10em; | |
} | |
@media (min-width: 675px) and (max-width: 849px) { | |
.liner { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 850px) and (max-width: 1074px) { | |
.liner { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 1075px) and (max-width: 1199px) { | |
.liner { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 1200px) { | |
.liner { | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: "both"; | |
} | |
} | |
@media (min-width: 1200px) { | |
.follow-flow { | |
width: 32.3943661972%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 33.8028169014%; | |
clear: "none"; | |
} | |
} |
This file contains hidden or 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
<div class="container"> | |
<section class="contact"></section> | |
<div class="follow-flow"> | |
<section class="follow"></section> | |
<section class="newsletter"></section> | |
</div> | |
<section class="thanks"></section> | |
<section class="liner"></section> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment