Created
July 21, 2014 11:10
-
-
Save geibi/e62a487ff91137b06963 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> | |
<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"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
</div> | |
</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'; | |
@include global-reset(); | |
body{ | |
margin: 0; | |
padding: 0; | |
background: black; | |
} | |
$mediumBreakpoint: 800px; | |
@include add-grid(4); | |
//@include add-grid(6 at 600px); | |
@include add-grid(1 1 3 3 1 at $mediumBreakpoint); | |
@include add-gutter-style('opposite'); | |
@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; | |
height: 100vh; | |
margin: 0 auto; | |
background: blue; | |
} | |
.sidebar-wrapper{ | |
background: rgba(red, .5); | |
@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(2, 3); | |
} | |
} | |
.gallery{ | |
@include clearfix; | |
line-height: 1px; | |
@include layout(2){ | |
.item{ | |
@include float-span(1); | |
margin-bottom: 1em; | |
} | |
} | |
@include breakpoint($mediumBreakpoint) { | |
@include layout(4){ | |
.item{ | |
@include float-span(1); | |
} | |
} | |
} | |
} | |
.content{ | |
@include clearfix; | |
background: green; | |
height: 100%; | |
} |
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; | |
} | |
* { | |
-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; | |
height: 100vh; | |
margin: 0 auto; | |
background: blue; | |
} | |
.sidebar-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
width: 50%; | |
float: left; | |
margin-right: -100%; | |
clear: none; | |
padding-right: 1em; | |
} | |
@media (min-width: 800px) { | |
.sidebar-wrapper { | |
width: 11.11111%; | |
float: left; | |
margin-right: -100%; | |
clear: none; | |
padding-right: 1em; | |
} | |
} | |
.content-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
width: 50%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
padding-right: 0; | |
} | |
@media (min-width: 800px) { | |
.content-wrapper { | |
width: 66.66667%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 22.22222%; | |
clear: none; | |
padding-right: 1em; | |
} | |
} | |
.gallery { | |
overflow: hidden; | |
*zoom: 1; | |
line-height: 1px; | |
} | |
.gallery .item { | |
width: 50%; | |
clear: right; | |
float: left; | |
padding-right: 1em; | |
margin-bottom: 1em; | |
} | |
@media (min-width: 800px) { | |
.gallery .item { | |
width: 25%; | |
clear: right; | |
float: left; | |
padding-right: 1em; | |
} | |
} | |
.content { | |
overflow: hidden; | |
*zoom: 1; | |
background: green; | |
height: 100%; | |
} |
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> | |
<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"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
<div class="item"><img src="http://placehold.it/350x150"></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment