S
S
Stepan S.2014-12-14 01:48:32
Sass
Stepan S., 2014-12-14 01:48:32

How to write condition for SCSS/SASS import?

Example
There are two files: "styles.scss" and "_if.scss"
The file "_if.scss" contains the following code

.foo {
    background: red
}
.bar {
    background: url(bar.png)
}

In the same place most likely it is necessary to set some condition.
If it ==true, then when "_if.scss" is connected to "styles.scss", the latter will contain only styles with background: url*
Is it possible to do this?
PS By connection is meant @import "if";inside styles.scss

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question