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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

You Probably Shouldn't Be Nesting Your CSS

9 点作者 sriharis超过 11 年前

1 comment

DigitalSea超过 11 年前
This is an issue with most CSS pre-processors: they make nesting easy to use in CSS, but the generated CSS usually results in sometimes extremely long selector strings that it makes it a nightmare to override styling in your media queries. I tend to try and not nest where possible and if I do, I keep it to a maximum of two levels, anything more specific and you're creating problems and extra work for yourself.