Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Responsive Design High Performance

You're reading from   Responsive Design High Performance

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784390839
Length 162 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. The Good, the Bad, and the Ugly of Responsive Web Design FREE CHAPTER 2. Tweaking Your Website for Performance 3. Managing Images 4. Learning Content Management 5. The Fastest HTTP Request is No HTTP Request 6. Testing, Testing, and Testing! 7. Speeding Up Development with Design Concepts, Patterns, and Programs 8. Using Tools for Performance A. Taking the Next Steps Index

Sassy CSS, SASS, and LESS


Variables, calculations, and all sorts of fun tricks are some of the benefits made available when using SASS/SCSS.

Generally, when people talk about SASS, they'll be referring to the preprocessor and the language as a whole. The SASS preprocessor allows two syntaxes: SASS, an indented syntax, and SCSS, a CSS-like syntax.

SASS actually comes from another preprocessor, called HAML, that was designed and written by Ruby developers. Because of this, the SASS syntax is based on specific indentation and does not make use of semicolons. Take a look at this sample code to get better understanding of it. We'll compare CSS, SCSS, and SASS syntax in three examples.

CSS

Here is a piece of code that uses CSS:

.title-container {
    border-radius: 1.2em;
   -webkit-border-radius: 1.2em;
   -moz-border-radius: 1.2em;
    color: red;
    width: 100%;
    overflow: hidden;
}
.subtitle-container {
    border-radius: 1.5em;
   -webkit-border-radius: 1.5em;
   -moz-border-radius: 1.5em...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime