@bobongida97

В чем отличие .scss и .sass?

Есть bones theme для разработки под WP, но в ней для стилей используются .scss файлы, можно ли с ними работать в gulp-sass как с обычными .sass файлами?
  • Вопрос задан
  • 425 просмотров
Решения вопроса 1
delphinpro
@delphinpro Куратор тега Sass
frontend developer
можно ли с ними работать в gulp-sass как с обычными .sass файлами?


Обычные - это как раз .scss-файлы. А .sass - устаревший синтаксис для извращенцев.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
MedVedar
@MedVedar
e-commerce developer
There are two syntaxes available for Sass. The first, known as SCSS (Sassy CSS) and used throughout this reference, is an extension of the syntax of CSS. This means that every valid CSS stylesheet is a valid SCSS file with the same meaning. In addition, SCSS understands most CSS hacks and vendor-specific syntax, such as IE’s old filter syntax. This syntax is enhanced with the Sass features described below. Files using this syntax have the .scss extension.

The second and older syntax, known as the indented syntax (or sometimes just “Sass”), provides a more concise way of writing CSS. It uses indentation rather than brackets to indicate nesting of selectors, and newlines rather than semicolons to separate properties. Some people find this to be easier to read and quicker to write than SCSS. The indented syntax has all the same features, although some of them have slightly different syntax; this is described in the indented syntax reference. Files using this syntax have the .sass extension.

sass-lang.com/documentation/file.SASS_REFERENCE.ht...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы