3 ms·
Because > CSS style sheets are short. They are not much bigger than one editor window. Very few people (only professional designers, it seems) write style shee
by amptorn 9y ago
Because
> CSS style sheets are short. They are not much bigger than one editor window. Very few people (only professional designers, it seems) write style sheets longer than a hundred lines.
<https://www.w3.org/People/Bos/CSS-variables> https://www.w3.org/People/Bos/CSS-variables>
- mcintyre1994 9y agoI'm pretty skeptical of that quote: HN's CSS is pretty minimal and comes in at 174 lines: https://news.ycombinator.com/news.css https://news.ycombinator.com/news.css It seems to be based on the W3C website where apparently 90% of style sheets are <163 lines, but I'd like to see that distribution over the internet as a whole.
- jrimbault 9y agoSidenote: the html markup of HN doesn't lend itself to "clean" css (whatever that means). Hence maybe why it's bit over that 163 mark line. Nested tables inside nested tables, with styles inlined.
- mcintyre1994 9y agoTrue, but moving styles from inline or moving from tables would almost definitely add more CSS lines.
- amptorn 9y agoIt doesn't matter whether the quote is accurate now or even whether it was accurate in 2008 when it was originally written. What matters was that this formed the rationale for keeping variables out of CSS.
- mcintyre1994 9y agoAh I didn't catch it was written in 2008 before Bootstrap :) I'd say that time gap is significant though because CSS does have variables now.