Brian
Brian

Reputation: 2829

Output browser hack in SCSS

Unfortunately, I need to use a specific browser hack on a page:

.selector { (; propery: value ;); }

However, I keep getting compilation errors when I try to compile my SCSS. I imagine there is a certain way I need to write this so it's compiled properly?

Upvotes: 1

Views: 337

Answers (1)

What you need is interpolation.

.selector {
  #{"(; "}propery: value#{" ;)"  };
}

Demo: http://sassmeister.com/gist/0a190be584097a723d5e

Upvotes: 2

Related Questions