Created
July 17, 2014 14:16
-
-
Save geibi/94a7bdb6fc5167067891 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"> | |
<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 box-sizing('border-box'); | |
} | |
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('split'); | |
@include add-gutter(20px); | |
// @include sgs-change('debug', true); | |
*{ | |
@include box-sizing('border-box'); | |
} | |
img{ | |
max-width: 100%; | |
} | |
.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; | |
@include layout(2){ | |
.item{ | |
@include float-span(1); | |
} | |
} | |
@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
* { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
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%; | |
} | |
.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-left: 10px; | |
padding-right: 10px; | |
} | |
@media (min-width: 800px) { | |
.sidebar-wrapper { | |
width: 11.11111%; | |
float: left; | |
margin-right: -100%; | |
clear: none; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
} | |
.content-wrapper { | |
background: rgba(255, 0, 0, 0.5); | |
width: 50%; | |
float: right; | |
margin-left: 0; | |
margin-right: 0; | |
clear: none; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
@media (min-width: 800px) { | |
.content-wrapper { | |
width: 66.66667%; | |
float: left; | |
margin-right: -100%; | |
margin-left: 22.22222%; | |
clear: none; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
} | |
.gallery { | |
overflow: hidden; | |
*zoom: 1; | |
} | |
.gallery .item { | |
width: 50%; | |
clear: right; | |
float: left; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
@media (min-width: 800px) { | |
.gallery .item { | |
width: 25%; | |
clear: right; | |
float: left; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
} | |
.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"> | |
<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