Created
July 30, 2014 15:32
-
-
Save geibi/7a45960747ad3d4bbf56 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="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.12) | |
// Compass (v1.0.0.alpha.21) | |
// Breakpoint (v2.4.6) | |
// Singularity.gs (v1.2.0.rc.6) | |
// ---- | |
@import "compass"; | |
@import 'breakpoint'; | |
@import 'singularitygs'; | |
@mixin thegrid($layout, $cols, $el: "div", $thegutter: .1){ | |
@include layout($layout, $gutter: $thegutter) { | |
@for $i from 1 through $cols { | |
@if $i == 1 { | |
#{$el}:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, left); | |
} | |
} | |
@else if $i < $cols { | |
#{$el}:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, none); | |
} | |
} | |
@else { | |
#{$el}:nth-child(#{$cols}n+#{$i}) { | |
@include isolation-span(1, $i, right); | |
} | |
} | |
} | |
} | |
} | |
$beforeMediumBreakpoint: max-width 799px; | |
$mediumBreakpoint: 800px; | |
@include add-grid(1); | |
@include add-gutter(1em); | |
@include global-reset(); | |
body{ | |
margin: 0; | |
padding: 0; | |
background: black; | |
} | |
// @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; | |
} | |
.content-wrapper{ | |
background: rgba(red, .5); | |
@include grid-span(1); | |
} | |
.gallery{ | |
@include clearfix; | |
line-height: 1px; | |
$layout: 1 1 1; | |
@include thegrid($layout, 3, $el: ".item"); | |
.item { | |
margin-bottom: 1em; | |
} | |
} | |
.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; | |
} | |
.content-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
width: 100%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
padding-right: 0; | |
} | |
.gallery { | |
overflow: hidden; | |
*zoom: 1; | |
line-height: 1px; | |
} | |
.gallery .item:nth-child(3n+1) { | |
width: 31.25%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 0; | |
clear: left; | |
} | |
.gallery .item:nth-child(3n+2) { | |
width: 31.25%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 34.375%; | |
clear: none; | |
} | |
.gallery .item:nth-child(3n+3) { | |
width: 31.25%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: right; | |
} | |
.gallery .item { | |
margin-bottom: 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="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