I pusblished a new version of CSS Preprocessor (csspp) because 1.0.9 and older had a bug in the output process which would not write the commas between lists of arguments in a declaration. For example, a box-shadow can be defined as follow:
box-shadow: 3px 2px 7px #888888, 0 0 4px #008800;
Versions before 1.0.10 would skip the comma after the first color, as shown below, rendering the whole declaration useless.
box-shadow:3px 2px 7px #8880 0 4px #080;
Download right here: https://sourceforge.net/projects/csspp/files/
I just added version 1.5.0 to SourceForge.net. This newer version includes a new function that one can use to convert a URI to lowercase. This is important to call tld() because the URI is going to be compared to top level domain names that are all in lowercase.
The new function is called tld_domain_to_lowercase(). It takes a string as input and returns a copy in lowercase. The function understands encoded URIs and UTF-8 as expected by the standard.
The project also includes a new test to make sure I get all the versions bumped each time I do a new update.
P.S. I published 1.5.1 today ...
The CSS Preprocessor adds the capability to write complex expressions and functions to use in your CSS files.
One of the functions you can use is a system function named if. It is used to select one of two expressions as shown here:
if($color = white, 33px, 145px)
This says if $color represents the color white, then use 33px, otherwise use 145px.
This works great in all cases where the true and false expressions are both calculable. If one of the expressions is to generate an error, then the if() function cannot be used. In this case, you want to use the ?: operator instead.
In the ...