CSS PREPROCESSORS Michael and Miles. Overview What are CSS Preprocessors Why use them? What is LESS and how to use LESS example What is SASS and how to.

Slides:



Advertisements
Similar presentations
Visual Scripting of XML
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
The Future of CSS and JavaScript Today Daniel Laughland Forward Thinking.
An empirical study on the use of CSS Preprocessors Davood Mazinanian - Nikolaos Tsantalis Department of Computer Science and Software Engineering Concordia.
XHTML & CSS 2 By Trevor Adams. Last week XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Using LESS for more maintainable, semantic, and lean web sites Keith Zantow.
CS1061 C Programming Lecture 2: A Few Simple Programs A. O’Riordan, 2004.
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
HTML, XHTML, CSS, & JAVAScript ~ an introduction ~
Object Oriented CSS Creative Director Deeson Online twitter.com/graemeblackwood Graeme Blackwood.
Introduction to JavaScript Kirkwood Continuing Education © Copyright 2014, Fred McClurg All Rights Reserved.
By: Gerald Fry introducingCompass.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
CSS preprocessors What are CSS preprocessors, why do we use a CSS preprocessors, how to use a CSS preprocessor and which CSS preprocessors are being used.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Where does PHP code get executed?. Where does JavaScript get executed?
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
JavaScript Defined JavaScript Basics Definitions JavaScript is an object-oriented programming language designed for the world wide web. JavaScript code.
SASS & LESS Syntactically Awesome StyleSheets Dynamic StyleSheet Language Svetlin Nakov Technical Trainer Software University
1 CSS-PREPROCESSORS as a way to speed up the process of interfaces developing and achieve Customer goals DMITRY SHURSHILIN AUGUST 3, 2015.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
PHP OOP WEB Technologies : PHP Programming Language.
XHTML & CSS 2 By Trevor Adams. Last week XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
 HTML, CSS, JavaScript – enormously successful  SASS has all the tools we need! INTRO.
Scion Macros How to make macros for Scion The Fast and Easy Guide.
Intro to HAML By Me, Christopher Judge. What is a HAML? Known as the HTML Abstraction Markup Language. Which uses, “functions as a replacement for inline.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Getting Started with Angular 2 and TypeScript Nebraska.Code() 2016 Spencer Schneidenbach Ryvit.
By: Travis Powell and Chad Herman. About CoffeeScript The Golden Rule: o "Its just JavaScript" One-to-One Compilage into equivalent JavaScript Passes.
Britt BodinNatalie Thomson. AGENDA I. The Problems with CSS II. Introducing Preprocessors III. How They Work IV. It’s Magic. V. Advantages & Disadvantages.
An empirical study on the use of CSS Preprocessors Davood Mazinanian Nikolaos Tsantalis Department of Computer Science and Software Engineering Concordia.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
Simple theme creation using Sass
Getting Started with CSS
Programming Web Pages with JavaScript
Chapter 10 Programming Fundamentals with JavaScript
Test 2 Review Outline.
Introduction to Dynamic Web Programming
Scope and Code Generation
Concepts of HTML, CSS and Javascript
Intro to JavaScript CS 1150 Spring 2017.
THEAMING WITH SASS Bringing sassy to CSS SITRA.
Michael Robertson Yuta Takayama Google Closure Tools.
Functions Declarations, Function Expressions and IIFEs
Filezilla problems continuing
Introduction to JavaScript
CSS.
CSS PreProcessors MIS 424.
Web Systems Development (CSC-215)
Chapter 10 Programming Fundamentals with JavaScript
A second look at JavaScript
Introduction to Python
Introduction to Cascading Style Sheets (CSS)
and Program Development
CSS.
Introduction to JavaScript
C Programming Language
Presentation transcript:

CSS PREPROCESSORS Michael and Miles

Overview What are CSS Preprocessors Why use them? What is LESS and how to use LESS example What is SASS and how to use SASS example

What are CSS Preprocessors Tools for development Language  compilation  CSS Gives more functionality to CSS Dynamic style sheets CSS properties as variables Fewer lines of code

Why use preprocessors? Developers turning to toolkits Create more manageable, reusable, compact style sheets Faster development time Saves from monotony More time for creativity and back-end development Programmatic CSS features

LESS Inspired by SASS Developed by Alexis Sellier in 2009 Originally in Ruby on Rails, replaced by JavaScript Open source on GitHub Uses stylesheet.LESS extension JavaScript compiles LESS code into regular CSS on the fly variables, mix ins, operations and nested rules Nice debug feature

Variables in LESS, use symbol # – Global styles – Define once, use anywhere – Change once, update everywhere Mix-ins Classes injected into other classes Reusable snippets of code Optional parameters Nesting Gives your CSS hierarchy Stack child elements into parent element Operators

SASS Created by Hampton Catlin Further designed by Nathan Weizenbaum and Chris Eppstein Uses.SCSS or.SASS extensions Must be compiled into a CSS file Variables, if else statements, loops, mix ins, etc. 100% CSS3 compliant

Two syntaxes, who can live at this speed? Indented syntax (.SASS) – Much different from traditional CSS syntax – No curly braces or semi colons – More strict Sassy CSS (SCSS) – Superset of CSS – If you know css, already writing in SCSS – Easier to work with existing CSS Both are completely valid and neither will be depracated

Summary LESS and SASS features Dynamic style sheets Faster development Less code Reusability