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

Support no-base css classes #132

Closed
mishanga opened this issue Mar 16, 2015 · 3 comments · Fixed by #134
Closed

Support no-base css classes #132

mishanga opened this issue Mar 16, 2015 · 3 comments · Fixed by #134

Comments

@mishanga
Copy link
Member

https://github.com/FrontenderMagazine/bem-sass-modifiers/blob/master/rus.md

{ block: 'button', mods: { theme: 'red' }, elem: 'control', elemMods: { disabled: true } }
<div class="button -theme-red _control -disabled"></div>
@tadatuta
Copy link
Member

how could it coexist with ctx.mix({ block: 'b1' });?

@mishanga
Copy link
Member Author

@tadatuta в честном БЭМ-мире — никак. Но есть много ребят, которые с этим готовы жить (см. ссылку выше).
Будет как-то так: <div class="button -disabled clearfix"></div>
Здесь действительно не ясно, к какому блоку относится модификатор. Но если это ограничение понимать, то можно с ним жить. Особенно если не предполагается использование i-bem.js.

@qfox
Copy link
Member

qfox commented Mar 17, 2015

@tadatuta @mishanga Вы знаете, если это не сложно сделать, то я строго за ;-)

qfox pushed a commit to bem/bh-php that referenced this issue Apr 23, 2015
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121).
- Added `ctx.process` method (bem/bh#135).
- Add `i-bem` class to element with `js` (bem/bh#122).
- No-base modifier classes supported (bem/bh#132).
- `processBemJson` now return standart BEMJSON (bem/bh#96).

Changelog bem/bh@ee446ea
qfox pushed a commit to bem/bh-php that referenced this issue Apr 23, 2015
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121).
- Added `ctx.process` method (bem/bh#135).
- Add `i-bem` class to element with `js` (bem/bh#122).
- No-base modifier classes supported (bem/bh#132).
- `processBemJson` now return standart BEMJSON (bem/bh#96).

Changelog bem/bh@ee446ea
qfox pushed a commit to bem/bh-php that referenced this issue Apr 23, 2015
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121).
- Added `ctx.process` method (bem/bh#135).
- Add `i-bem` class to element with `js` (bem/bh#122).
- No-base modifier classes supported (bem/bh#132).
- `processBemJson` now return standart BEMJSON (bem/bh#96).

Changelog bem/bh@ee446ea
qfox pushed a commit to bem/bh-php that referenced this issue Apr 23, 2015
- Added global matcher support: `beforeEach` and `afterEach` (bem/bh#121).
- Added `ctx.process` method (bem/bh#135).
- Add `i-bem` class to element with `js` (bem/bh#122).
- No-base modifier classes supported (bem/bh#132).
- `processBemJson` now return standart BEMJSON (bem/bh#96).

Changelog bem/bh@ee446ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants