L
L
laguna11322018-05-10 08:26:23
css
laguna1132, 2018-05-10 08:26:23

What does the "=" sign mean in sass?

In the project, you need to use styles from the following structures:

=body1
    font-family: OpenSans
    font-size: 28px
    font-weight: 600

    @media (max-width: $mobile)
        font-size: 24

What is it and how can I use it to set the font for an element?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
frontender, 2018-05-10
@laguna1132

sass-lang.com/documentation/file.SASS_REFERENCE.html
as I understand it, this is a mixin.
use like this:

+body1
    .elem

but this is some very old syntax. use SCSS . 2018 is in the yard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question