-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00-intro.scss
58 lines (43 loc) · 1.7 KB
/
00-intro.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SMARTER CSS WITH SASS
// This talk will cover:
// =================================================
// * Basics of Sass
// * Using Sass with Compass and Bourbon
// * Using Sass for grids and responsive layouts
// What this talk will not cover:
// =================================================
// * Installation and Running of Sass
// * Comparison to other preprocessors such as Less or Stylus
// CSS Cons:
// =================================================
// * Lack of essential features (variables, functions...)
// * Using @import in order to use multiple css files requires additional HTTP requests
// * Not DRY
// * Hard to maintain
// What is Sass?
// =================================================
// Syntactically awesome style sheets
// Sass is an extension of CSS which adds additonal functionality such as nested rules, variables, functions, mixins, and more.
// Sass generates well-formatted CSS and makes stylesheets easier to organise and maintain.
// Sass is written in Ruby, and distributed via the Ruby package manager, RubyGems.
// Syntax!
// Benefits of Using Sass:
// =================================================
// * Improves development workflow
// * DRY Principle
// * Nesting
// * Variables
// * Operations
// * Mixins
// * Control Logic
// * File Organisation
// * Error Debugging
// ERROR EXAMPLE
// =================================================
Sass::SyntaxError in Devise/sessions#new
Showing /app/views/layouts/devise/sessions.haml where line #6 raised:
Invalid CSS after "...), margin-right": expected ";", was ": $gridGutterWi..."
(in /app/assets/stylesheets/screen.scss)
// Application Trace
app/assets/stylesheets/screen.scss:18
app/assets/stylesheets/application.scss:6