HTML and CSS Reference
In-Depth Information
Above, we just changed a color value in a rule set, but because it was a
single-line CSS file, the entire rule set appears to have changed. This is very
misleading, and also not very readable or obvious. At first glance, it appears
that a whole rule set has been altered. But look closely and you'll see that
only #333 has been changed to #666. We can make this distinction far
more obvious by using multi-line CSS, like so:
Having said all this, I am by no means a version-control expert. I've only just
started using GitHub for inuit.css, so I'm very new to it all. Instead, I'll leave
you with Jason Cale's excellent article on the subject.
Furthermore, single-line CSS makes commenting harder. Either you end up
with one comment per rule set (which means your comments might be less
specific than had they been done per line), or you get a messy single line of
comment, then code, then comment again, as shown here:
Search WWH ::




Custom Search