LESS allows variables to be defined with an @ symbol. Variable assignment is done with a colon(:).
Below table demonstrates the use of LESS variables in detail.
Below table demonstrates the use of LESS variables in detail.
| S.N. | Variables usage & Description |
|---|---|
| 1 | Overview Repetition of same value many times is usually seen and it can be avoided by the use of variables. |
| 2 | Variable Interpolation The variables can also be used in other places like selector names, property names, URLs and @import statements. |
| 3 | Variable Names We can define variables with a variable name consisting of a value. |
| 4 | Lazy Loading In lazy loading, variables can be used even though they are not declared yet. |
| 5 | Default Variables Default variable has an ability to set a variable only when its not already set. This feature is not required because variables can be easily overriden by defining them afterwards. |
No comments:
Post a Comment