css-inline
css-inline copied to clipboard
High-performance library for inlining CSS into HTML 'style' attributes
An example: ```python import css_inline html = """ Test .test { padding-left: 16px; } h1 { padding: 0; } Should have padding: 0 0 0 16px; """ print(css_inline.inline(html)) # #...
I've been using an old Perl css-inliner, which is quite good, but very, very slow (yes, I mean very slow even for pure Perl). I was happy to see this...
Resolves #138
Hi! I just compiled css-inline python binding for mac osx arm64 without any problem and it works perfetly. Is there any way I cap help uploading this build as a...
The CSS inlining is removing the closing characters of single tags. E.g. - `` is replaced with `` - `` is replaced with `` This makes the library unusable in...
```html ``` To ```html ``` This is useful for font tools, e.g. https://github.com/googlefonts/picosvg/pull/60
Something like https://github.com/roverdotcom/django-inlinecss (template tag) and https://github.com/Dino16m/mailcomposer (CLI command) but simpler