Layout
1 month ago
Postprocessors
9 months ago
Preprocessors
1 month ago
class-block-renderer.php
11 months ago
class-blocks-parser.php
1 year ago
class-content-renderer.php
1 month ago
class-preset-variable-resolver.php
2 months ago
class-process-manager.php
1 month ago
class-rendering-context.php
1 month ago
content.css
1 year ago
content.css
56 lines
| 1 | /** |
| 2 | CSS reset for email clients for elements used in email content |
| 3 | StyleLint is disabled because some rules contain properties that linter marks as unknown (e.g. mso- prefix), but they are valid for email rendering |
| 4 | */ |
| 5 | /* stylelint-disable property-no-unknown */ |
| 6 | table, |
| 7 | td { |
| 8 | border-collapse: collapse; |
| 9 | mso-table-lspace: 0; |
| 10 | mso-table-rspace: 0; |
| 11 | } |
| 12 | |
| 13 | img { |
| 14 | border: 0; |
| 15 | height: auto; |
| 16 | -ms-interpolation-mode: bicubic; |
| 17 | line-height: 100%; |
| 18 | max-width: 100%; |
| 19 | outline: none; |
| 20 | text-decoration: none; |
| 21 | } |
| 22 | |
| 23 | p { |
| 24 | display: block; |
| 25 | margin: 0; |
| 26 | } |
| 27 | |
| 28 | h1, |
| 29 | h2, |
| 30 | h3, |
| 31 | h4, |
| 32 | h5, |
| 33 | h6 { |
| 34 | margin-bottom: 0; |
| 35 | margin-top: 0; |
| 36 | } |
| 37 | |
| 38 | /* Ensure border style is set when a block has a border */ |
| 39 | .has-border-color { |
| 40 | border-style: solid; |
| 41 | } |
| 42 | |
| 43 | /* We want ensure the same design for all email clients */ |
| 44 | ul, |
| 45 | ol { |
| 46 | /* When margin attribute is set to zero, Outlook doesn't render the list properly. As a possible workaround, we can reset only margin for top and bottom */ |
| 47 | margin-bottom: 0; |
| 48 | margin-top: 0; |
| 49 | padding: 0 0 0 40px; |
| 50 | } |
| 51 | /* Outlook was adding weird spaces around lists in some versions. Resetting vertical margin for list items solved it */ |
| 52 | li { |
| 53 | margin-bottom: 0; |
| 54 | margin-top: 0; |
| 55 | } |
| 56 |