Created
October 29, 2015 20:44
-
-
Save melissamcewen/208f6e3eb642e3353340 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
<div class="l-example"> | |
<div class="l-example__a">A<br/> </div> | |
<div class="l-example__b">B</div> | |
</div> |
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.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); | |
} | |
} | |
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
.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%; | |
} | |
} |
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
<div class="l-example"> | |
<div class="l-example__a">A<br/> </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