Skip to content

Instantly share code, notes, and snippets.

@melissamcewen
Created October 29, 2015 20:44
Show Gist options
  • Save melissamcewen/208f6e3eb642e3353340 to your computer and use it in GitHub Desktop.
Save melissamcewen/208f6e3eb642e3353340 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="l-example">
<div class="l-example__a">A<br/>&nbsp;</div>
<div class="l-example__b">B</div>
</div>
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// Zen Grids (v1.4)
// ----
@import "zen";
$zen-column-count: 12;
$zen-gutter-width: 30px;
$zen-auto-include-item-base: false;
.l-example__a {
background: #fcc;
@include zen-grid-item(12, 1);
}
.l-example__b {
background: #cfc;
@include zen-grid-item(12, 1);
}
@media screen and (min-width: 480px) {
.l-example {
@include zen-grid-container;
}
.l-example__a, .l-example__b, .l-example__c {
@include zen-grid-item-base;
}
.l-example__a {
background: #fcc;
@include zen-grid-item(8, 1);
}
.l-example__b {
background: #cfc;
@include zen-grid-item(4, 1, right);
}
}
.l-example__a {
background: #fcc;
float: left;
width: 100%;
margin-left: 0%;
margin-right: -100%;
}
.l-example__b {
background: #cfc;
float: left;
width: 100%;
margin-left: 0%;
margin-right: -100%;
}
@media screen and (min-width: 480px) {
.l-example:before, .l-example:after {
content: "";
display: table;
}
.l-example:after {
clear: both;
}
.l-example__a, .l-example__b, .l-example__c {
padding-left: 15px;
padding-right: 15px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
.l-example__a {
background: #fcc;
float: left;
width: 66.66667%;
margin-left: 0%;
margin-right: -66.66667%;
}
.l-example__b {
background: #cfc;
float: right;
width: 33.33333%;
margin-right: 0%;
margin-left: -33.33333%;
}
}
<div class="l-example">
<div class="l-example__a">A<br/>&nbsp;</div>
<div class="l-example__b">B</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment