Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
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:
- PHP 5.3
- Libraries API module
- Mime Mail module
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
orsites/YOUR.SITE/libraries
. Directories structure should besites/all/libraries/PHP-CSS-Parser/lib/Sabberworm
- Disable built-in Mime Mail CSS Compressor in case it is enabled.
- Enable this module.
- Enjoy.
Project information
- Module categories: Integrations, Developer Tools
- Created by Dmitriy.trt on , updated