helium-css icon indicating copy to clipboard operation
helium-css copied to clipboard

Support for inline stylesheets and @imports

Open juntalis opened this issue 12 years ago • 0 comments

This shouldn't really be an issue, but since github doesn't have support for feature requests:

Around the beginning of the month, I started working on adding additional functionality to helium to provide support for inline stylesheets and for resolving and processing statements like:

@import url(somefolder/another_stylesheet.css);

Unfortunately, I ran into an issue with the ajax call being pre-maturely aborting and returning blank (almost like how it would if you were attempting an unauthorized cross-domain request), and then I ended up getting too busy with work stuff to return to it. Anyways, I figured if you were interested in that functionality and had time, I'd provide what I've written thus far, since it's just been sitting in my workspace for a few weeks now. If you don't have time but are interested in the functionality, I'll probably get back around to it when things at work start to calm down.

Anyways, I've pushed what I have so far over at my fork. I didn't want to mess up the indentations again, so I wrote it in a new file as a wrapper around the existing helium object, allowing it to be loaded as:

<script src="js/helium.js" type="text/javascript"></script>
<script src="js/helium.additional.js" type="text/javascript"></script>

juntalis avatar Apr 18 '12 18:04 juntalis