Skip to content

Instantly share code, notes, and snippets.

@benebun
Created April 10, 2014 13:19
Show Gist options
  • Save benebun/10381396 to your computer and use it in GitHub Desktop.
Save benebun/10381396 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<div class="inner">
<section>section</section>
<footer>footer</footer>
</div>
// ----
// Sass (v3.3.4)
// Compass (v)
// Breakpoint (v)
// Susy (v)
// ----
@import "compass";
@import "compass/reset";
@import "breakpoint";
@import "susy";
@include establish-baseline;
$susy: (
gutter-position: inside,
);
body {
@include container(show);
}
header {
@include span(2);
}
nav {
@include span(2);
}
article {
@include span(2);
}
.inner {
@include span(2 nest);
section {
@include span(1 of 2);
}
footer {
@include span(1 of 2 at 1);
}
}
// visuals
// -------
$pink: rgb(255, 0, 128);
html { background: white; }
header, nav, article, footer, section {
@include rhythm-padding(1);
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;
}
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;
}
body {
max-width: 100%;
margin-left: auto;
margin-right: auto;
background-image: -moz-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25)), -moz-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-image: -webkit-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25)), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25)), linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
background-size: 25%, 100% 24px;
background-origin: content-box, border-box;
background-clip: content-box, border-box;
background-position: left top;
}
body::after {
content: " ";
display: block;
clear: both;
}
header {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
padding-left: 2.5%;
padding-right: 2.5%;
}
nav {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
padding-left: 2.5%;
padding-right: 2.5%;
}
article {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
padding-left: 2.5%;
padding-right: 2.5%;
}
.inner {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
}
.inner section {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
padding-left: 5%;
padding-right: 5%;
}
.inner footer {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
float: left;
padding-left: 5%;
padding-right: 5%;
}
html {
background: white;
}
header, nav, article, footer, section {
padding-top: 1.5em;
padding-bottom: 1.5em;
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;
}
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<div class="inner">
<section>section</section>
<footer>footer</footer>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment