Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use variable in for loop as a selector?

Tags:

stylus

Is something like this possible?

for my_class_selector in _aClass _bClass _cClass _dClass _eClass ... 
    .my_class_selector
        display none

Basically I want to create a bunch of classes with similar properties...

like image 377
laggingreflex Avatar asked Feb 13 '23 04:02

laggingreflex


1 Answers

Just needed the curly braces

for my_class_selector in _aClass _bClass _cClass _dClass _eClass
    .{my_class_selector}
        display none
like image 156
laggingreflex Avatar answered Mar 25 '23 00:03

laggingreflex