News for hackers. Stuff that matters.
Re:CSS Variables in Firefox 31 – new syntax by tyleregeto on Wednesday July 23, 2014 @11:08AM (#8074736)
I don't get that argument. Sass manages to avoid $ conflicts while using it for both variables and mixins. Its nice clean, consistent syntax. I don't see why we need different syntax for the two. Eg:

  $myColor: #fff;

  a {
    color: $myColor;
  }

  @mixin border-radius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    -ms-border-radius: $radius;
    border-radius: $radius;
  }

  .box { @include border-radius(10px); }

There are no comments on this comment yet.