Custom CSS for print format? #194
Replies: 2 comments 2 replies
-
@Jerome-thinking can you please share some cases where you would want to have custom css classes. |
Beta Was this translation helpful? Give feedback.
-
Maybe the approach is already wrong: However, just for the record: {% macro formatted_content() %}
<div class="formatted-content">
div with class ".formatted-content"
</div>
<div style="color:blueviolet;">
div with inline style (color:blueviolet;)
</div>
{% endmacro %} The css classes were defined in the print format form for the template. The print designer seems to override the print format css (maybe on save). Just add some css, go to the print designer and play around a bit. Revisit the print format form after a while: your custom css will be gone (at least this happens here). Given the power of the print designer we could replace our macros by using the builder. But still not sure... |
Beta Was this translation helpful? Give feedback.
-
When creating a new template with the print designer we still would like to add custom styles. Usually we could just place css classes in the "custom css" block in the print format form of the according template. However, with the print designer these css classes seem to be stripped from the final output. At least we could not get custom css to be applied. What is the recommended approach?
Beta Was this translation helpful? Give feedback.
All reactions