(→PageLines LESS) |
|||
| (8 intermediate revisions by one user not shown) | |||
| Line 11: | Line 11: | ||
== PageLines LESS == | == PageLines LESS == | ||
| − | The default | + | The default constants: |
| − | * @pl-base => '' | + | * @pl-base => ''#FFFFFF'' (white) |
| − | * @pl-text => '' | + | * @pl-text => ''#000000'' (black) |
| − | * @pl-link => '' | + | * @pl-link => ''#225E9B'' (a shade of blue) |
| − | * @pl-header => '' | + | * @pl-header => ''#000000'' (black) |
| − | * @pl-footer => '' | + | * @pl-footer => ''#999999'' (a shade of gray) |
* @invert-dark => ''$this->invert()'' | * @invert-dark => ''$this->invert()'' | ||
* @invert-light => ''$this->invert('light')'' | * @invert-light => ''$this->invert('light')'' | ||
| − | * @font-size => '' | + | * @font-size => ''15px'' |
| − | * @line-height => '' | + | * @line-height => ''24px'' |
| + | |||
| + | These are the default values, you can use the <tt>filter</tt> [[pless_vars]] to over-write them. | ||
| + | |||
| + | == Source Files == | ||
| + | * The LESS Language Parser [http://phpxref.pagelines.com/nav.html?includes/less.functions.php.source.html ../includes/less.functions.php] | ||
| + | * The LESS CSS compiler [http://phpxref.pagelines.com/nav.html?includes/less.plugin.php.source.html ../includes/less.plugin.php] | ||
=== External References === | === External References === | ||
Contents |
LESS extends CSS with the use of dynamic "variables, mixins, operations, and functions".
Variables allow you to define widely used values in a single place. Then you are able to re-use them throughout the style sheet. Making global changes then becomes as easy as changing one line of code.
Mixins allow you take all of the properties of one class and simply include them as the class name in another class. It’s just like variables, but for whole classes.
Operations let you add, subtract, divide and multiply property values and colors, giving you the power to create complex relationships between properties.
Functions work in a one-to-one relationship with JavaScript and allow you to manipulate values however you want.
The default constants:
These are the default values, you can use the filter pless_vars to over-write them.