Last active
August 29, 2015 14:09
-
-
Save fafaradesigns/380eef61e2bfdd6d31b0 to your computer and use it in GitHub Desktop.
susy-layouts - asymmetrical - longhand
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
<body> | |
<header>header</header> | |
<nav>navigation</nav> | |
<article>article</article> | |
<footer>footer</footer> | |
</body> |
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) | |
// Breakpoint (v2.5.0) | |
// Susy (v2.1.3) | |
// ---- | |
//visuals | |
//------------------- | |
$pink: rgb(255, 0, 128); | |
html { | |
background:white; | |
} | |
header, nav, article, footer { | |
padding-top: 1em; | |
padding-bottom: 1em; | |
font-family: monospace, serif; | |
background: | |
linear-gradient(rgba($pink, .125), rgba($pink, .125), rgba($pink, .25)); | |
background-clip: content-box, border-box; | |
box-shadow: 0 0 0 1px rgba($pink, .25) inset; | |
} | |
@import "compass"; | |
@import "breakpoint"; | |
@import "susy"; | |
@include border-box-sizing; | |
@include establish-baseline; | |
$susy: ( | |
columns: (1 2 3 4 3), | |
gutters: 1/4, | |
column-width: 4em, | |
gutter-position: split, | |
); | |
body { | |
@include container(show-columns); | |
// @include container(overlay); | |
} | |
header { | |
@include full; | |
} | |
nav { | |
@include span(first 3); | |
} | |
article { | |
@include span(last 2); | |
} | |
footer { | |
@include full; | |
} |
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
html { | |
background: white; | |
} | |
header, nav, article, footer { | |
padding-top: 1em; | |
padding-bottom: 1em; | |
font-family: monospace, serif; | |
background: linear-gradient(rgba(255, 0, 128, 0.125), rgba(255, 0, 128, 0.125), rgba(255, 0, 128, 0.25)); | |
background-clip: content-box, border-box; | |
box-shadow: 0 0 0 1px rgba(255, 0, 128, 0.25) inset; | |
} | |
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
html { | |
font-size: 100%; | |
line-height: 1.5em; | |
} | |
body { | |
max-width: 57em; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuMCIgeTE9IjAuNSIgeDI9IjEuMCIgeTI9IjAuNSI+PHN0b3Agb2Zmc2V0PSIwLjg3NzE5JSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjAuODc3MTklIiBzdG9wLWNvbG9yPSIjNjY2NmZmIiBzdG9wLW9wYWNpdHk9IjAuMjUiLz48c3RvcCBvZmZzZXQ9IjcuODk0NzQlIiBzdG9wLWNvbG9yPSIjYjNiM2ZmIiBzdG9wLW9wYWNpdHk9IjAuMjUiLz48c3RvcCBvZmZzZXQ9IjcuODk0NzQlIiBzdG9wLWNvbG9yPSIjMDAwMDAwIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjxzdG9wIG9mZnNldD0iOS42NDkxMiUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4wIi8+PHN0b3Agb2Zmc2V0PSI5LjY0OTEyJSIgc3RvcC1jb2xvcj0iIzY2NjZmZiIgc3RvcC1vcGFjaXR5PSIwLjI1Ii8+PHN0b3Agb2Zmc2V0PSIyMy42ODQyMSUiIHN0b3AtY29sb3I9I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D0iOTkuMTIyODElIiBzdG9wLWNvbG9yPSIjYjNiM2ZmIiBzdG9wLW9wYWNpdHk9IjAuMjUiLz48c3RvcCBvZmZzZXQ9Ijk5LjEyMjgxJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA='); | |
background-size: 100%; | |
background-image: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0.87719%, rgba(0, 0, 0, 0)), color-stop(0.87719%, rgba(102, 102, 255, 0.25)), color-stop(7.89474%, rgba(179, 179, 255, 0.25)), color-stop(7.89474%, rgba(0, 0, 0, 0)), color-stop(9.64912%, rgba(0, 0, 0, 0)), color-stop(9.64912%, rgba(102, 102, 255, 0.25)), color-stop(23.68421%, rgba(179, 179, 255, 0.25)), color-stop(23.68421%, rgba(0, 0, 0, 0)), color-stop(25.4386%, rgba(0, 0, 0, 0)), color-stop(25.4386%, rgba(102, 102, 255, 0.25)), color-stop(46.49123%, rgba(179, 179, 255, 0.25)), color-stop(46.49123%, rgba(0, 0, 0, 0)), color-stop(48.24561%, rgba(0, 0, 0, 0)), color-stop(48.24561%, rgba(102, 102, 255, 0.25)), color-stop(76.31579%, rgba(179, 179, 255, 0.25)), color-stop(76.31579%, rgba(0, 0, 0, 0)), color-stop(78.07018%, rgba(0, 0, 0, 0)), color-stop(78.07018%, rgba(102, 102, 255, 0.25)), color-stop(99.12281%, rgba(179, 179, 255, 0.25)), color-stop(99.12281%, rgba(0, 0, 0, 0))); | |
background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0.87719%, rgba(102, 102, 255, 0.25) 0.87719%, rgba(179, 179, 255, 0.25) 7.89474%, rgba(0, 0, 0, 0) 7.89474%, rgba(0, 0, 0, 0) 9.64912%, rgba(102, 102, 255, 0.25) 9.64912%, rgba(179, 179, 255, 0.25) 23.68421%, rgba(0, 0, 0, 0) 23.68421%, rgba(0, 0, 0, 0) 25.4386%, rgba(102, 102, 255, 0.25) 25.4386%, rgba(179, 179, 255, 0.25) 46.49123%, rgba(0, 0, 0, 0) 46.49123%, rgba(0, 0, 0, 0) 48.24561%, rgba(102, 102, 255, 0.25) 48.24561%, rgba(179, 179, 255, 0.25) 76.31579%, rgba(0, 0, 0, 0) 76.31579%, rgba(0, 0, 0, 0) 78.07018%, rgba(102, 102, 255, 0.25) 78.07018%, rgba(179, 179, 255, 0.25) 99.12281%, rgba(0, 0, 0, 0) 99.12281%); | |
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0.87719%, rgba(102, 102, 255, 0.25) 0.87719%, rgba(179, 179, 255, 0.25) 7.89474%, rgba(0, 0, 0, 0) 7.89474%, rgba(0, 0, 0, 0) 9.64912%, rgba(102, 102, 255, 0.25) 9.64912%, rgba(179, 179, 255, 0.25) 23.68421%, rgba(0, 0, 0, 0) 23.68421%, rgba(0, 0, 0, 0) 25.4386%, rgba(102, 102, 255, 0.25) 25.4386%, rgba(179, 179, 255, 0.25) 46.49123%, rgba(0, 0, 0, 0) 46.49123%, rgba(0, 0, 0, 0) 48.24561%, rgba(102, 102, 255, 0.25) 48.24561%, rgba(179, 179, 255, 0.25) 76.31579%, rgba(0, 0, 0, 0) 76.31579%, rgba(0, 0, 0, 0) 78.07018%, rgba(102, 102, 255, 0.25) 78.07018%, rgba(179, 179, 255, 0.25) 99.12281%, rgba(0, 0, 0, 0) 99.12281%); | |
background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0.87719%, rgba(102, 102, 255, 0.25) 0.87719%, rgba(179, 179, 255, 0.25) 7.89474%, rgba(0, 0, 0, 0) 7.89474%, rgba(0, 0, 0, 0) 9.64912%, rgba(102, 102, 255, 0.25) 9.64912%, rgba(179, 179, 255, 0.25) 23.68421%, rgba(0, 0, 0, 0) 23.68421%, rgba(0, 0, 0, 0) 25.4386%, rgba(102, 102, 255, 0.25) 25.4386%, rgba(179, 179, 255, 0.25) 46.49123%, rgba(0, 0, 0, 0) 46.49123%, rgba(0, 0, 0, 0) 48.24561%, rgba(102, 102, 255, 0.25) 48.24561%, rgba(179, 179, 255, 0.25) 76.31579%, rgba(0, 0, 0, 0) 76.31579%, rgba(0, 0, 0, 0) 78.07018%, rgba(102, 102, 255, 0.25) 78.07018%, rgba(179, 179, 255, 0.25) 99.12281%, rgba(0, 0, 0, 0) 99.12281%); | |
background-origin: content-box; | |
background-clip: content-box; | |
background-position: left top; | |
} | |
body:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
header { | |
clear: both; | |
width: 98.24561%; | |
float: left; | |
margin-left: 0.87719%; | |
margin-right: 0.87719%; | |
} | |
nav { | |
width: 45.61404%; | |
float: left; | |
margin-left: 0.87719%; | |
margin-right: 0.87719%; | |
} | |
article { | |
width: 50.87719%; | |
float: right; | |
margin-left: 0.87719%; | |
margin-right: 0.87719%; | |
} | |
footer { | |
clear: both; | |
width: 98.24561%; | |
float: left; | |
margin-left: 0.87719%; | |
margin-right: 0.87719%; | |
} |
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
<body> | |
<header>header</header> | |
<nav>navigation</nav> | |
<article>article</article> | |
<footer>footer</footer> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment