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

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.

主站蜘蛛池模板: 西吉县| 珠海市| 广西| 沙坪坝区| 青河县| 石门县| 上蔡县| 上饶市| 定襄县| 铜梁县| 杭锦后旗| 固安县| 谢通门县| 镇平县| 达拉特旗| 紫金县| 修水县| 武穴市| 玛沁县| 东阿县| 沭阳县| 武汉市| 浦北县| 长子县| 潢川县| 宜城市| 云南省| 潞城市| 阳曲县| 广水市| 沙坪坝区| 昭通市| 山丹县| 桓仁| 鄯善县| 连江县| 广丰县| 永安市| 农安县| 新巴尔虎左旗| 台山市|