- Mastering Responsive Web Design
- Ricardo Zea
- 234字
- 2021-07-16 20:33:18
Chapter 1. Harness the Power of Sass for Responsive Web Design
Before we dive into mastering responsive web design, we need to be on the same page as far as technologies go, in our case, CSS preprocessors and, specifically, Sass.
In this book, all CSS is going to be written in Sass in SCSS format. The way we write CSS has changed; it has improved tremendously.
CSS preprocessors such as Sass, LESS, and Stylus give the web/mobile designers and developers new superpowers. Yes, I used the word superpowers because that's exactly how I felt only a few hours after using Sass for the first time, and what I used was as basic as it gets:
.navigation-bar { display: flex; li { padding: 5px 10px; } }
See the nested li
selector? Yeah, that's Sass in action. When the preceding code is compiled, this is what it looks like:
.navigation-bar { display: flex; } .navigation-bar li { padding: 5px 10px; }
Tip
Downloading the example code
You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Let's see what's in store for us in this chapter:
- 大學計算機基礎(第二版)
- C++面向對象程序設計(第三版)
- Mastering Concurrency Programming with Java 8
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- Mastering Ember.js
- Cocos2d-x游戲開發(fā):手把手教你Lua語言的編程方法
- 深入理解Django:框架內(nèi)幕與實現(xiàn)原理
- Learning Linux Binary Analysis
- 單片機應用與調(diào)試項目教程(C語言版)
- 網(wǎng)站構建技術
- Java Web從入門到精通(第2版)
- Scratch從入門到精通
- 從零開始學Python大數(shù)據(jù)與量化交易
- Learning D3.js 5 Mapping(Second Edition)
- Building UIs with Wijmo