In order to add css
styling to a span
element, I am looking to utilize only the dynamic SASS
style processor without relying on any javascript/jQuery.
The condition for applying the style should be based on the content of the span
.
For 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>
Despite my research efforts, I have not been able to find a solution yet.
I understand that it is possible to achieve this easily using jQuery or JS, however, I am determined to discover a SASS-based solution.
Any advice would be greatly appreciated! Thank you!