L
L
lavezzi12016-03-23 11:30:17
css
lavezzi1, 2016-03-23 11:30:17

Is it possible to extend block elements/modifiers in less?

For example, there is

.btn {
    display: inline-block;
    &_round {
        border-radius: 50%;
    }
}

How can you extend with a modifier?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Belenkov, 2016-03-24
@IoannGrozny

It's not very clear what you want to end up with. You can extend.

.btn:extend(.someclass) {
     display: inline-block;
    &_round {
        border-radius: 50%;
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question