a472df257a
Replace font size slugs with values in typography preprocessor
...
[MAILPOET-5740]
2024-01-23 16:47:48 +01:00
c4586d60e9
Move the default font family and font size settings to the theme.json
...
[MAILPOET-5740]
2024-01-23 16:47:48 +01:00
e8bb1b5ac0
Refactor font family rendering using CSS inlining
...
We don't reset font family on any level, so there is no need to
bubble the setting using a preprocessor and render the inline styles
explicitly in every block.
In this commit, I change how font-family settings are distributed/rendered
in the email renderer. In the new approach, we rely on class names defining font-family
and a generated CSS sheet with font-family definitions.
We apply the font-family CSS by inlining CSS rules for families in the later phase of
rendering after all individual blocks are processed.
[MAILPOET-5740]
2024-01-23 16:47:48 +01:00
a7aaf97070
Improve typography preprocessor to get font family value from slugs
...
[MAILPOET-5740]
2024-01-23 16:47:48 +01:00
890050fdc8
Fix font-family processing in the typography preprocessor.
...
The font-family property is not included under styles but at the top level
of block attributes.
[MAILPOET-5740]
2024-01-23 16:47:48 +01:00
9c87ec233f
Add comment about numeric values in BlocksWidthPreprocessor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
7cbc130893
Pass default font-size in email attrs in TypographyPreprocessor
...
It is convenient to always know font-size in nested blocks so that we don't
have to read it from the settings controller.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
327a23ca81
Improve typography preprocessor to distribute font color from theme.json
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
b626252b39
Add support for text decoration to typography preprocessor
2024-01-08 09:21:16 +01:00
f907f574ea
Fix block width preprocessor for blocks with percentage width
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
28a3d40bda
Fix column with calculation when missing
...
In specific cases could defining padding for columns without width looked differently in preview.
[MAILPOET-5739]
2024-01-05 11:17:46 +01:00
4b306dbca1
Remove unused constant
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
6aca73ff2e
Remove exception in width block width calculation
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
52e8fc3a12
Add exception for subtracting padding for full-width blocks
...
[MAILPOET-5688]
2023-12-21 13:04:10 +01:00
1b94347bb4
Add wrapping full-width blocks into core/column block
...
[MAILPOET-5688]
2023-12-21 13:04:10 +01:00
6e1a08d60b
Fix typo in a method name
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
5800830d71
Improve columns width calculation
...
Because there exist more variants when the column width is not defined, we needed to improve this behavior.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
1626cf2ad9
Add TypographyPreprocessor
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
1250d81670
Refactor BlocksWidth preprocessor to set string including units
...
I added pixels to calculated width for easier work with it in block rendering.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
2b69acf0d5
Add preprocessor for calculating block width
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
fe5eabfe49
Add Preprocessor for removing unwanted blocks
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
c1768fd0b2
Refactor Preprocessor to more classes
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00