Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Atlanta Sass - Front-end Workflow Development w...

Atlanta Sass - Front-end Workflow Development with WordPress and Sass

An awesome workflow can save you many hours, which in turn provides more freedom to spend time doing things to relax your mind.

I will cover how to start your theme development with Sass and WordPress, using Underscores as the starter theme. While this session is geared towards beginning WordPress theme designers I recommend this for anyone inquiring about Sass and it’s awesome features. Let’s Get Sassy!

The goal is to walk away with a basic understanding of:

• Using GUIs with Sass

• Sass Folder structure

• Some of Sass Features

• Variables

• Nesting

• Partials

• @mixins

• @functions

• @extends

• Control Directives

• Sass Maps

• Source Mapping using Chrome DevTools

Avatar for A.H. Web Design

A.H. Web Design

April 07, 2015
Tweet

More Decks by A.H. Web Design

Other Decks in Technology

Transcript

  1. SASS  COMPILER   Libsass   •  C++  re-­‐implementa*on   of

     the  Ruby-­‐based  Sass   compiler   •  Faster  compile  *mes,   much  faster!   Ruby  Sass   •  Ruby-­‐based  Sass   compiler   •  Typically  slower   compile  *mes,   compared  to  Libsass  
  2. SASS  SYNTAX   SCSS   •  File  extension  .scss  

      •  It  doesn’t  require  a   shiI  in  code  formaJng   •  Easily  convert  an   exis*ng  stylesheet  to   use  Sass’s  func*onality   SASS   •  File  extension  .sass     •  Indented  syntax   •  Stripped  down,  no   curly  braces  or   semicolons  
  3. CHOOSE  AN  OUTPUT  STYLE   •  Nested  (the  default)  

    ol  {      margin:  10px  0;      padding:  10px  0;  }      ol  li  {          font-­‐size:  2em;          line-­‐height:  1.4;  }          ol  li  p  {              color:  #333;  }   •  Expanded   ol  {      margin:  10px  0;      padding:  10px  0;   }       ol  li  {      font-­‐size:  2em;      line-­‐height:  1.4;   }       ol  li  p  {      color:  #333;   }  
  4. CHOOSE  AN  OUTPUT  STYLE   •  Compact     ol

     {  margin:  10px  0;   padding:  10px  0;  }   ol  li  {  font-­‐size:  2em;  line-­‐ height:  1.4;  }   ol  li  p  {  color:  #333;  }   •  Compressed   ol{margin:10px   0;padding:10px  0;}ol   li{font-­‐size:2em;line-­‐ height:1.4;}ol  li   p{color:#333;}  
  5. SOURCE  MAPS  FOR  SASS   If  you  look  in  your

     output  folder  aIer  running  that  command,  you'll  no*ce   that  a  comment  has  been  added  to  the  end  of  the  generated  CSS  file:   At  The  Command  Line  
  6. Resources   •  hBp://sass-­‐lang.com   •  hBp://thesassway.com     • 

    hBp://abookapart.com/products/sass-­‐for-­‐ web-­‐designers   •  hBp://www.sassnews.com/sassnews   •  hBp://sassmeister.com   •  hBp://thesassway.com/intermediate/using-­‐ source-­‐maps-­‐with-­‐sass