Can you change the text color of a span without affecting its :before and :after colors?
Is it possible to modify the color of the main text in a span element without altering the colors of the elements that come before and after it?
Here is an example of the component I am working with:
<span class="xp">509</span>
Below is the corresponding SCSS code for styling this component:
span.xp
font-size: 10px
color: #f5f8f9
&:after
content: "xp"
display: inline
background: $sidebar-background
font-size: 8px
font-weight: bold
padding: 1px 3px
border-radius: 2px
vertical-align: 6%