It is possible to apply CSS styles to content belonging to specific sources.
To do so:
- Go to the Administration menu. In the Portal section, select Content styles, then select the Custom CSS Classes tab.
-
Create a CSS class, and bind it to the
ft:sourceIdvalue corresponding to the source to style.For example, create a
markdown_contentclass, and bind it toft:sourceId=md. -
Save and go back to the Topic Styles tab.
-
Define styles using the CSS class defined previously.
For example:
.markdown_content p { /* Makes text color red in Markdown content*/ color: red; }
In the previous example, by using the .markdown_content class, the styling only applies to content uploaded to the md source.