邮政管理处
邮政 离 Sass 语法更近的未包装嵌入规则的插件 .
.phone {
&_title {
width: 500px;
@media (max-width: 500px) {
width: auto;
}
body.is_dark & {
color: white;
}
}
img {
display: block;
}
}
.title {
font-size: var(--font);
@at-root html {
--font: 16px;
}
}
将处理到:
.phone_title {
width: 500px;
}
@media (max-width: 500px) {
.phone_title {
width: auto;
}
}
body.is_dark .phone_title {
color: white;
}
.phone img {
display: block;
}
.title {
font-size: var(--font);
}
html {
--font: 16px;
}
相关插件 :
- 使用
postcss-current-selector之后 如果您想要此插件 在属性或变量值中使用当前选择器. - 使用
postcss-nested-ancestors在此之前 如果您想要此插件 以^&。 。 。 .
替代品:
- 另见
postcss-nesting,用于执行 CSSWG草案。 。 。 . postcss-nested-props类似嵌入式属性font-size。 。 。 .
邮政 巢穴由 邪恶的火星人美国的设计和工程顾问 开发工具、AI和网络安全启动。 。 。 .
文档
读取完整的文件 这里。 。 。 .