sass - Using irregular CSS in a .scss file -


i have funky formatting using override polymer component. it's custom variables mixin. scss not compile with. possible set chunk doesn't compiled sass way? similar jekyll raw html tag.

for example

// tag not compile sass //  --my-component-custom-mixin: {   background-color: #000;   color: #fff; };  // tag finish not compile sass // 

you use sass string interpolation (#{'...'}) escape css mixin:

selector {   --css-variable-name: #{'css-variable-value'}; } 

example:

my-view1 {   --my-component-custom-mixin: #{'{     background-color: #000;     color: #fff;   }'}; } 

demo


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -