官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 江永县| 华阴市| 永仁县| 陇西县| 荃湾区| 贵德县| 类乌齐县| 灵川县| 定州市| 贞丰县| 莱西市| 元阳县| 永泰县| 长顺县| 和政县| 临江市| 博爱县| 于都县| 太白县| 丰台区| 濉溪县| 台州市| 吉林省| 隆回县| 昭觉县| 沙雅县| 和龙市| 固阳县| 娄烦县| 房产| 都安| 武威市| 揭阳市| 遵义县| 莱州市| 凌海市| 同心县| 客服| 遵义市| 微山县| 满洲里市|