Created
October 24, 2015 16:13
-
-
Save lisacatalano/3dc1c843b22629e2415e 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="box"></div> | |
<div class="rounded-box"></div> | |
<div class="circle"></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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin shape($radius, $color, $size: 150px) { | |
background-color: $color; | |
border-radius: $radius; | |
width: $size; | |
height: $size; | |
} | |
@mixin spacing($margin: 20px) { | |
margin: $margin; | |
float: left; | |
} | |
.box { | |
@include shape(0, #d32); | |
@include spacing(); | |
} | |
.rounded-box { | |
@include shape(20px, #eddd23); | |
@include spacing(); | |
} | |
.circle { | |
@include shape(75px, pink); | |
@include spacing(); | |
} |
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 { | |
background-color: #d32; | |
border-radius: 0; | |
width: 150px; | |
height: 150px; | |
margin: 20px; | |
float: left; | |
} | |
.rounded-box { | |
background-color: #eddd23; | |
border-radius: 20px; | |
width: 150px; | |
height: 150px; | |
margin: 20px; | |
float: left; | |
} | |
.circle { | |
background-color: pink; | |
border-radius: 75px; | |
width: 150px; | |
height: 150px; | |
margin: 20px; | |
float: left; | |
} |
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="box"></div> | |
<div class="rounded-box"></div> | |
<div class="circle"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment