css - How to correct below stylus code (Selectors conditional) -
how correct below code in stylus
useshortnames = true if useshortnames [class*="mobile-",class*="m-"] else [class*="mobile-"] float: left padding-right: 20px
you can use ternary operator , interpolation here:
useshortnames = true selector = useshortnames ? '[class*="mobile-",class*="m-"]' : '[class*="mobile-"]' {selector} float: left padding-right: 20px
Comments
Post a Comment