- 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...
- 零點起飛學Xilinx FPG
- 新媒體跨界交互設計
- Cortex-M3 + μC/OS-II嵌入式系統開發入門與應用
- 極簡Spring Cloud實戰
- 數字邏輯(第3版)
- VCD、DVD原理與維修
- CC2530單片機技術與應用
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- Machine Learning with Go Quick Start Guide
- 面向對象分析與設計(第3版)(修訂版)
- BeagleBone Robotic Projects
- 單片機技術及應用
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- Intel FPGA權威設計指南:基于Quartus Prime Pro 19集成開發環境
- 筆記本電腦維修技能實訓