Syntactically Awesome StyleSheets. CSS extension that adds power and elegance to the basic language

Similar documents
Word 2007 The Ribbon, the Mini toolbar, and the Quick Access Toolbar

I - EDocman Installation EDocman component EDocman Categories module EDocman Documents Module...2

How to Share Your Google Calendar

Properties detailed info There are a few properties in Make Barcode to set for the output of your choice.

1on1 Sales Manager Tool. User Guide

The Login Page Designer

STIQuery Basics. A second example is included at the end of this document.

TRAINING GUIDE. Lucity Mobile

These tasks can now be performed by a special program called FTP clients.

Data Structure Interview Questions

REFWORKS: STEP-BY-STEP HURST LIBRARY NORTHWEST UNIVERSITY

Element Creator for Enterprise Architect

Proper Document Usage and Document Distribution. TIP! How to Use the Guide. Managing the News Page

INSERTING MEDIA AND OBJECTS

Getting Started with the Web Designer Suite

Delivering StreetLinks Orders WinTotal. Total... 2 Aurora... 6 Athena... 9

Summary. Server environment: Subversion 1.4.6

Upgrading Kaltura MediaSpace TM Enterprise 1.0 to Kaltura MediaSpace TM Enterprise 2.0

Access 2000 Queries Tips & Techniques

Lab 4. Name: Checked: Objectives:

This Friday Jan 20th at La Hacienda Recreation Center at 1:00 pm we will have our famous Technology Auction and ice cream.

Using CppSim to Generate Neural Network Modules in Simulink using the simulink_neural_net_gen command

GETTING STARTED... 3 INSTALLATION... 3 VAULT EXPRESS... 4 CONFIGURE VAULT EXPRESS... 4 CONFIGURE VAULT... 7 CONFIGURE EXACT UPLOAD FILES...

Element Creator for Enterprise Architect

Municode Website Instructions

Enabling Your Personal Web Page on the SacLink

ME Week 5 Project 2 ilogic Part 1

INSTALLING CCRQINVOICE

Class Roster. Curriculum Class Roster Step-By-Step Procedure

How to install the OverDrive app on your NOOK

Using the Swiftpage Connect List Manager

FIT 100. Lab 10: Creating the What s Your Sign, Dude? Application Spring 2002

How to Start a New Prezi & Edit It

Scroll down to New and another menu will appear. Select Folder and a new

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2

Please contact technical support if you have questions about the directory that your organization uses for user management.

AutoRun. Updated 6/13/2006 JMM. WHAT IS? Self-Help using www. Google.com

ClubRunner. Volunteers Module Guide

Creating a TES Encounter/Transaction Entry Batch

Using the Swiftpage Connect List Manager

CodeSlice. o Software Requirements. o Features. View CodeSlice Live Documentation

CSE 361S Intro to Systems Software Lab #2

Reading and writing data in files

ONLINE GRANT APPLICATION INSTRUCTIONS

MOS Access 2013 Quick Reference

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Campuses that access the SFS nvision Windows-based client need to allow outbound traffic to:

Test Pilot User Guide

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

Ascii Art Capstone project in C

Interfacing to MATLAB. You can download the interface developed in this tutorial. It exists as a collection of 3 MATLAB files.

Drupal Profile Sites for Faculty, Staff, and/or Administrators WYSIWIG Editor How-To

CLIC ADMIN USER S GUIDE

Create Your Own Report Connector

ENSC 351 software installation instructions

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Persistence and User Management

Marian Online 2 Instructor Manual 12

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2 Iterative Code Design handout Style Guidelines handout

CaseWare Working Papers. Data Store user guide

Launching Xacta 360 Marketplace AMI Guide June 2017

FAQ. Using the Thinkific Learning Platform

CMS and e-commerce Solutions. version 1.0. Please, visit us at: or contact directly by

Web of Science Institutional authored and cited papers

Center School District. SMART Board Quick Reference

OpenTouch Conversation Web

Frequently Asked Questions

Customer Self-Service Center Migration Guide

Infinity Connect Web App via Chrome Quick Guide

USO RESTRITO. SNMP Agent. Functional Description and Specifications Version: 1.1 March 20, 2015

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment with a Shared Configuration Directory

SmartPass User Guide Page 1 of 50

Tips and Tricks in Word 2000 Part II. Presented by Carla Torgerson

EBSCOhost User Guide Print/ /Save. Print, , Save, Notetaking, Export, and Cite Your Search Results. support.ebsco.com

In Outlook, how do I allow other users to view my Calendar or other folders in my Exchange mailbox?

BI Publisher TEMPLATE Tutorial

IFSP PDF Upload/Download Guidance

Firmware Upgrade Wizard v A Technical Guide

Renewal Reminder. User Guide. Copyright 2009 Data Springs Inc. All rights reserved.

Kaltura MediaSpace TM Enterprise 2.0 Requirements and Installation

TRACK CHAIRS CREATING INVITED SESSIONS AND INVITING SESSION ORGANIZER(S)

Southern York County School District Instructional Plan

Simple Regression in Minitab 1

Installing and using QGIS

Gmail and Google Drive for Rutherford County Master Gardeners

Reading the John Muir Graphic Novel with Adobe Reader XI

USER MANUAL. RoomWizard Administrative Console

MySqlWorkbench Tutorial: Creating Related Database Tables

BANNER BASICS. What is Banner? Banner Environment. My Banner. Pages. What is it? What form do you use? Steps to create a personal menu

1 Getting and Extracting the Upgrader

Dear Milestone Customer,

