Objective:
Write a mixin for border-radius and give it a $radius parameter. It should use all the vendor prefixes from the example. Then use the border-radius mixin to give the #awesome element a border radius of 15px.
I’ve tried lots of different things, learned somethings that FCC should have told me before asking me to do this and I still can’t seem to shake the following fails:
Your code should include the general border-radius rule that uses the $radius parameter.
Your code should call the border-radius mixin using the @include keyword, setting it to 15px.
I’m sure I’m missing something else, just don’t know what.
<style type='text/sass'>
$radius:15px;
@mixin border-radius($radius) {
-moz-border-radius:$radius;
-webkit-border-radius:$radius;
-webkit-border-radius:$radius;
-ms-border-radius:$radius;
border-radius:$radius;
}
#awesome {
width: 150px;
height: 150px;
background-color: green;
@include border-radius:($radius: 15px);
}
</style>
<div id="awesome"></div>
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/create-reusable-css-with-mixins/