问题标签 [suit-css]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
5036 浏览

css - BEM 和 SUIT CSS 命名约定的区别

BEMSUIT CSS 命名约定有什么区别?

0 投票
1 回答
171 浏览

css - SuitCSS 中响应变量的命名约定

我最近开始在我的 Sass 中使用 suitCSS 命名约定(不使用默认的 PostCSS 设置),目前还不清楚命名变量的正确方法是什么:

在组件的媒体查询中使用的变量。在官方文档中,我只看到了使用响应式实用程序的参考,但没有看到响应式变量的约定。例如,让我们看一下这段代码:

我应该使用什么变量名?$u-sm-MyComponent-marginLeft或者$sm-MyComponent-marginLeft为什么?

另一个问题是关于嵌套变量和/或伪类内部。