inlinestyler icon indicating copy to clipboard operation
inlinestyler copied to clipboard

Keep styles that can't be inlined in a style tag.

Open lambacck opened this issue 10 years ago • 5 comments

Some styles can't be inlined (for instance media queries and pseudo elements). This change adds those styles to a single stylesheet which gets inserted inline just below the open body tag. This is known to at least work with the Ink email css framework by Zurb.

lambacck avatar Apr 30 '14 20:04 lambacck

I just added another commit that fixes a bug where the specificity of the selector overriding an existing style is not recorded.

lambacck avatar May 05 '14 21:05 lambacck

@lambacck Sorry for not merging this earlier - for some reason GitHub wasn't sending me emails that things were happening here. I'll do some work this weekend to get this in.

dlanger avatar Jul 31 '14 17:07 dlanger

any updates?

pySilver avatar Nov 06 '14 18:11 pySilver

This is necessary for media queries and no other alternative has it. Adding this would be really great.

slara avatar Feb 10 '15 16:02 slara

@lambacck I'm a bad person and let this languish for a long time. I've switched to requests (as you did here), pep8'ed the source, and started to add some tests...which should make it easier for me to accept PRs.

If you're still interested, it'd be great if you updated your PR to be mergable, and we could finally get this if. If not, I'll try to do it myself over the coming while.

dlanger avatar Jun 10 '15 02:06 dlanger