Awesome
Sass Workshop
Enjoy!
1. Introduction
This is a Sass Workshop intented to give you an overview on how to use it in your everyday projects along with Compass. In order to make it even more epic, this workshop contains a challenge for you to test your knowledge.
2. Resources
- Open and read the slides, I made them with love, plus they are full of relevant links like my social accounts.
- Check the challenge. This is what you are supposed to build using Sass and Compass.
- The solution of the challenge is availabe in the challenge folder.
3. Requirements
-
Install Ruby and then run
$ ruby -v
-
Install Sass and then run
$ sass -v
-
Install Compass and then run
$ compass -v
4. Set up
-
Open the terminal and create a Compass Project using:
$ compass create MyProject
You should see something like this:
-
Create an index.html file and import the stylesheets links that were output in the console:
-
Make Compass update your files every time they change by typing in the console:
$ cd ..
<br>$ compass watch MyProject
-
Create a file called style.scss within the sass folder and import it into your html file.
-
Your final project tree should look like this:<br>
-
And your final html file should look like this:
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Challenge</title>
<link href="stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
<!--[if IE]><link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" /><![endif]-->
<link href="stylesheets/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
####That's it!, you are ready to get started with the challenge.