A
A
Alexey Dzyuba2017-07-08 16:47:00
Sass
Alexey Dzyuba, 2017-07-08 16:47:00

How to make a similar entry in SASS?

681bcd79572d4827b71b907db7b6e4f9.PNG
There is a record. Here the media queries are written in LESS. Tried to write

@media $tablet-widths
    width: 960px

but galp swears that it incorrectly recorded the media query. So how to rewrite it in SASS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andead, 2017-07-08
@Alex_Dz

for scss:

$tablet-widths: "(max-width: 320px)";
@media #{$tablet-widths} {
  width: 960px
}

Z
zooks, 2017-07-08
@zooks

css2sass.herokuapp.com
sass-lang.com/guide

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question