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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -