Completed my first #frontendmentor challenge using #parcel
There was a learning curve, particularly with regard to how it handles relative paths. But I really liked being able to use custom media queries and nested media queries!
Completed my first #frontendmentor challenge using #parcel
There was a learning curve, particularly with regard to how it handles relative paths. But I really liked being able to use custom media queries and nested media queries!
Also, I was surprised to learn that you can use a #CSS custom property as the value for an attribute in HTML, like so:
<svg class="header__toggleIcon" width="20" height="20" xmlns="http://www.w3.org/2000/svg">
<g fill="var(--toggleModeFontColor)" fill-rule="nonzero">
<path d="..." />
</g>
</svg>
I'm not sure yet why it works...
@10high SVG world is full of surprises :) By the way, when using inline SVGs you can just delete
xmlns="http://www.w3.org/2000/svg"
to save some bits.