I got a lot of css variables assigned to :root but these are not accessible inside my :before element. I'm not able to find anything on this online.
When inspecting the parent of the :before element, i see all my :root variables in the bottom of the styles panel in google dev tools. See screenshots below.
my css
&__meta {
padding: 10px 0;
margin-top: 5px;
margin-bottom: 5px;
font-size: 14px;
color: var(--text-color);
&-author {
margin-right: 15px;
}
&-primary-cat:before {
content: '';
display: inline-block;
width: 5px;
height: 5px;
background-color: var(--text-color);
border-radius: 50%;
vertical-align: middle;
margin-right: 5px;
}
}
chrome devtools parent css
chrome devtools :before css - all styles excluding the background-color are applied to the :before element as excepted

