
Explore how LESS, a CSS preprocessor, uses variables, functions, operations, and nesting to simplify building and updating large stylesheets and converting between CSS and LESS.
Discover how less simplifies CSS by using selectors, IDs, and classes to style a simple web page, contrasting before-and-after HTML with its stylesheet driven presentation.
Install Firebug in Firefox to use throughout the lessons, showing how less helps modify and control css.
Learn to access and organize your course working files by locating, copying to desktop, and saving changes, using the player's open working files button or direct DVD folder navigation.
Download the reference less file from the official site, save it locally as less.js, and note version compatibility; we will cover the server-side less site in a future session.
Enable client-side less by referencing a less file and a less.js script that compiles to css. Learn linking, extensions, and the order of less files relative to less.js.
Create your first less file and learn that less preprocesses only the parts of your stylesheet. See how less integrates with regular css to keep a simple, consistent web page.
Master how to comment in less to balance maintainability and performance, using multi-line and single-line comments to keep the final CSS lean and fast for end users.
Define variables with the @ symbol at the top of a less file to reuse values like font size and base color, enabling instant updates that propagate across the stylesheet.
Learn how to modify variable values in less, understand scope and how the last assigned value is used, and apply global and local variable usage for fonts and borders.
Identify syntax errors in less and distinguish them from logical errors. Learn common mistakes like missing the symbol before variables and using an equal sign instead of a colon.
Reuse styles with less mixins to embed one class inside another, simplifying css and reducing duplicates, while using a border radius mixin for consistent radii.
Learn how to use parametric mixins in less by passing parameters and setting default values to create flexible, reusable border radius styles.
Explore guarded mixins in less that set background and text colors based on the lightness of the input color, using parametric colors and when conditions.
Discover how to write parametric mixins in less with multiple parameters and default values, using semicolon separation. Apply min and max width constraints to keep elements within a set range.
Split a less file into multiple files and import them into one, while sharing variables across documents for consistent styles in responsive layouts.
Learn how nesting in less groups related selectors into one block and preprinted nested rules under the parent selector, making complex css easier to read and faster to write.
Learn to nest multiple selectors in less to style navigation menus, including anchors and visited states, by nesting within a parent class, maintaining indentation, and managing braces.
Explore nesting with pseudo-classes in LESS by attaching hover rules directly to anchors using the ampersand, and apply first-class selectors to nested navigation elements.
Learn how to modify less variables with math, use rem/rim-based sizing, and provide pixel fallbacks for older browsers, improving accessibility and consistency.
Explore how to use Less color functions to automate color changes, including lighten, darken, desaturate, saturate, and fade, enabling quick base color swaps and consistent hover effects.
Learn how to use built-in math functions in less, including ceil (ceiling), floor, and round, to compute font sizes and other values, avoid fractional pixels, and simplify CSS.
Discover how to compile less into css using server-side npm tools or local command line and GUI utilities, across Windows, Mac OS, and Linux.
Learn less to design consistent websites using variables, importing external files, and mixins; nest selectors and use color functions, then compile to CSS for scalable, maintainable sites.
This Writing CSS with {LESS} training course from Infinite Skills teaches you everything you need to know about this dynamic stylesheet language. This course is designed for users that already have a working knowledge of CSS.
You will start out by learning how to build {LESS} files, on the client-side and server-side. Walter will teach you how to build consistent values, including how to modify the value and scope of a variable, use Mixins, and identify Syntax errors. From there, you will learn about Nesting, and how to use Nesting with multiple selectors and pseudo-classes. This video training will also teach you about the functions and operations in {LESS}, including defined {LESS} functions in colour and math. Finally, Walter will show you how to compile {LESS} to CSS.
By the completion of this video based training course, you will have an in-depth understanding of how to write CSS with {LESS}. Working files are included, allowing you to follow along with the author throughout the lessons.