- Sass and Compass Designer's Cookbook
- Bass Jobsen
- 216字
- 2021-07-16 10:56:45
Introduction
In the Using Sass interactive mode and SassScript recipe of Chapter 1, Getting started with Sass, and the Using the @debug, @warn and @error directives recipe of Chapter 2, Debugging your code, you have already read about SassScript. In this chapter, you will get a better grip on SassScript. SassScript is small set of extensions of the plain CSS property syntax. You can use SassScript to set property values or generate property or selector names.
Variables enable you to define common use values at a single place. In the first recipe of this chapter, you will get a grip on variables. The second recipe talks about using operations in SassScript to set your property values. It is followed by two recipes, which will explain in detail why and how to use variables.
The next three recipes talk about mixins. Mixins can be used to create CSS code for your output. You can use mixins to set properties, and you can also dynamically create selectors and property names. You can use SassScript inside your mixins. The parameters for your mixins should be values defined by SassScript too.
The seventh recipe discusses the @function
directive. You can use this directive to define a Sass function. Sass functions do not generate any output, but return a single value.
- 黑客攻防從入門(mén)到精通(實(shí)戰(zhàn)秘笈版)
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Unity 2020 Mobile Game Development
- JIRA 7 Administration Cookbook(Second Edition)
- Java 9 Programming Blueprints
- Web Development with Django Cookbook
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- Java Web應(yīng)用開(kāi)發(fā)技術(shù)與案例教程(第2版)
- C++程序設(shè)計(jì)基礎(chǔ)教程
- TradeStation交易應(yīng)用實(shí)踐:量化方法構(gòu)建贏家策略(原書(shū)第2版)
- 從零開(kāi)始學(xué)C語(yǔ)言
- Learning Concurrency in Python
- Java EE架構(gòu)設(shè)計(jì)與開(kāi)發(fā)實(shí)踐
- C語(yǔ)言程序設(shè)計(jì)與應(yīng)用實(shí)驗(yàn)指導(dǎo)書(shū)(第2版)
- Functional Python Programming