vscode-html-css icon indicating copy to clipboard operation
vscode-html-css copied to clipboard

a class after variable not avaiable

Open CMQNordic opened this issue 3 years ago • 0 comments

I have css set up to work with postcss syntax. All works fine expect that it seems like always the class after a variable is not recognized. Example. In the code bellow only boxB & boxC are recognized. Not boxA. But if the first line ($alerrtRed:...) is removed then boxA is recognized too as expected!

Can this be fixed? Additional request: add functionality to combine subclass with & as part of PostCss support. Can it be added (below it shoud generate "boxC--wide")?

.css file linked in my html: $alertRed: #da151f;

.boxA { background-color: $alertRed; }

.boxB { background-color: $alertRed; }

.boxC { background-color: $alertRed;

&--wide { width: 100px; } }

CMQNordic avatar Jan 21 '22 17:01 CMQNordic