Modern CSS compressor for Mime Mail module that uses CSS parser to convert simple rules to inline style attributes, but leave rules wrapped with @media block in head. This way email template developers should be able to support:

  • email clients that ignore styles in document head
  • mobile email clients with media queries.

Requirements:

Installation:

  • Install Libraries API and Mime Mail modules if not already done.
  • Download latest stable release of PHP-CSS-Parser (tested witth 3.0.0) and unpack it to your sites/all/libraries or sites/YOUR.SITE/libraries. Directories structure should be sites/all/libraries/PHP-CSS-Parser/lib/Sabberworm
  • Disable built-in Mime Mail CSS Compressor in case it is enabled.
  • Enable this module.
  • Enjoy.
Short name
1939698