P
P
Pavel_202021-02-02 19:30:59
Sass
Pavel_20, 2021-02-02 19:30:59

Is it correct to use mixins in this way?

Salute to all!
I wondered if it was correct to use mixins in this way (without arguments)?

@mixin flex {
    display: flex;
    justify-content: space-between;
}
@mixin center {
    display: flex;
    justify-content: center;
    align-items: center;
}
@mixin column {
    display: flex;
    flex-direction: column;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
inkShio, 2021-02-02
@inkShio

1. Open the SASS/SCSS
documentation 2. View examples
3. See the answer to your question directly in the first example.
4. Rejoice.

A
andead, 2021-02-02
@andead

Certainly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question