HTML macro in an Excerpt macro spreads virulently...

Abteilung Gerontopsychiatrie November 30, 2021

If one innocently places an HTML macro in an Excerpt macro, and adds some CSS to the HTML macro, such as

<style> p, ul, ol {color: #3D3D3D !important; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 18px;} .bv-content-wrapper.aui-page-panel-outer-content {background-color: #FEF9F5 !important;} </style>

that style gets applied not only on the page with the macro - but EVERYWHERE; even when there is no Excerpt Include macro ANYWHERE. 

What's going on!?

Cheers 

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2021

Because your rule overwrites the existing rule for all p, ul, and ol tags on the page. The solution is to wrap whatever it is you want to style inside a classed div, then rewrite your rule to be class specific.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events