Answer the question
In order to leave comments, you need to log in
BEM how to avoid duplicate styles?
I'm trying to make a simple BAM project using Pug + SCSS(SASS), but I have a question about duplicating styles.
Suppose we have a parent block parenBlock01 , it includes blocks block01, block02, block03
Blocks are connected to pug using mixins
in SCSS, they are connected using the @import directive
i.e. parenBlock01.scss looks like this
.parentBlock01 {}
@import '../block01/block01';
@import '../block02/block02';
@import '../block03/block03';
.parentBlock02 {}
@import '../block02/block02';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question