Do people realize here that classes in HTML were actually invented to hook styling info through CSS and that it's actually the approved and promoted use case by the standards body?
Writ – Opinionated, classless styles for semantic HTML
41–50 of 65 posts
Re: Writ – Opinionated, classless styles for semantic HTML
#42Earlier quoted context omitted.
Font sizes are even better if defined in PT instead of PX!
Eh, 16px = 12pt, simple 4:3 ratio, why bother with the pt unit at all?
- for container size I use % or PX
- for margins, spacing, and padding I use EM or PX
- for text sizes I use PT or %
Here's a short, good primer for typography on the web: http://www.markboulton.co.uk/journal/five-simple-steps-to-be...
Re: Writ – Opinionated, classless styles for semantic HTML
#43On the reference page https://cmcenroe.me/writ/reference.html the aside note causes a horizontal scrollbar for me. Chromium 43.0.2357.81 (64-bit) on linux.
Re: Writ – Opinionated, classless styles for semantic HTML
#44I honestly can't see why the Writ stylesheet is better than the standard html output. It seems to me that he just used a new font.
Re: Writ – Opinionated, classless styles for semantic HTML
#45ul 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 u…
Re: Writ – Opinionated, classless styles for semantic HTML
#46Earlier quoted context omitted.
Font sizes are even better if defined in PT instead of PX!
Eh, 16px = 12pt, simple 4:3 ratio, why bother with the pt unit at all?
Edit: Ok, so I'm not a web developer, so I read after it: http://www.w3.org/Style/Examples/007/units.en.html
Turns out I'm wrong about that 1px is required to be 1 device pixel. But the 3/4 rule is not universal and only applies to print. I don't know how different implementations handle this.
Re: Writ – Opinionated, classless styles for semantic HTML
#47On the reference page https://cmcenroe.me/writ/reference.html the aside note causes a horizontal scrollbar for me. Chromium 43.0.2357.81 (64-bit) on linux.
Re: Writ – Opinionated, classless styles for semantic HTML
#48Feels like a response to: http://motherfuckingwebsite.com and http://bettermotherfuckingwebsite.com But it breaks the font sizing. Also it would be cool if H1 would be smaller inside an ARTICLE than H1 outside of an article like the default setting in Safari etc. Would be good if useful defaults wouldn't be destroyed by too general css.
Re: Writ – Opinionated, classless styles for semantic HTML
#49The body font size seems tiny to me.
Re: Writ – Opinionated, classless styles for semantic HTML
#50Reminds me of a more complete version of Tacit [1]. [1] http://yegor256.github.io/tacit/