Created
June 9, 2014 20:29
-
-
Save powellmichael/adfa4c1dc6ad9b7964e1 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="box1"></div> | |
<div class="box2"></div> | |
<div class="box"></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.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$color: green; | |
@mixin rounded($radius, $color) { | |
background-color: $color; | |
border-radius: $radius; | |
width:100px; | |
height:100px; | |
margin:10px 0; | |
} | |
.box1 { | |
@include rounded(20px, red); | |
} | |
.box2 { | |
@include rounded(50px, blue); | |
} | |
.box { | |
@include rounded(50px, $color); | |
} |
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
.box1 { | |
background-color: red; | |
border-radius: 20px; | |
width: 100px; | |
height: 100px; | |
margin: 10px 0; | |
} | |
.box2 { | |
background-color: blue; | |
border-radius: 50px; | |
width: 100px; | |
height: 100px; | |
margin: 10px 0; | |
} | |
.box { | |
background-color: green; | |
border-radius: 50px; | |
width: 100px; | |
height: 100px; | |
margin: 10px 0; | |
} |
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="box1"></div> | |
<div class="box2"></div> | |
<div class="box"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment