Skip to content

Instantly share code, notes, and snippets.

@ianhobbs
Created March 16, 2014 06:23
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 ianhobbs/9579335 to your computer and use it in GitHub Desktop.
Save ianhobbs/9579335 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<body>
<div class="page">
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<footer>footer</footer>
</div>
</body>
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.2)
// Susy (v2.1.1)
// ----
@import "compass/reset"
@import "breakpoint"
@import "compass"
@import "susy"
@import "compass"
@import "compass/css3"
$graceful-usage-threshold: 0.1% // support for compass prefix
@include establish-baseline
@include border-box-sizing
//grids
$susy:(columns: 12, gutters: 0.25, column-width: 5em, gutter-position: inside-static)
$neutBlack: #4c4c4c
$pink: rgba(230,0,120, 0.3)
=bgsetup($big)
height: $big
background: linear-gradient(rgba($pink,.54), rgba($pink,.04), rgba($pink,.54)),
body
// bg mixin
.page
@include container(show-columns)
@include susy-breakpoint(460px, 12)
@include container()
header
+bgsetup(3em)
@include full
article
+bgsetup(3em)
@include span(last 9)
nav
+bgsetup(3em)
@include span(3)
footer
+bgsetup(3em)
@include full
// end page function
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}
html {
line-height: 1;
}
ol, ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
q, blockquote {
quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}
a img {
border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block;
}
html {
font-size: 100%;
line-height: 1.5em;
}
*, *::before, *::after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.page {
max-width: 75em;
margin-left: auto;
margin-right: auto;
background-image: -moz-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25));
background-image: -webkit-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25));
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25));
background-size: 8.33333%;
background-origin: content-box;
background-clip: content-box;
background-position: left top;
}
.page::after {
content: " ";
display: block;
clear: both;
}
@media (min-width: 460px) {
.page {
max-width: 75em;
margin-left: auto;
margin-right: auto;
}
.page::after {
content: " ";
display: block;
clear: both;
}
}
.page header {
height: 3em;
background: linear-gradient(rgba(230, 0, 120, 0.54), rgba(230, 0, 120, 0.04), rgba(230, 0, 120, 0.54));
clear: both;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
float: left;
padding-left: 0.625em;
padding-right: 0.625em;
}
.page article {
height: 3em;
background: linear-gradient(rgba(230, 0, 120, 0.54), rgba(230, 0, 120, 0.04), rgba(230, 0, 120, 0.54));
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 75%;
float: right;
padding-left: 0.625em;
padding-right: 0.625em;
}
.page nav {
height: 3em;
background: linear-gradient(rgba(230, 0, 120, 0.54), rgba(230, 0, 120, 0.04), rgba(230, 0, 120, 0.54));
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 25%;
float: left;
padding-left: 0.625em;
padding-right: 0.625em;
}
.page footer {
height: 3em;
background: linear-gradient(rgba(230, 0, 120, 0.54), rgba(230, 0, 120, 0.04), rgba(230, 0, 120, 0.54));
clear: both;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
float: left;
padding-left: 0.625em;
padding-right: 0.625em;
}
<body>
<div class="page">
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<footer>footer</footer>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment