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

Sass Workshop

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Sass Workshop

RailsConf 2018 Sass Workshop

Avatar for Ilana Corson

Ilana Corson

April 22, 2018
Tweet

Other Decks in Technology

Transcript

  1. Who am I? • Ilana Corson - she/her • Associate

    Instructor at Turing School of Software and Design • Find me on all things as ICORSON3
  2. What is Sass? • Syntactically Awesome Style Sheets • An

    extension of CSS - compiled to CSS. • Coded in Ruby !! • All CSS is valid Sass but all Sass is not valid CSS. • Supports other frameworks (i.e. Bootstrap, Materialize). • Use file extension .scss (Sassy CSS. more commonly used syntax) or .sass (older syntax). • Provides variables, nesting, mixins, and selector inheritance.
  3. I am a backend developer, why should I care? •

    Industry-wide = you will see it more often. • Has a lot of features which help with ORGANIZATION! • Allow for some principles of OOP. • "Cascading" is confusing!
  4. Learning Goals • Explain why SASS is a better option

    than raw CSS. • Be able to set up SASS in a Rails project. • Understand how to create variables in SASS. • Understand how to nest elements in SASS. • Understand how to nest properties in SASS. • Break files up in a logical way.
  5. CSS Refresh • To target an element in CSS such

    as a "p" tag: p • To target a class in CSS: .class • To target an id in CSS: #id • End a CSS statement: ";"
  6. Wrap Up Questions • What does Sass stand for? •

    Why is Sass a better option than CSS? • How is a variable declared and assigned in Sass? • Why is nesting a benefit? Both at an element and property level? • How is a mixin declared and assigned in Sass?