L
L
lebedev1212018-12-04 17:58:10
Sass
lebedev121, 2018-12-04 17:58:10

How to determine the width of the screen inside the function?

I want to do something like:

@function calc-size($size) {
        @if(ширина экрана < 768) {
                @return $size*1;
        } @else {
                @return $size*1.5;
        }
    
}

How can you achieve what you want in sass?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-12-05
@modestguy

@media (max-width: 768) {
   @function calc-size($size) {
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question