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; }'}; }
Comments
Post a Comment