I recently wrote a very basic Sass loop that outputs several padding and margin utility classes. Nothing fancy, really, just a Sass map with 11 spacing values, looped over to create classes for both padding and margin on each side. …
Direct link to the article Efficient Infinite Utility Helpers Using Inline CSS Custom Properties and calc()
One of my favorite ways of adding icons to a site is by including them as data URL background images to pseudo-elements (e.g.
::after) in my CSS. This technique offers several advantages:
- They don’t require any additional HTTP requests
Tracy Rotton on (Updated on )