This question is not a duplicate, though it might appear so to someone not reading very carefully.
This is not a question about CSS specificity, nor is it about the !important directive (I don't think).
What I am trying to learn is this: When using a (unicode?) FontAwesome code as my 'content' property value in a ::before pseudo element, how can I set a base custom bullet for a list of items, and change each bullet icon by only changing the 'content' value?
Here is how I solved this:
(Codepen here)
And here is the result:
Explanation:
Intermediate Attempts:
Working Solution Explanation:
First we define some CSS font awesome icon variables, but we don't use them. I could have just made this a multi-line comment, but I feel defining (unused) root variable makes my intentions clearer in this case.
Next define and style the ul which acts as a container element
Style the li elements
Define a base style for Font Awesome icon bullets with a 1rem margin and an icon color of purple and set the square Facebook logo as the 'content' value using :before pseudo element. NOTE: It turns out single colon (:) works perfectly (instead of ::), though I'm not entirely sure why
For each list item I set the bullet style by selection each li applied class (email, portfolio, etc.) changing the content property value only.