css - Sass store selector in variable -


i trying save selector in sass easier referencing later, syntax error.

here's i'm trying do:

$icon:  [class*="icon"]; 

you need convert string if want use variable:

$icon: '[class*="icon"]';  #{$icon} {     // stuff } 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -