Is there a way to utilize the name of my css classes to specify the URL for an image they depend on? I know that using an ampersand within a selector allows you to add additional states, but can it be accessed as a string? For example:
.my-image{
background: url('images/@{&}.png');
}
Resulting in:
.my-image{
background: url('images/my-image.png');
}
Upon reflection, I realize I would also need to remove the leading period. Nonetheless, is there a way to capture the selector name as a string inside the property definitions?