Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BEM 命名空间 or BEM namespace #19

Open
lanlin opened this issue Jun 1, 2017 · 0 comments
Open

BEM 命名空间 or BEM namespace #19

lanlin opened this issue Jun 1, 2017 · 0 comments
Labels

Comments

@lanlin
Copy link
Owner

lanlin commented Jun 1, 2017

BEM 命名规范

BEM CSS命名规范一 Quick start

BEM 命名空间推荐列表

_     // 表示一个 hack,如 ._important。

o-    // 表示一个对象(Object),如 .o-layout。

c-    // 表示一个组件(Component),指一个具体的、特定实现的 UI。如 .c-avatar。

u-    // 表示一个通用工具(Utility),如 .u-hidden。

t-    // 表示一个主题(Theme),如 .t-light。

s-    // 表示一个上下文或作用域(Scope),如 .s-cms-content。

js-   // 表示一个 JavaScript 钩子。如 .js-modal。

qa-   // 表示测试钩子

is-
has-  // 表示一种状态或条件样式。如 .is-active

详细注解

More Transparent UI Code with Namespaces

@lanlin lanlin added the H5C3 label Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant