




















I just learned that CSS now supports nested selectors! So I can write something like this and it works without using a preprocessor like SCSS:
.cal-link {
right: -18px;
top: -6px;
@media (max-width: 800px) {
right: 0;
top: -4px;
}
}
Here’s the caniuse page for more on browser support.
MDN says there are some limitations around using it with pseudo-elements like ::before though.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。