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

  • Learning Less.js
  • Alex Libby
  • 204字
  • 2021-09-03 09:38:10

Chapter 4. Working with Variables, Mixins, and Functions

So far in this book, we've built up the basics of what will become our development toolkit for working with Less and taken a whistle-stop tour through some of the syntax and concepts that are associated with Less as a CSS preprocessor. I am sure some well-known actor once said in a film somewhere, "It's time...."

Yes, it's time to get stuck with using Less! However, hold on; this chapter says it's about working with variables, functions, and the like; surely, this means we're developing in programming code, right?

Wrong. Don't worry, my friends; granted, we will look at functions, but they are nothing like the functions you might see when developing using languages such as C# or Visual Basic. Indeed, the only similarity is the name—as we will see, functions within the world of Less are more akin to using a scientific calculator than complicated code.

This is just a small part of what we will cover. Throughout this chapter, we will look at some of the building blocks of Less, including:

  • Creating and scoping variables
  • Developing simple and parametric mixins
  • Using Less functions
  • Using prebuilt libraries

Intrigued? Let's get started...

主站蜘蛛池模板: 遂溪县| 洞头县| 平定县| 高邑县| 盖州市| 雷山县| 临桂县| 布尔津县| 特克斯县| 新宾| 囊谦县| 锡林郭勒盟| 通州市| 惠安县| 康保县| 宁河县| 鲁甸县| 遵化市| 右玉县| 民县| 瑞安市| 运城市| 逊克县| 荣成市| 长葛市| 苗栗县| 河源市| 瑞金市| 霸州市| 武穴市| 民勤县| 新泰市| 晋城| 香港| 江山市| 孟连| 微山县| 防城港市| 峨眉山市| 攀枝花市| 永兴县|