Create Reusable CSS with Mixins

Create Reusable CSS with Mixins
0

#1

Tell us what’s happening:

Your code so far


<style type='text/sass'>
  
    @mixin border-radius( $radius){ 
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
  border-radius: $radius;
}
  border-radius mixin {
  @include box-shadow(15px);
}

  #awesome {
    width: 150px;
    height: 150px;
    background-color: green;
    
  }
</style>

<div id="awesome"></div>
  

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/create-reusable-css-with-mixins


#2
  1. Your code is trying to include the box-shadow mixin.
  2. The include line should go into #awesome.

#3
@mixin border-radius($radius){ -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; } border-radius mixin { @include border-radius(15px); } #awesome { width: 150px; height: 150px; background-color: green; }