User Guide. Table Of Contents. Logging In. Job Search. Job Information. Site Search & Logging A Job. Customer Search. Job Dashboard.

Entering an NSERC CCV: Step by Step

Oracle Universal Records Management Oracle Universal Records Manager Adapter for Documentum Installation Guide

ClassFlow Administrator User Guide

Qualtrics Instructions

DEEP LEARNING ENVIRONMENT SETUP (WINDOWS) In this tutorial, we will setup the environment for Deep Learning in Windows using Python.

Copyrights and Trademarks

istartsmart 3.5 Upgrade - Installation Instructions

Transcription:

Syntactically Awesme StyleSheets CSS extensin that adds pwer and elegance t the basic language

Sass An extensin t CSS that adds pwer & elegance t the basic language Allws the use f variables Allws the use f nested rules Allws the use f mixins Allws the use f inline imprts and much mre... all with a fully CSS-cmpatible syntax

Mre n Sass Helps keep large stylesheets well-rganized Gets small stylesheets up and running quickly Prvides many useful functins fr manipulating clrs and ther values There are tw syntaxes available fr Sass SCSS (Sassy CSS) - an extensin f the syntax f CSS. Files using this syntax have the.scss extensin Indented syntax (r smetimes just Sass ) - prvides a mre cncise way f writing CSS. Files using this syntax have the.sass extensin

Sass syntax Either syntax can imprt files written in the ther Files can be autmatically cnverted frm ne syntax t the ther using the sass-cnvert cmmand line tl: # Cnvert Sass t SCSS $ sass-cnvert style.sass style.scss # Cnvert SCSS t Sass $ sass-cnvert style.scss style.sass

Pre-Sass Installatin Befre installing Sass, yu need t install Ruby n yur machine Windws: Use Ruby Installer -- http://rubyinstaller.rg It's a single-click installer that will get everything set up fr yu super fast. LINUX/Ubuntu: $ sud apt-get install rubygems $ sud yum install rubygems

Sass Installatin Ruby is already pre-installed n Mac At a terminal r Cmmand Prmpt: Verify Rubygem is installed - $ gem v Install Sass - $ gem install sass OR $ sud gem install sass LINUX: $ sud su -c "gem install sass" Verify Sass installatin $ sass -v

Preprcessing Stylesheets are getting larger, mre cmplex, and harder t maintain This is where a preprcessr can help Sass lets yu use features that dn't exist in CSS yet like variables, nesting, mixins, inheritance and ther nifty gdies that make writing CSS fun again

Using Sass # Run Sass frm the cmmand line $ sass input.scss utput.css # Watch a single file $ sass --watch input.scss:utput.css # Watch entire directry $ sass --watch app/scss:public/stylesheets $sass --watch./

Sublime Text plugin Install Syntax Highlighting fr Sass 1. Cntrl + Shift + P in Sublime Text 2. In the input field type "install p" 3. Chse "Package Cntrl: Install Package" 4. Enter sass then hit ENTER 5. Verify sass installatin: 1. Repeat 1 2 abve, in step 2 type list p 2. Chse Package Cntrl: List Packages. Scrll t find sass

Use wrking example t explre Sass Checkut prvided html applicatin and pen it in Sublime Text Frm the terminal: $ cd PROJECT_PATH/css/ sass --watch./ Nte style.scss This file will be used t generate style.css style.css shuld NEVER be edited. It is a generated file style.scss imprts a partial Mst f ur wrk will be dne in the imprted partial

Partials Partial Sass files cntain snippets f CSS that yu include in yur ther Sass files files This is a great way t mdularize yur CSS and help keep things easier t maintain A partial is simply a Sass file named with a leading underscre The underscre lets Sass knw that the file is nly a partial file and that it shuld nt be generated int a CSS file Sass partials are used with the @imprt directive

Imprt CSS has an imprt ptin that lets yu split yur CSS int smaller, mre maintainable prtins. The nly drawback is that each time yu use @imprt in CSS it creates anther HTTP request. Sass builds n tp f the current CSS @imprt Sass takes the file that yu want t imprt and cmbines it with the file yu're imprting int s yu can serve a single CSS file t the web brwser

Variables Think f variables as a way t stre infrmatin that yu want t reuse thrughut yur stylesheet Yu can stre things like clrs, fnt stacks, r any CSS value yu think yu'll want t reuse Sass uses the $ symbl t make smething a variable $primary-fnt-stack: "gill sans", "verdana", "arial", san-serif;

Mixins Sme things in CSS are a bit tedius t write, especially vendr prefixes that exist A mixin lets yu make grups f CSS declaratins that yu want t reuse thrughut yur site Yu can even pass in values t make yur mixin mre flexible T create a mixin yu use the @mixin directive and give it a name

Inheritance This is ne f the mst useful features f Sass Using @extend lets yu share a set f CSS prperties frm ne selectr t anther It helps keep yur Sass very DRY In ur example we're ging t create a simple series f headers fr h1 t h5

Nesting When writing HTML yu've prbably nticed that it has a clear nested and visual hierarchy CSS, n the ther hand, desn't Sass will let yu nest yur CSS selectrs in a way that fllws the same visual hierarchy f yur HTML.

Practice! Rewrite CSS and Scss cde fr table related selectrs and imprt in style.scss

Operatrs Ding math in yur CSS is very helpful Sass has a handful f standard math peratrs like +, -, *, /, and %. In ur example we're ging t d sme simple math t calculate widths fr a few elements

http://sass-lang.cm Resurces http://leveluptuts.cm/tutrials/sass-tutrials/ http://rubyinstaller.rg