R
R
rhost2016-10-31 18:59:45
css
rhost, 2016-10-31 18:59:45

Is it good to use @extend everywhere?

Is it good to use @extend everywhere...
There are 5 types of buttons on a large project:

.btn{
    .....
    &-black{
        ....
    }
    &-white{
        ....
    }
    &-orange{
        ....
    }
}

How and why is it better to do it, create a class for each button and throw styles as an extend, or is it better to write classes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-11-01
@zooks

@extendneeded for different classes and placeholders.
For example, if you have the same block border design for the header and footer.
Here, just a different colorization of the same buttons. Everything has already been done correctly and @extendin this case is not required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question