I'd recommend any web developer to take a look at LESS or the similar SASS.
Here's some things I use LESS for:
- Reusable variables for color and other attributes
- A mixin that properly handles the CSS to round corners for all browsers
- A mixin that will handle the different browsers to get a gradient background
- Nested styling
- darken and lighten functions to get borders and gradients a certain percentage difference from a base color
- Applying the attributes of an existing CSS class to another CSS class
The server-side can be done two ways: on-the-fly or compilation. Both options are enabled by the dotLESS framework. On-the-fly uses an HTTP handler to convert the syntax on the server as it is requested by on the client. The compilation method is a "manual" process of telling dotless compiler to actually create a CSS file that you can then reference in your page.
No comments:
Post a Comment