Using colon syntax and variables in Sass

Posted by corroded on Stack Overflow See other posts from Stack Overflow or by corroded
Published on 2010-06-17T13:57:09Z Indexed on 2010/06/17 14:13 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

I am still using the old colon syntax (I prefer it more than the bracket syntax) and this particular code:

a.button-link 
  +box($main-color) 
  +border-radius(5px) 
  :background 
    :color $main-color 
  :color #fff 
  :padding 5px 

generates a warning like so:

DEPRECATION WARNING: On line 12, character 3 of '/Users/eumir/rails_apps/dxconnect/app/ stylesheets/partials/utilities/_link-styles.sass' Setting properties with = has been deprecated and will be removed in version 3.2. Use "background: $main-color" instead.

I tried that but my background color still doesn't show up. Any help on this please? Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about syntax