CloudMade/Leaflet — pull request #1065 by calvinmetcalf (2012-10-12 12:55:28+00:00)
Title: Remove external CSS files

A slightly more thought out/mature/Passes lint version of the idea of consolidating the css out of the external style sheets. What it does is:

1. moves the css files into a new CSS folder of src
2. adds a build task that does some minor minification and makes a string out of them with a new file buildCSS.js in the build directory that does that . This probably should be merged into the build.js file latter.
3. adds a new CSS namespace which adds the css file(s) to the page after first figuring out what the current script directory is and adjusting the url for the images accordingly (this was already being done for L.Icon.Default.imagePath so it is just moved up to L.CSS.imagePath with icon referencing that).
4. updated the deps in the build file, accordingly. Also fixed the tab lengths because they bothered me.

There are a couple benefits to this I believe:
* Selling leaflet to sites is going to be easier as there are some people that do not like conditional comments.
* Loading should be improved somewhat in theory as we have cut out 1-2 http requests. No idea if this will amount to much in practice.
* Going forward, slightly more nuanced conditional css is possible with feature testing. This uses the presence of document.createStyleSheet() as a proxy for lte ie8 as they are, as far as I know, more or less the same. But L.Browser.vml could be used instead, or even more targeted things for more specific problems.