skip to Main Content

How to set SCSS Variable by selector – Html

I try to set different background color to namespaces, for that I use css variables and classes like this CSS body.workspace { $backgroundColor: #f1f4fa !default; &.admin { $backgroundColor: #e4daec; } } HTML <body class="workspace #{namespace}"> ... </body> And namespace is…

VIEW QUESTION

calc expression in SASS – CSS

In an SCSS file, I have this line of code: @return calc((#{$span-width} / #{$container}) * 100%); And it produces this error: Undefined operation "-1 * calc((3 / 14.75) * 100%)". I don't understand where the -1 is coming from. What's…

VIEW QUESTION
Back To Top
Search