HTML and CSS Reference
In-Depth Information
There is an emerging class of tools for authoring and generating CSS
code that makes small modifications to the language and allows helpers
such as variables and selector nesting to be used. These changes remove
some of the repetition and document searching that typically come with
building and maintaining styles for a larger site.
CSS Preprocessors
To turn the written code back into code in a syntax, browsers understand
a conversion layer (preprocessor) is added as a compilation step via tools
on your local development machine or via server-side scripts.
Less
Less ( http://lesscss.org/ ) is a Ruby gem that adds the ability to include
the CSS rules from one selector into another (a mixin), selector nesting,
simple mathematical formulas, and variables that stand in for values
so that colors, sizes, and other values need to be typed only once. The
following is an example of both a variable definition and a nested rule
as written using Less:
@highlight_color: #eaa;
blockquote {
font-size: 1.4em;
a {
text-style:italic;
background-color:@highlight_color;
}
}
 
 
Search WWH ::




Custom Search