更新时间:2021-09-03 09:38:33
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer Support
Downloading the example code
Errata
Piracy
Questions
Chapter 1. Introducing Less
The role of HTML and CSS
The limitations of using CSS
The benefits of using CSS preprocessors
Introducing Less as a solution
Why you should use Less
Supporting CSS4 standards within Less
Summary
Chapter 2. Building a Less Development Toolkit
Choosing an IDE or editor
Compiling Less files with a standalone compiler
Compiling from the command line
Debugging Less in browsers
Other useful tools
Chapter 3. Getting Started with Less
Creating the foundation page
Downloading and installing Less
Installing Less on the client side
Installing Less on the server side
The dangers of using Less on the client side
Exploring the syntax used by Less
Compiling the code and viewing results
Using the command-line compiler
Watching for changes in Watch mode
Chapter 4. Working with Variables Mixins and Functions
Discovering variables in Less
Exploring mixins
Creating a web form
Adding basic mixins
Developing parametric mixins
Creating mixins as functions
Using external libraries
Introducing functions
Chapter 5. Inheritance Overriding and Nesting in Less
Nesting styles in Less
Inheriting and overriding styles with extend
Namespacing in Less
Lazy loading of variables in Less
Importing style sheets into Less
Avoiding code bloat
Chapter 6. Migrating Your Site to Less
Preparing for the initial jump
Creating the initial framework
Spotting low-hanging fruit
Identifying patterns in your CSS
Using prebuilt mixin libraries
Building a library of mixins
Working through a practical example
Viewing the finished article
Chapter 7. Manipulating Fonts with Less
Creating simple font mixins
Using @font-face with Less
Using a prebuilt library to handle fonts
Using variables to calculate sizes
Handling different weights
Working with @media in Less
Creating special effects using Less
Chapter 8. Media Queries with Less
Introducing media queries
The limitations of CSS
Setting client criteria
Exploring media queries
Exploring media features
Designing media queries
Using tools to resize the screen
Using prebuilt libraries
Chapter 9. Working with Less in a CMS
Introducing the WP theme structure
Preparing our environment
Creating a basic child theme
Adding support for Less in WordPress
Adding Less support using a plugin
Working with Less themes in WordPress
Automating WordPress development