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

  • 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...

主站蜘蛛池模板: 安国市| 无为县| 眉山市| 科技| 东港市| 金塔县| 南岸区| 常德市| 肃北| 桑植县| 绥芬河市| 本溪| 辽宁省| 绥宁县| 丽江市| 公安县| 灵山县| 宣武区| 望奎县| 镇雄县| 阿图什市| 天全县| 清流县| 隆化县| 靖宇县| 独山县| 南华县| 高唐县| 丽江市| 阿拉善左旗| 碌曲县| 沂南县| 岳西县| 拉孜县| 余庆县| 绥宁县| 彭水| 洛阳市| 宁陕县| 大石桥市| 武平县|