View Single Post
Old 12-17-2014, 04:41 PM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,137
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by EditorOne View Post
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.
theducks is offline   Reply With Quote