- INSTANT SASS CSS How-to
- Alex Libby
- 281字
- 2021-07-29 16:56:39
Preface
Imagine the following scenario:
You're an accomplished developer, working on a high profile project for a demanding client. You're normally a fairly patient kind of person, but even this client is proving a little bit too much of a challenge…when you get that phone call you dread.
"Alex…you know those buttons you kindly changed for me last week? I'm really sorry, but could we please try a different color, as the boss really doesn't like that shade of red!"
This is where you silently curse – that's more than 60 buttons, littered with browser-specific CSS prefixes; a real pain in the neck, which you could well do without, particularly as it took you a couple of hours to make the changes last time. (Yes, it's a big site, before you ask!). Sounds familiar? Wish there was another way to do this? I thought so – welcome to the world of SASS!
SASS, I hear you ask? What's this all about then? Well, I could give you the technical low-down, but it's probably better demonstrated by the use of an example. Do you remember those 60 buttons I mentioned earlier? What if you could change the color of all of those buttons in one go? Yes, you read right, all of those buttons. This is just a small part of what SASS can achieve, as a superset of CSS3. We can use the power of SASS to set a variable that you could use to change the color value set against all buttons in one go, with a single click.
Intrigued? We will look at this and more throughout this book, so let's make a start…
- Advanced Quantitative Finance with C++
- Java EE 6 企業級應用開發教程
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- PhpStorm Cookbook
- OpenResty完全開發指南:構建百萬級別并發的Web應用
- Python Data Science Cookbook
- Orleans:構建高性能分布式Actor服務
- OpenCV with Python Blueprints
- 交互式程序設計(第2版)
- Python預測分析實戰
- ASP.NET開發寶典
- Java高手是怎樣煉成的:原理、方法與實踐
- Python深度學習(第2版)
- 程序員面試金典(第6版)
- Getting Started with Windows Server Security