Answers for "how to use sass"

28

sass vs scss

/* Answer to: "sass vs scss" */

/*
  The basic difference is the syntax. While SASS has a loose syntax
  with white space and no semicolons, the SCSS resembles more to CSS.
  SASS stands for Syntactically Awesome StyleSheets. It is an
  extension of CSS that adds power and elegance to the basic
  language.
  
  There's more differences but too much for me! Fortunately, someone
  else asked the same question over in StackOverflow! Here's a link
  to their answer:
  https://stackoverflow.com/questions/5654447/whats-the-difference-between-scss-and-sass
*/
Posted by: Guest on April-18-2020
0

include sass in html

You have to use a build tool like Gulp which will convert the SASS file to CSS file , then you just have to link the CSS file in your HTML.
What’s interesting is that you don’t have to do this everytime you make a change in your SASS file. Gulp has a watch function which monitors the SASS files for changes and generate CSS file on the fly.
To use SASS with gulp , follow this tutorial - http://ryanchristiani.com/getting-started-with-gulp-and-sass/

Aditya Agarwal
Posted by: Guest on July-05-2021
0

sass dummy folder site download

Successfully installed sass-3.3.71 gem installedInstalling ri documentation for sass-3.3.7…Installing RDoc documentation for sass-3.3.7…
Posted by: Guest on January-13-2021
0

scss

sass --watch input.scss output.css
Posted by: Guest on August-11-2020

Browse Popular Code Answers by Language