3. PARTIAL EXAM
• Contents
• Lectures 01-06
• Date
• Hold it on Saturday, 9th November 2019
OR
• Don’t hold it at all → all material will be in the final
exam
• There will be separate group polls (RO/ENG) to
decide
• Results may be different for RO vs ENG
4. C05 – SASS, SCSS, LESS
• SASS and SCSS
• SASS installation
• Compiling SASS/SCSS
to CSS
• Nesting
• Variables
• Functions
• Operators
• Mixins
• Extending and
inheritance
• Partials and imports
• Conditional statements
• SCSS responsive
example
• LESS
5. SASS & SCSS
• Syntactically Awesome Style Sheets (SASS) is a
style sheet language
• SASS is a preprocessor scripting language that
is interpreted or compiled into CSS
• SassScript is the scripting language itself
• SASS consists of two syntaxes: SASS (original)
or SCSS
6. SASS & SCSS
SCSS SASS
CSS
A CSS file isn’t a valid SASS file, however it is a valid
13. COMPILING SASS/SCSS TO CSS
• Using the Command Prompt
• SASS will now watch the “style” folder and
compile any SASS/SCSS files to CSS upon save
14. COMPILING SASS/SCSS TO CSS
• To automatically compile in Visual Studio,
install:
• Web Compiler – Visual Studio 2017
• Live Sass Compiler – Visual Studio Code
39. EXTENDING AND INHERITANCE
• Extends can take an actual, already existing
CSS class/ID and add additional styling to
create a new one
SCSS
40. PARTIALS AND IMPORTS
• Partials are external SCSS files that style certain
components of your website
• Partials can then be imported in your main SCSS
file
• Partial file names always start with an underscore
(_)
• Partial files do not get directly compiled into CSS
files
• Partial styles can be overridden in the file that
imports them
(_!_)
43. CONDITIONAL STATEMENTS
• Similar to any other programming language,
conditional statements allow you to make
decisions based on one or any number of
conditions
• Conditional statements, variables and mixins
combined are powerful tools in aiding in the
creation of responsive layouts
51. LESS
• Leaner Style Sheets (LESS) is a dynamic
preprocessor style sheet language that can be
compiled into Cascading Style Sheets (CSS)
• LESS is very similar to SASS/SCSS and will not
be covered in this course, mainly so to avoid
confusion