Quote:
Originally Posted by EditorOne
Another question, maybe for another thread?
What do the different colors mean in the Calibre CSS?
In general, everything before the colon is green; after the colon I get either green or orange. Does the different color suggest an error? I had thought it was distinguishing between text (green) and numbers (orange) in the definition, but with "color: black;" the word "black" is orange.
|
It is common in programming type editors to color code various parts
Keywords
arguments
comments
literals (text)
brackets
in the CSS, some arguments are
keywords: page-break-before: always rather than just a mix of values and units (a keyword): font-size: 2em;
Incomplete entries may assume the WRONG color .foo { stuff (no closing }, a missing semicolon ...)
The validator is the true test.