title: How to simplify this SCSS border radius Mixin? -- Sass Beginner
body: <p>I have the following SCSS mixin for which I'm probably writing too much redundant stuff:</p>
  
  <pre><code>@mixin radius($topleft, $topright: $topleft, $bottomright: $topleft, $bottomleft: $topleft) {
  
      -moz-border-radius-topleft:     $topleft;
      -moz-border-radius-topright:    $topright;
      -moz-border-radius-bottomright: $bottomright;
      -moz-border-radius-bottomleft:  $bottomleft;
      -webkit-border-radius:          $topleft $topright $bottomright $bottomleft;
      border-radius:                  $topleft $topright $bottomright $bottomleft;
  
  }
  </code></pre>
  
  <p>Note the arguments can take a single value to apply for all sides, or all 4 for customization.</p>