TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

All CSS Rules as Classes

1 点作者 jjar大约 5 年前
A while ago I read something from here that was poking fun at the bootstrap utility classes. The premise was that well, since we have the utilities `mt-3` for `margin-top: 3rem`, `d-flex` for `display: flex`, why not go above and beyond? This led to them attempting to roll every single CSS style into a class. Want red text at 30px font in sans serif? Simple, just use `&lt;div class=&quot;color-ff0000 font-size-30px font-family-sans-serif&quot;&gt;`. And no need to include more than one CSS file anyway!<p>Anyway, I was wondering if anyone knew the link for the article. I want to show my coworkers (We use bootstrap 4 for some projects). I&#x27;ve already googled and searched on here to no avail. Cheers!

暂无评论

暂无评论