Created
March 28, 2014 21:22
-
-
Save ianhobbs/9843254 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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> | |
<div class="page"> | |
<header><h1>Hello i'm your header</h1></header> | |
<div class="main"> | |
<article>article</article> | |
<div class="right"> | |
<div class="lit"> | |
<date><h3>1298</h3></date> | |
<div class="text"><h2>my heading</h2></div> | |
<div class="pic">A picture here</div> | |
<div class="body"><p>yaddaa tagga</p></div> | |
</div> | |
</div> | |
</div> | |
<footer>footer</footer> | |
</div> | |
</body> |
This file contains 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.4) | |
// Compass (v1.0.0.alpha.18) | |
// Breakpoint (v2.4.2) | |
// Susy (v2.1.1) | |
// ---- | |
@import "susy" | |
@import "breakpoint" | |
@import "compass" | |
$olive: RGBA(120,230,140,0.3) | |
$pink: RGBA(250,142,199,0.2) | |
$tc: 12 | |
div, nav, article, header, footer | |
background: $pink | |
$neutBlack: #4c4c4c | |
$susy: (columns: $tc, gutters: 0.3,math: fluid, output: float, gutter-position: outside,) | |
$show-column-grid-backgrounds : true | |
$map2: (3em 0.5em inside) | |
div.page | |
@include border-box-sizing | |
@include container (33em show) | |
header | |
@include span(full) | |
padding: 2em | |
div.main | |
@include span(full) | |
article | |
@include span(8 of $tc) | |
padding: 1em | |
.right | |
@include span(3 of $tc narrow) | |
@include push(1) | |
.lit | |
@include with-layout(8 show wide) | |
date | |
@include span(last 2 of 8) | |
background: yellow | |
.text | |
@include span(first 6 of 8) | |
margin: 0 | |
padding: 0 | |
.pic | |
@include span(3 of 8) | |
background: orange | |
.body | |
@include span(5 of 8) | |
@include breakpoint(73em show) | |
header | |
@include span(full) | |
padding: 1em | |
background-color: yellow | |
div.main | |
@include span(full) | |
article | |
@include span(8 of $tc) | |
padding: 1em | |
.right | |
@include span(3 of $tc narrow) | |
@include push(1) | |
.lit | |
@include with-layout(8 show wide) | |
date | |
@include span(last 2 of 8) | |
background: yellow | |
.text | |
@include span(first 6 of 8) | |
margin: 0 | |
padding: 0 | |
.pic | |
@include span(3 of 8) | |
background: orange | |
.body | |
@include span(5 of 8) | |
This file contains 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, nav, article, header, footer { | |
background: RGBA(250, 142, 199, 0.2); | |
} | |
div.page { | |
max-width: 33em; | |
margin-left: auto; | |
margin-right: auto; | |
background-image: -moz-linear-gradient(left, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 76.92308%, rgba(0, 0, 0, 0) 76.92308%), -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) 76.92308%, rgba(0, 0, 0, 0) 76.92308%), -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) 76.92308%, rgba(0, 0, 0, 0) 76.92308%), linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%); | |
background-size: 8.49673%, 100% 24px; | |
background-origin: content-box, border-box; | |
background-clip: content-box, border-box; | |
background-position: left top; | |
} | |
div.page *, div.page *::before, div.page *::after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
div.page::after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
div.page header { | |
width: 100%; | |
float: left; | |
padding: 2em; | |
} | |
div.page div.main { | |
width: 100%; | |
float: left; | |
} | |
div.page div.main article { | |
width: 66.01307%; | |
float: left; | |
padding: 1em; | |
} | |
div.page div.main .right { | |
width: 23.52941%; | |
float: left; | |
margin-left: 8.49673%; | |
} | |
div.page div.main .right .lit date { | |
width: 25.74257%; | |
float: right; | |
background: yellow; | |
} | |
div.page div.main .right .lit .text { | |
width: 77.22772%; | |
float: left; | |
margin: 0; | |
padding: 0; | |
} | |
div.page div.main .right .lit .pic { | |
width: 38.61386%; | |
float: left; | |
background: orange; | |
} | |
div.page div.main .right .lit .body { | |
width: 64.35644%; | |
float: left; | |
} | |
@media (show: 73em) { | |
div.page { | |
width: 100%; | |
float: left; | |
} | |
div.page header { | |
width: 100%; | |
float: left; | |
padding: 1em; | |
background-color: yellow; | |
} | |
div.page article { | |
width: 66.01307%; | |
float: left; | |
padding: 1em; | |
} | |
div.page .right { | |
width: 23.52941%; | |
float: left; | |
margin-left: 8.49673%; | |
} | |
div.page .right .lit date { | |
width: 25.74257%; | |
float: right; | |
background: yellow; | |
} | |
div.page .right .lit .text { | |
width: 77.22772%; | |
float: left; | |
margin: 0; | |
padding: 0; | |
} | |
div.page .right .lit .pic { | |
width: 38.61386%; | |
float: left; | |
background: orange; | |
} | |
div.page .right .lit .body { | |
width: 64.35644%; | |
float: left; | |
} | |
} |
This file contains 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> | |
<div class="page"> | |
<header><h1>Hello i'm your header</h1></header> | |
<div class="main"> | |
<article>article</article> | |
<div class="right"> | |
<div class="lit"> | |
<date><h3>1298</h3></date> | |
<div class="text"><h2>my heading</h2></div> | |
<div class="pic">A picture here</div> | |
<div class="body"><p>yaddaa tagga</p></div> | |
</div> | |
</div> | |
</div> | |
<footer>footer</footer> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment