The body font size seems tiny to me.
Yeah, font-size: 14px is a bad idea. It should really, really be put back to 16px (just leave the definition out!).
Writ – Opinionated, classless styles for semantic HTML
31–40 of 65 posts
Re: Writ – Opinionated, classless styles for semantic HTML
#32Why cannot unstyled document be nice by default?
Re: Writ – Opinionated, classless styles for semantic HTML
#33Re: Writ – Opinionated, classless styles for semantic HTML
#34Can we please use this as the new basic stylesheet that is used in browsers like Firefox and Chrome? Who decided that those ugly default stylesheets must be be applied to unstyled documents? Why cannot unstyled document be nice by default?
Run this on some websites and you'll see some things moving around:
document.head.insertAdjacentHTML('afterbegin', '')Re: Writ – Opinionated, classless styles for semantic HTML
#35Earlier quoted context omitted.
http://www.csszengarden.com/ is a neat example of that too: some wildly different visual designs with the same markup.
Zen Garden is pretty much the opposite of what one should do nowadays. Someone wrote some markup and sprinkled a ton of CSS hooks on top and then someone else came along and wrote the CSS. It uses these 12 IDs: css-zen-garden, design-archives, design-selection, zen-benefits, zen-explanation, zen-intro, zen-participation, zen-preamble, zen-requirements, zen-resources, zen-summary, zen-supporting And these 39 classes:…
But I always feel bad with all the CSS classes in my markup.
Back in the days I often had only But now I'm running around throwing bootstrap classes around like there is no tomorrow.
Re: Writ – Opinionated, classless styles for semantic HTML
#36umm ok but why not box-sizing? html{box-sizing:border-box} *,:after,:before{box-sizing:inherit}
Re: Writ – Opinionated, classless styles for semantic HTML
#37 ul li { list-style-type: disc; }
ul li li { list-style-type: circle; }
ul li li li { list-style-type: square; }
ol li { list-style-type: decimal; }
ol li li { list-style-type: lower-roman; }
ol li li li { list-style-type: lower-alpha; }
These are bad. Very bad. Example: uses unordered styling on the ordered inner list.A little better:
ul > li { list-style-type: disc; }
ul ul > li { list-style-type: circle; }
ul ul ul > li { list-style-type: square; }
ol > li { list-style-type: decimal; }
ol ol > li { list-style-type: lower-roman; }
ol ol ol > li { list-style-type: lower-alpha; }Re: Writ – Opinionated, classless styles for semantic HTML
#38Can we please use this as the new basic stylesheet that is used in browsers like Firefox and Chrome? Who decided that those ugly default stylesheets must be be applied to unstyled documents? Why cannot unstyled document be nice by default?
It would probably break some websites. Run this on some websites and you'll see some things moving around: document.head.insertAdjacentHTML('afterbegin', ' ')
Re: Writ – Opinionated, classless styles for semantic HTML
#39umm ok but why not box-sizing? html{box-sizing:border-box} *,:after,:before{box-sizing:inherit}
Personally I think a much better question is why change the box-sizing? I’d call it out of scope for something like this. Very seldom have I encountered a situation where I actually want border-box rather than content-box; there are normally better ways of doing things. (Truth to tell, I’ve wanted padding-box more often than border-box in recent times, but only Firefox supports it.) Ideally calc() can be used too; it…
And personally I love the other box-sizing :)