Skip to content

Instantly share code, notes, and snippets.

@rgadon107
Last active February 16, 2016 23:12
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 rgadon107/9aebb29de8a42d8a8412 to your computer and use it in GitHub Desktop.
Save rgadon107/9aebb29de8a42d8a8412 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="parent">
<h4 class="title">Title</h4>
<div class="child">Child 1
<div class="post-content color">Lungo turkish body, cream aromatic café au lait spoon lungo mocha seasonal froth. Mocha, brewed strong, sweet black, robusta milk arabica that aged coffee whipped. Aroma, froth a, doppio so, cultivar, french press steamed acerbic milk trifecta espresso. Froth qui milk aged wings whipped aged. Irish single shot that, coffee, organic grounds caffeine milk strong in et americano.</div>
</div>
<div class="child">Child 2
<div class="post-content color">Post Content-2</div>
</div>
<div class="child">Child 3
<div class="post-content color">Post Content-3</div>
</div>
<div class="child">Child 4
<div class="post-content color">Post Content-4</div>
</div>
<div class="child">Child 5
<div class="post-content color">Post Content-5</div>
</div>
<div class="child">Child 6
<div class="post-content color">Post Content-1</div>
</div>
</div>
// ----
// libsass (v3.2.5)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
@mixin yellow {
//background-color: yellow;
border: 1px solid black;
box-sizing: border-box;
padding: 20px 50px;
text-align: left;
}
.parent {
@include outer-container;
border: 1px solid blue;
padding: 1em 1em 0;
}
.child {
@include span-columns(6);
@include omega("2n + 1");
border: 1px solid red;
margin-bottom: 1em;
padding: 1em;
text-align: center;
.color {
@include yellow;
}
}
html {
box-sizing: border-box;
}
*,
*::after,
*::before {
box-sizing: inherit;
}
.parent {
max-width: 68em;
margin-left: auto;
margin-right: auto;
border: 1px solid blue;
padding: 1em 1em 0;
}
.parent::after {
clear: both;
content: "";
display: table;
}
.child {
float: left;
display: block;
margin-right: 2.35765%;
width: 48.82117%;
border: 1px solid red;
margin-bottom: 1em;
padding: 1em;
text-align: center;
}
.child:last-child {
margin-right: 0;
}
.child:nth-child(2n + 1) {
margin-right: 0;
}
.child .color {
border: 1px solid black;
box-sizing: border-box;
padding: 20px 50px;
text-align: left;
}
<div class="parent">
<h4 class="title">Title</h4>
<div class="child">Child 1
<div class="post-content color">Lungo turkish body, cream aromatic café au lait spoon lungo mocha seasonal froth. Mocha, brewed strong, sweet black, robusta milk arabica that aged coffee whipped. Aroma, froth a, doppio so, cultivar, french press steamed acerbic milk trifecta espresso. Froth qui milk aged wings whipped aged. Irish single shot that, coffee, organic grounds caffeine milk strong in et americano.</div>
</div>
<div class="child">Child 2
<div class="post-content color">Post Content-2</div>
</div>
<div class="child">Child 3
<div class="post-content color">Post Content-3</div>
</div>
<div class="child">Child 4
<div class="post-content color">Post Content-4</div>
</div>
<div class="child">Child 5
<div class="post-content color">Post Content-5</div>
</div>
<div class="child">Child 6
<div class="post-content color">Post Content-1</div>
</div>
</div>
@rgadon107
Copy link
Author

Experimenting with the creation of @mixin use of @include statements in SCSS. Generated on 02-16-16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment