tarasis.net/_drafts/cssproperties.md

25 lines
820 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: CSS Properties, or I have a problem.
tags: [webdev, css]
category: programming
---
Frontend Mentor
Ive be rattling off some Frontend Mentor challenges recently. Aiming to finish all the newbie challenges before moving onto Junior and onwards.
One thing Ive noticed is that Ive really embraced CSS properties, probably too much so :)
In my last couple of challenges Ive had upwards of 50 properties. They cover typography, Colors, positioning, styling and padding / margins.
For instance in this [Product] challenge …
The theory being that it makes it easy to retheme or to switch up details for the desktop version compared to the mobile version without having to redo X, Y or Z classes.
To me it makes sense. The code stays the same, youre just tweaking the variables passed in.