Last active
August 29, 2015 14:10
-
-
Save Undistraction/4707e5977a52506bd70c to your computer and use it in GitHub Desktop.
Basic susy layout
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="Page"> | |
<section class="first"></section> | |
<section class="second"></section> | |
<section class="third"></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.4.7) | |
// Compass (v1.0.1) | |
// Susy (v2.1.3) | |
// ---- | |
@import "susy"; | |
@include border-box-sizing; | |
$susy: ( | |
columns: 12, | |
global-box-sizing: border-box, | |
debug: (image: show) | |
); | |
html, | |
body{ | |
width: 100%; | |
height: 100%; | |
} | |
.Page { | |
height: 100%; | |
@include container(1110px); | |
} | |
section { | |
@include span(4); | |
min-height: 100px; | |
background: rgba(red, 0.1); | |
&:last-child { | |
@include last; | |
} | |
} | |
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; | |
} | |
html, | |
body { | |
width: 100%; | |
height: 100%; | |
} | |
.Page { | |
height: 100%; | |
max-width: 1110px; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 80%, transparent 80%); | |
background-size: 8.4745762712%; | |
background-origin: content-box; | |
background-clip: content-box; | |
background-position: left top; | |
} | |
.Page:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
section { | |
width: 32.2033898305%; | |
float: left; | |
margin-right: 1.6949152542%; | |
min-height: 100px; | |
background: rgba(255, 0, 0, 0.1); | |
} | |
section:last-child { | |
float: right; | |
margin-right: 0; | |
} |
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="Page"> | |
<section class="first"></section> | |
<section class="second"></section> | |
<section class="third"></section> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment