Created
October 17, 2015 18:45
-
-
Save lisacatalano/7154842043572042220b 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) { | |
background-color: $color; | |
border-radius: $radius; | |
width: $size; | |
height: $size; | |
} | |
@mixin spacing($margin: 20px) { | |
margin: $margin; | |
float: left; | |
} | |
.box { | |
@include shape(0, #d32, 150px); | |
@include spacing(); | |
} | |
.rounded-box { | |
@include shape(20px, #eddd23, 150px); | |
@include spacing(20px 70px); | |
} | |
.circle { | |
@include shape(75px, pink, 150px); | |
@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 70px; | |
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