acdh-oeaw / apis-core-rdf

APIS Core refactored
https://acdh-oeaw.github.io/apis-core-rdf/
MIT License
3 stars 3 forks source link

Indentation for CSS #1326

Open koeaw opened 2 weeks ago

koeaw commented 2 weeks ago

Re: #1324 – can we set the default indentation for CSS to 2 spaces instead of 4?

4 used to be the standard for HTML, CSS and JS "back in the day", but IME, 2 spaces is much more prevalent these days for all 3 of those. See also e.g. code examples on major CSS resources websites.

The main advantage, IMO, is having to do less horizontal scrolling, which is especially relevant once blocks/a hierarchy come into play.

I also think it would make sense to have consistency between HTML, CSS and JS, i.e. to not use 2 spaces for some of those and 4 for others.

koeaw commented 2 weeks ago

[moved to MM]