- Sass and Compass Designer's Cookbook
- Bass Jobsen
- 223字
- 2021-07-16 10:56:43
Introduction
Sass helps you to write better, reusable, and more readable CSS. When writing, you should check any syntax and solve errors found when compiling your code. Although your CSS is valid, the compiled CSS code should be tested on different devices and browsers.
In this chapter, you will be introduced to CSS source maps that will help you find the source files of origin for the style rules of a certain HTML element in your page. You will also learn how to edit your Sass code in a browser.
Good code also contains constructive comments that make your code clearer for others. Adding comments to your code is the topic of the third recipe of this chapter.
Automated testing, as required for Test-driven Development (TDD), can be done with tools, such as Wraith (https://github.com/BBC-News/wraith) and Huxley (https://github.com/facebook/huxley). As well as these tools, you can also use style guides. Style guides show you the visual effect of your CSS code. In the fourth and fifth recipes, you can read about how to generate your style guides.
The sixth recipe describes how to use @debug
, @warn
, and @error
directives to debug your code and force the correct usage of more complex code structures.
In the last recipe of this chapter, you will get to work with SassMeister, a playground for Sass, Compass, and LibSass.
- JavaScript高效圖形編程
- Linux核心技術從小白到大牛
- 算法訓練營:入門篇(全彩版)
- Hands-On Data Structures and Algorithms with JavaScript
- AngularJS深度剖析與最佳實踐
- Bootstrap Essentials
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- JavaScript腳本特效編程給力起飛
- Java Web從入門到精通(第3版)
- 算法圖解
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- PyQt編程快速上手
- Flutter從0基礎到App上線
- Learning iOS Penetration Testing
- Mastering Magento Theme Design