Skip to content

Instantly share code, notes, and snippets.

@subpixelch
Created February 26, 2015 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subpixelch/f829ebc76ce21274eaa1 to your computer and use it in GitHub Desktop.
Save subpixelch/f829ebc76ce21274eaa1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="wrapper"><nav><div class="logo"><img src="http://satyr.io/250x76" alt="">
</div><nav class="navi">
<ul>
<li><a href="">ink</a></li>
<li><a href="">adfafd</a></li>
<li><a href="">asdfas</a></li>
<li><a href="">asfasfd</a></li>
<li><a href="">asfdasdf</a></li>
</ul>
</nav></nav>
</div><div class="slider"><img src="http://satyr.io/1200x200" alt=""></div>
<div class="wrapper"><div class="subline">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, eos, molestias consequatur eum ratione autem vel natus in neque deleniti incidunt perferendis doloremque amet ad odit? Eveniet similique a dolorum?</div></div>
<div class="wrapper"><div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
</div>
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon"
@import "jeet/index"
div
margin: 0
padding: 0
body
margin: 0
padding: 0
img
width: 100%
height: auto
.subline
background: gray
padding: 1rem
text-align: center
.box
+col(1/4)
.wrapper
+center(1140px)
+padding(null null 2rem 2rem)
.logo
+span(1/3)
img
max-width: 250px
nav .navi
+span(2/3)
text-align: right
li
list-style: none
display: inline-block
/* Syntax Quick Reference
--------------------------
column($ratios: 1, $offset: 0, $cycle: 0, $uncycle: 0, $gutter: $jeet-gutter)
span($ratio: 1, $offset: 0)
shift($ratios: 0, $col_or_span: column, $gutter: $jeet-gutter)
unshift()
edit()
center($max_width: 1410px, $pad: 0)
stack($pad: 0, $align: false)
unstack()
align($direction: both)
cf()
*/
/**
* Grid settings.
* All values are defaults and can therefore be easily overidden.
*/
/**
* List functions courtesy of the wonderful folks at Team Sass.
* Check out their awesome grid: Singularity.
*/
/**
* Get percentage from a given ratio.
* @param {number} [$ratio=1] - The column ratio of the element.
* @returns {number} - The percentage value.
*/
/**
* Work out the column widths based on the ratio and gutter sizes.
* @param {number} [$ratios=1] - The column ratio of the element.
* @param {number} [$gutter=$jeet-gutter] - The gutter for the column.
* @returns {list} $width $gutter - A list containing the with and gutter for the element.
*/
/**
* Get the set layout direction for the project.
* @returns {string} $direction - The layout direction.
*/
/**
* Replace a specified list value with a new value (uses built in set-nth() if available)
* @param {list} $list - The list of values you want to alter.
* @param {number} $index - The index of the list item you want to replace.
* @param {*} $value - The value you want to replace $index with.
* @returns {list} $list - The list with the value replaced or removed.
* @warn if an invalid index is supplied.
*/
/**
* Reverse a list (progressively enhanced for Sass 3.3)
* @param {list} $list - The list of values you want to reverse.
* @returns {list} $result - The reversed list.
*/
/**
* Get the opposite direction to a given value.
* @param {string} $dir - The direction you want the opposite of.
* @returns {string} - The opposite direction to $dir.
* @warn if an incorrect string is provided.
*/
/**
* Style an element as a column with a gutter.
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
* @param {number} [$offset=0] - A offset specified as a fraction (see $ratios).
* @param {number} [$cycle=0] - Easily create an nth column grid where $cycle equals the number of columns.
* @param {number} [$uncycle=0] - Undo a previous cycle value to allow for a new one.
* @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
*/
/**
* An alias for the column mixin.
* @param [$args...] - All arguments get passed through to column().
*/
/**
* Get the width of a column and nothing else.
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
* @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
*/
/**
* Get the gutter size of a column and nothing else.
* @param {number} [ratios=1] - A width relative to its container as a fraction.
* @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
*/
/**
* An alias for the column-width function.
* @param [$args...] - All arguments get passed through to column().
*/
/**
* An alias for the column-gutter function.
* @param [$args...] - All arguments get passed through to column().
*/
/**
* Style an element as a column without any gutters for a seamless row.
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
* @param {number} [$offset=0] - A offset specified as a fraction (see $ratios).
* @param {number} [cycle=0] - Easily create an nth column grid where cycle equals the number of columns.
* @param {number} [uncycle=0] - Undo a previous cycle value to allow for a new one.
*/
/**
* Reorder columns without altering the HTML.
* @param {number} [$ratios=0] - Specify how far along you want the element to move.
* @param {string} [$col-or-span=column] - Specify whether the element has a gutter or not.
* @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
*/
/**
* Reset an element that has had shift() applied to it.
*/
/**
* View the grid and its layers for easy debugging.
* @param {string} [$color=black] - The background tint applied.
* @param {boolean} [$important=false] - Whether to apply the style as !important.
*/
/**
* Alias for edit().
*/
/**
* Horizontally center an element.
* @param {number} [$max-width=1410px] - The max width the element can be.
* @param {number} [$pad=0] - Specify the element's left and right padding.
*/
/**
* Uncenter an element.
*/
/**
* Stack an element so that nothing is either side of it.
* @param {number} [$pad=0] - Specify the element's left and right padding.
* @param {boolean/string} [$align=false] - Specify the text align for the element.
*/
/**
* Unstack an element.
*/
/**
* Center an element on either or both axes.
* @requires A parent container with relative positioning.
* @param {string} [$direction=both] - Specify which axes to center the element on.
*/
/**
* Apply a clearfix to an element.
*/
div {
margin: 0;
padding: 0; }
body {
margin: 0;
padding: 0; }
img {
width: 100%;
height: auto; }
.subline {
background: gray;
padding: 1rem;
text-align: center; }
.box {
*zoom: 1;
float: left;
clear: none;
text-align: inherit;
width: 22.75%;
margin-left: 0%;
margin-right: 3%; }
.box:before, .box:after {
content: '';
display: table; }
.box:after {
clear: both; }
.box:last-child {
margin-right: 0%; }
.wrapper {
*zoom: 1;
width: auto;
max-width: 1140px;
float: none;
display: block;
margin-right: auto;
margin-left: auto;
padding-left: 0;
padding-right: 0;
padding-bottom: 2rem;
padding-left: 2rem; }
.wrapper:before, .wrapper:after {
content: '';
display: table; }
.wrapper:after {
clear: both; }
.logo {
*zoom: 1;
float: left;
clear: none;
text-align: inherit;
width: 33.33333%;
margin-left: 0%;
margin-right: 0%; }
.logo:before, .logo:after {
content: '';
display: table; }
.logo:after {
clear: both; }
.logo img {
max-width: 250px; }
nav .navi {
*zoom: 1;
float: left;
clear: none;
text-align: inherit;
width: 66.66667%;
margin-left: 0%;
margin-right: 0%;
text-align: right; }
nav .navi:before, nav .navi:after {
content: '';
display: table; }
nav .navi:after {
clear: both; }
nav .navi li {
list-style: none;
display: inline-block; }
<div class="wrapper"><nav><div class="logo"><img src="http://satyr.io/250x76" alt="">
</div><nav class="navi">
<ul>
<li><a href="">ink</a></li>
<li><a href="">adfafd</a></li>
<li><a href="">asdfas</a></li>
<li><a href="">asfasfd</a></li>
<li><a href="">asfdasdf</a></li>
</ul>
</nav></nav>
</div><div class="slider"><img src="http://satyr.io/1200x200" alt=""></div>
<div class="wrapper"><div class="subline">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, eos, molestias consequatur eum ratione autem vel natus in neque deleniti incidunt perferendis doloremque amet ad odit? Eveniet similique a dolorum?</div></div>
<div class="wrapper"><div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
<div class="box"><img src="http://satyr.io/500x350" alt=""><h1>Titel</h1><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt, totam, iusto, optio, libero vitae eum praesentium nihil ea repellendus sequi iste natus id dolorem amet atque assumenda nostrum corporis suscipit!</p></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment