Created
March 4, 2014 14:32
-
-
Save DarbyBrown/9347524 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> | |
</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.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin dbl-border($color) { | |
background: $color; | |
position: relative; | |
&:before { | |
border: 1px solid $color; | |
content: ''; | |
height: 101%; | |
height: calc(100% + 10px); | |
left: -5px; | |
position: absolute; | |
top: -5px; | |
width: 101%; | |
width: calc(100% + 10px); | |
} | |
} | |
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
div { | |
height: 400px; | |
width: 500px; | |
@include dbl-border(red); | |
} |
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
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
div { | |
height: 400px; | |
width: 500px; | |
background: red; | |
position: relative; | |
} | |
div:before { | |
border: 1px solid red; | |
content: ''; | |
height: 101%; | |
height: calc(100% + 10px); | |
left: -5px; | |
position: absolute; | |
top: -5px; | |
width: 101%; | |
width: calc(100% + 10px); | |
} |
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> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment