Create Reusable CSS with Mixins

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:

  1. Your code is trying to include the box-shadow mixin.
  2. The include line should go into #awesome.
@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; }
@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; }
3 Likes