pagemachine/typo3-mail-css-inliner
最新稳定版本:3.2.1
Composer 安装命令:
composer require pagemachine/typo3-mail-css-inliner
包简介
CSS inliner for the TYPO3 mailer
README 文档
README
This extension integrates a CSS inliner into the TYPO3 core mailer.
Installation
This extension is installable from various sources:
-
Via Composer:
composer require pagemachine/typo3-mail-css-inliner -
From the TYPO3 Extension Repository
After installing the extension registers itself automatically, no further configuration is necessary.
Purpose
Designing mails is hard. Especially requirements like table layouts and inline styles are complicated to handle and take a lot of time to get right. This extension takes one burden off your shoulders and takes care of turning a regular stylesheet to inline styles. See our blog post about Mail styling in TYPO3 now easier.
Before:
<!doctype html> <html> <head> <title>CSS Inline Test</title> <style> body { color: #333; } h1 { font-size: 36px; } a { color: #337ab7; } </style> </head> <body> <h1>Headline</h1> <p>Content with <a href="https://example.org">link</a>.</p> </body> </html>
After:
<html> <head> <title>CSS Inline Test</title> <style> body { color: #333; } h1 { font-size: 36px; } a { color: #337ab7; } </style> </head> <body style="color: #333;"> <h1 style="font-size: 36px;">Headline</h1> <p>Content with <a href="https://example.org" style="color: #337ab7;" target="_blank">link</a>.</p> </body> </html>
Currently only <style> elements are supported, external styles via <link> are not imported.
Testing
All tests can be executed with the shipped Docker Compose definition:
docker compose run --rm app composer build
统计信息
- 总下载量: 38.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-03-20