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

How to compile css style rules with component/block etc.? #555

Open
lockedscope opened this issue Jan 8, 2021 · 0 comments
Open

How to compile css style rules with component/block etc.? #555

lockedscope opened this issue Jan 8, 2021 · 0 comments

Comments

@lockedscope
Copy link

lockedscope commented Jan 8, 2021

We could use bem-xjst to create html but how do we get bem like styles given below included with component and compiled?
Bem project stub contains components but i could not find a way to get my own css automatically compiled when project compiled.

So, my purpose here is to write css with below hierarchical syntax and get the correct bem css syntax generated.

https://github.com/bem/project-stub

:block(checkbox):mod(theme islands) {
    position: relative; /* fix #1538 */

    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    &:hover {
        cursor: pointer;
    }

    :block(checkbox):elem(control) {
        position: absolute;
        z-index: -1;

        margin: 0;

}
@lockedscope lockedscope changed the title How to generate css style rules automatically? How to compile css style rules with component/block etc.? Jan 8, 2021
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

No branches or pull requests

1 participant