What is LESS and Why to use it
Less is a superset of CSS and a pre-processor programming language, often referred as "Dynamic CSS".
- LESS syntax is modelled after traditional CSS
- LESS compiles into standard CSS3
- LESS allows you to extend your CSS with great features such as : Variables for faster maintenance, Mixins as re-usable objects, Nesting for a cleaner stylesheet structure, Math calculations with the Operators.
- Less code and more work done !
While CSS is a great language, it has its limitations.
For example, if you have a color code used multiple times in your stylesheet, you need to edit this one multiple times to update your design. Very tedious process!
LESS is great for the following reasons. :
- Allows to cut down one code and save time
- Reduce repetition (DRY) and mistakes
- It makes logical sense to break out CSS into multiple files with the feature
Every web developer or front-end UI engineer should use LESS over traditional CSS
What you will learn in this LESS video tutorial :
In the first section, you will :
- learn how to define Variables for faster maintenance.
- learn how to declare Mixins as reusable objects
- learn about Nesting for a cleaner stylesheet structure.
- learn how to perform mathematical calculations with the Operators
On a more advanced level, we will discuss about:
- Built-in functions
- Parametized and Guardes mixins
- The @import directive to include external stylesheets in one single document.
In a last chapter, you will apply what you have learned with a hand-on project.
The objectives of this course is to help you
- create smarter and cleanerer stylesheets,
- cut down on code,
- keep your code DRY (Don't Repeat Yourself) and organized.
By the end of the course :
- you will understand how to use the LESS features and compile the less stylesheets into standard CSS
- you will understand how to easily integrate mixins libraries as well as external resources such as Font Awesome and Google Font into your project.
- You will also be able to install and use the application SimpLESS to compile your less files into beautiful CSS. (SimpLESS is a GUI application for Less and Sass compilation. It is simple to learn for first-time users and it is compatible with both PC and MAC)
With this video course, learn to take your CSS to the next level and write better styling code. With several demonstrations and examples. you will see the power of the pre-processor language.
CSS training table of contents (duration : 1h39m)
- Introduction Basics free 00:00:39
- Variables 00:08:11
- Mixins 00:10:53
- Nesting 00:10:13
- Operators 00:06:03
- Introduction Advanced 00:00:48
- Parametized Mixins 00:13:01
- Guarded Mixins 00:06:11
- Built-in Functions 00:02:36
- Import Directive 00:07:23
- Project Overview 00:02:11
- Grid Layout 00:10:14
- Main Section 00:08:48
- Header 00:05:47
- Footer 00:02:17
- More 00:03:51
- Sources Filesdownload
With which software version is this tutorial compatible with?CSS
What is the required level to follow this tutorial ?beginner