The purpose is to apply css
style to a span
element using only dynamic SASS
style processor and without any javascript/jQuery.
The condition for applying style should be the text inside the span
.
Example:
<span>Should be green</span>
<span>Just span</span>
<span>Just span</span>
<span>Just span</span>
<span>Just span</span>
<span>Just span</span>
While researching I did not find any solution.
I know that there are ways to set it simply by using jQuery or JS, but my requirement is to find solution in sass style.
Thank's for any advice !