封面
版权页
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
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
Summary
Chapter 10. Using Bootstrap with Less
Dissecting Bootstrap's Less file structure
Configuring Bootstrap for your site
Building a more realistic site
Compiling the Bootstrap CSS and JavaScript
Examining Bootstrap's mixins
Dissecting Bootstrap's mixins
Dissecting Bootstrap's theme mixins
Customizing our download
Developing a workflow for using Bootstrap
Summary
Chapter 11. Abstracting CSS Frameworks with Less
Discovering what's wrong with using frameworks
Diagnosing the problem
Fixing the code
Simplifying complex styles
Summary
Chapter 12. Color Processing with Less
Introducing color management in Less
Examining color spaces and formats
Working with color functions
Color blending
Introducing palettes
Summary
Chapter 13. Animation with Less
Introducing animations
Creating a good animation
How a CSS animation works
Introducing animation types
Simplifying the animation markup with Less
Creating animated menus
Libraries using Less
Using CSS or JavaScript
Improving the animation's performance
Summary
Chapter 14. Extending and Contributing to Less
Locating the Less repositories
Finding and reporting issues in Less
Reporting bugs in the library
Contributing to the Less source
Contributing to the Less documentation
Working to coding guidelines
Summary
Appendix A. Color Functions in Less
Defining color formats
Channeling colors using Less
Operating on colors
Color blending
Index
更新时间:2021-09-03 09:38:33