Created
July 21, 2014 14:10
-
-
Save geibi/16b69d6d577ffcce337e 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>singularity and bundler test</title> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="sidebar-wrapper"> | |
<div class="content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
</div> | |
</div> | |
<div class="content-wrapper"> | |
<div class="content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<div class="gallery"> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
</div> | |
</div> | |
</div> | |
<div class="news-wrapper"> | |
<div class="content"> | |
<h2>news</h2> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
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.10) | |
// Compass (v1.0.0.alpha.20) | |
// Breakpoint (v2.4.2) | |
// Singularity.gs (v1.2.1) | |
// ---- | |
@import "compass"; | |
@import 'breakpoint'; | |
@import 'singularitygs'; | |
@mixin thegrid($cols, $thegutter: .3){ | |
@include layout($cols, $thegutter) { | |
@for $i from 1 through $cols { | |
@if $i == 1 { | |
&:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, left); | |
} | |
} | |
@else if $i < $cols { | |
&:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, none); | |
} | |
} | |
@else { | |
&:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, right); | |
} | |
} | |
} | |
} | |
} | |
@include global-reset(); | |
body{ | |
margin: 0; | |
padding: 0; | |
background: black; | |
font-family: Verdana; | |
font-size: $base-font-size; | |
} | |
$breakpoint-to-ems: true; | |
$mediumBreakpoint: 800px; | |
$beforeMediumBreakpoint: max-width ($mediumBreakpoint - 1); | |
// @include add-grid(6); | |
//@include add-grid(6 at 600px); | |
@include add-grid(4 1 10 1 4 at $mediumBreakpoint); | |
@include add-gutter(1em); | |
// @include sgs-change('debug', true); | |
*{ | |
@include box-sizing('border-box'); | |
} | |
img{ | |
max-width: 100%; | |
} | |
p{ | |
margin-bottom: 1em; | |
} | |
.container{ | |
// @include background-grid($color: blue); | |
max-width: 800px; | |
margin: 0 auto; | |
background: blue; | |
padding: 20px; | |
@include clearfix; | |
} | |
.sidebar-wrapper{ | |
background: rgba(red, .5); | |
border-right: 1px solid black; | |
// @include grid-span(2,1); | |
@include breakpoint($mediumBreakpoint) { | |
@include grid-span(1, 1); | |
} | |
} | |
.content-wrapper{ | |
background: rgba(red, .5); | |
// @include grid-span(2,3); | |
@include breakpoint($mediumBreakpoint) { | |
@include grid-span(1, 3); | |
} | |
} | |
.news-wrapper{ | |
background: rgba(red, .5); | |
// @include grid-span(2,5); | |
@include breakpoint($mediumBreakpoint) { | |
@include grid-span(1, 5); | |
} | |
} | |
.content{ | |
@include clearfix; | |
background: green; | |
padding: 20px; | |
} | |
.gallery{ | |
@include clearfix; | |
@include add-gutter(1em); | |
img{ | |
margin-bottom: 1em | |
} | |
p{ | |
margin-bottom: 0.2em; | |
} | |
.item { | |
margin-bottom: 1em; | |
background-color:red; | |
@include breakpoint($beforeMediumBreakpoint) { | |
// $cols: 2; | |
// @include thumbnail-grid($cols); | |
} | |
@include breakpoint($mediumBreakpoint) { | |
@include thegrid(4); | |
} | |
} | |
} | |
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
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; | |
} | |
body { | |
margin: 0; | |
padding: 0; | |
background: black; | |
font-family: Verdana; | |
font-size: 16px; | |
} | |
* { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
img { | |
max-width: 100%; | |
} | |
p { | |
margin-bottom: 1em; | |
} | |
.container { | |
max-width: 800px; | |
margin: 0 auto; | |
background: blue; | |
padding: 20px; | |
overflow: hidden; | |
*zoom: 1; | |
} | |
.sidebar-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
border-right: 1px solid black; | |
} | |
@media (min-width: 50em) { | |
.sidebar-wrapper { | |
width: 20%; | |
float: left; | |
margin-right: -100%; | |
clear: none; | |
padding-right: 1em; | |
} | |
} | |
.content-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
} | |
@media (min-width: 50em) { | |
.content-wrapper { | |
width: 50%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 25%; | |
clear: none; | |
padding-right: 1em; | |
} | |
} | |
.news-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
} | |
@media (min-width: 50em) { | |
.news-wrapper { | |
width: 20%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
padding-right: 0; | |
} | |
} | |
.content { | |
overflow: hidden; | |
*zoom: 1; | |
background: green; | |
padding: 20px; | |
} | |
.gallery { | |
overflow: hidden; | |
*zoom: 1; | |
} | |
.gallery img { | |
margin-bottom: 1em; | |
} | |
.gallery p { | |
margin-bottom: 0.2em; | |
} | |
.gallery .item { | |
margin-bottom: 1em; | |
background-color: red; | |
} | |
@media (min-width: 50em) { | |
.gallery .item:nth-child(4n+1) { | |
width: 20.40816%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: left; | |
} | |
.gallery .item:nth-child(4n+2) { | |
width: 20.40816%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 26.53061%; | |
clear: none; | |
} | |
.gallery .item:nth-child(4n+3) { | |
width: 20.40816%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 53.06122%; | |
clear: none; | |
} | |
.gallery .item:nth-child(4n+4) { | |
width: 20.40816%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: right; | |
} | |
} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>singularity and bundler test</title> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="sidebar-wrapper"> | |
<div class="content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
</div> | |
</div> | |
<div class="content-wrapper"> | |
<div class="content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<div class="gallery"> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
<div class="item"><p>Image</p><img src="http://placehold.it/350x150"></div> | |
</div> | |
</div> | |
</div> | |
<div class="news-wrapper"> | |
<div class="content"> | |
<h2>news</h2> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, facilis harum expedita officia vero odio provident excepturi nisi fuga rerum inventore libero a temporibus aperiam asperiores nobis quod accusantium voluptates.</p> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment