Skip to content

Instantly share code, notes, and snippets.

@DarbyBrown
Created March 4, 2014 14:32
Show Gist options
  • Save DarbyBrown/9347524 to your computer and use it in GitHub Desktop.
Save DarbyBrown/9347524 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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);
}
*, *: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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment