Last active
August 29, 2015 14:07
-
-
Save micahgodbolt/4222ec39426712660300 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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="col"> | |
<div> | |
<p class=wide>too much padding</p> | |
<p>hello there</p> | |
</div> | |
</div> |
This file contains hidden or 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.14) | |
// Compass (v1.0.1) | |
// Susy (v2.1.3) | |
// ---- | |
@import "susy"; | |
* { | |
box-sizing: border-box; | |
} | |
$susy: ( | |
columns: 12, | |
column-width: 80px, | |
gutters: 20px/80px, | |
gutter-position: inside-static, | |
); | |
.col { | |
background: #eee; | |
background-clip: content-box; | |
@include span(4 of 12); | |
> div { | |
padding: 0 gutter(); | |
} | |
.wide { | |
background: yellow; | |
margin: 0; | |
@include bleed-x(); | |
} | |
} |
This file contains hidden or 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
* { | |
box-sizing: border-box; | |
} | |
.col { | |
background: #eee; | |
background-clip: content-box; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
width: 33.33333%; | |
float: left; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
.col > div { | |
padding: 0 10px; | |
} | |
.col .wide { | |
background: yellow; | |
margin: 0; | |
margin-right: -10px; | |
margin-left: -10px; | |
padding-right: 20px; | |
padding-left: 20px; | |
} |
This file contains hidden or 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="col"> | |
<div> | |
<p class=wide>too much padding</p> | |
<p>hello there</p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment