Sass installation

32
Syntactically Awesome Stylesheets (Awesome Rules of CSS Language)

Transcript of Sass installation

Page 1: Sass installation

  Syntactically Awesome Stylesheets(Awesome Rules of CSS Language)

Page 2: Sass installation

What is Sass?

Sass stand for Syntactically Awesome Stylesheets.Sass is a pre-processor and pre-processor is a program which used to change one type of data into another type of data.Sass is an extension of CSS3 which adds nested rules, variables, mixins, selector inheritance, and more. Sass generates well formatted CSS and makes your stylesheets easier to organize and maintain.

" Its save our time."

Page 3: Sass installation

Dependency to Install SASS◦Ruby◦Nodejs◦Git

Page 4: Sass installation

How to Install Sass?

There are a couple of ways to start using Sass:1. Application (Third party apps)2. Command line

Page 5: Sass installation

1. Application (Third party apps) There are good many applications that will get you up and running with Sass in a few minutes for Mac, Windows, and Linux.

◦Codekit (Paid)◦Compass.app (Paid, Open Source)◦LiveReload (Paid, Open Source)◦Koala (Open Source)◦Scout (Open Source)◦Prepros (Paid)

‘’ Koala and Scout are Open Source Applications. ’’

Page 6: Sass installation

2. Command lineWindows Dependencies

Before you start using Sass you will need to install Ruby. The fastest way to get Ruby on your Windows computer is to use Ruby Installer . Install Ruby’s latest version

Page 7: Sass installation

Different Ways To Install

Now, There are a couple of ways to install SASS on your system and manage it -: 1) Install with Compass (http://compass-style.org/)2) Install with Bower (http://bower.io)

Page 8: Sass installation

How to install SASS with Compass

Installing RubyStep 1 : Go to the Ruby Installer for Windows website and download the latest Ruby version – usually the first file at the top of the list (Ruby 1.9.3)

Step 2 : Open the file, choose your language, accept the license agreement, nothing special.On the next screen check the second box – Add Ruby executables to your PATH (this is important). Click Next and finalize your installation.

Page 9: Sass installation
Page 10: Sass installation

Step 3 : Open the Command Prompt.Step 4 : Here you can check if everything is okay with your Ruby installation and

ruby version. Type in : ruby –v

Page 11: Sass installation

Installing SASSStep 5 : It is time to install your preprocessor now. Go back to the Command Prompt window and type in : gem install sass

Page 12: Sass installation

Step 6 : Check if the SASS installation is working. Type in : sass –v

You should see a line starting your SASS version.

Page 13: Sass installation

What is Compass?Compass helps Sass authors write smarter stylesheets and empowers a community of designers and developers to create and share powerful frameworks. Put simply, Compass is a Sass framework, designed to make the work of styling the web smooth and efficient. Much like Rails as a web application framework for Ruby, Compass is a collection of helpful tools and battle-tested best practices for Sass.

Page 14: Sass installation

Installing CompassStep 7 : Installing Compass is a lot like installing SASSIn your Command Prompt window Type in :gem install compassand wait a bit again.

Page 15: Sass installation

Step 7 : Check if the Compass installation is working. Type in compass –v

Page 16: Sass installation

Installing Bootstrap-SassTo install bootstrap sass first run the following command in cmd : gem install bootstrap-sass

Page 17: Sass installation

And now,Compass install bootstrap –r bootstrap-sass

Page 18: Sass installation

If you want to create a new compass project with bootstrap-sass than use the following command : Compass create YourProjectName -r bootstrap-sass - -using bootstrap

Page 19: Sass installation

NoteIf sass is not install with the help of above steps, then use ->

Open cmd then write 

->gem source -a http://rubygems.org->gem install sass->sass –v->gem install compass (using to install Compass)

Page 20: Sass installation

Summery

In this way you can create a sass project with compass.

Page 21: Sass installation

Installing Sass Using Bower (A Package Manager for the web)

Page 22: Sass installation

What is Bower?Bower can manage components that contain HTML, CSS, JavaScript, fonts or even image files.Bower doesn’t concatenate or minify code or do anything else - it just installs the right versions of the packages you need and their dependencies.

Page 23: Sass installation

Dependency to Install Bower

◦Node◦npm◦git

Page 24: Sass installation

How to install SASS with Bower

Installing NodeStep 1 : Go to the https://nodejs.org/en/download/ website and download the latest Node version – usually the first file at the top of the list (Node v6.9.2)

Step 2 : Open the file, choose your language, accept the license agreement, nothing special.On the next screen check the second box – Add Node executables to your PATH (this is important). Click Next and finalize your installation.

Page 25: Sass installation
Page 26: Sass installation

Step 3 : Open the Command Prompt. Step 4 : Here you can check if everything is okay with your Node installation and node version. Type in : node -v npm -v

Page 27: Sass installation

  

Step 5 : Now Download Git (https://git-scm.com/download/win)

Page 28: Sass installation

Step 6 : Open Git Bash (its use in case of Bower).Install, bower Type in: $ npm install –g bower

Page 29: Sass installation

Step 7 : Create the folder and locate the folder path , Then, search the packages by (bower.io)Step 8 : Open git bash Step 9 : Type : $ bower install bootstrap-sass (Enter) $ bower install jquery (Enter) And many more....

Page 30: Sass installation
Page 31: Sass installation

Useful Links◦http://sass-lang.com/◦http://www.sassmeister.com/◦https://bower.io/◦http://getbootstrap.com/css/#sass◦https://www.sitepoint.com/sass-basics-the-mixin-directive/◦https://www.sitepoint.com/tag/sass-basics/◦https://www.sitepoint.com/tag/sassbasics/◦https://bower.io/◦http://thesassway.com/beginner/getting-started-with-sass-and-compass◦http://foundation.zurb.com/sites/docs/v/5.5.3/sass.html◦http://www.hongkiat.com/blog/bootstrap-and-sass/

Page 32: Sass installation

Next Presentation We will explain more about the SassCreating some useful examples with the help of Sass.