Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Sass and Compass for Designers
  • Table Of Contents Toc
Sass and Compass for Designers

Sass and Compass for Designers

By : Ben Frain
4.6 (35)
close
close
Sass and Compass for Designers

Sass and Compass for Designers

4.6 (35)
By: Ben Frain

Overview of this book

Table of Contents (17 chapters)
close
close
Sass and Compass for Designers
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Chapter 8. Programmatic Logic with Sass

In the last chapter, we used Compass to significantly improve the aesthetics of our design. Granted, there's still a lot of refining to do until it's something we can be proud of.

Despite this, rather than spend our remaining time tweaking existing values in the style sheets, let's demystify some of the seemingly impenetrable aspects of Sass—logic.

When it comes to writing style sheets, I believe I'm fairly pragmatic. Therefore, I am going to tell you straight away that in most instances you could get by just fine with no knowledge of the techniques we will look at in this chapter. Therefore, if you're happy to be mediocre, skip right ahead. I don't judge.

For those still reading I salute you. It means you want to be a Sass rock star. Excellent, that's the spirit. With that in mind, take a look at the amazing Ninja skills we will be using in this chapter:

  • Math calculations with Sass

  • Control directives and how to use them

  • Learning what interpolation is and...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Sass and Compass for Designers
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon