A
A
Andrey Zernov2017-05-13 10:43:41
css
Andrey Zernov, 2017-05-13 10:43:41

How to speed up writing bam classes?

I got a combat project from some cool developer for revision. The project is built with gulp+jade+scss. What caught my eye was the long bam classes in jade and even in scss files, and without nesting and ampersands!
in jade:

p.paragraph.paragraph_align_center.paragraph_size_l.

in scss:
.introductory-block__paragraph {
}
.introductory-block__text_ar{
}

It is very doubtful that all this was typed by hand. What are the ways to quickly recruit classes?
For layout I use ST3. It is desirable to find a solution for it. Plugin AllAutocomplete doesn't really help. Perhaps it needs to be configured somehow ..
But if IDEs easily solve such problems, then it makes sense for me to try them ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-05-13
@AndreyZernov

Solutions for Pug that I use myself: bemto .
There are mixins for sass here , but it seems a bit redundant to me.
It's easier than just using the entire BEM stack.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question