CodePen

HTML

            
              .box
            
          
!

CSS

            
              @mixin box( $color ) {
  background-color: blue; // I pity the fool who doesn't make boxes blue!
  position: absolute;
  height: 60%;
  width: 60%;
  left: 20%;
  top: 20%;
}

.box {
  @include box( red ); 
}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................