• Resolved jchrusty

    (@jchrusty)


    Hi,

    it seems complianz override my global css settings for h2 and p and maybe others. So there is not the correct font-size and line-height in the cookie policies document shown. How can I avoid this and why is that done?

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @jchrusty,

    Complianz applies certain CSS rules to the Legal Documents. You can disable this document CSS entirely, if so desired, under Complianz > Settings > Use Document CSS by Complianz.

    But that would disable all document CSS from Complianz, and in your case it might suffice to simply add a few extra CSS rules to set these elements to the desired font-size and line-height.

    You could apply your styles with the CSS classes as noted below:

    
    /* titles in Complianz documents */ 
    #cmplz-document h2 {} 
    
    /* subtitles */
    #cmplz-document .subtitle {}
    
    /* text */
    #cmplz-document, #cmplz-document p, #cmplz-document span, #cmplz-document li {}
    

    Please also refer to https://complianz.io/css-classes-overview/ for a full overview of available classes.

    Let me know if I can help with this.
    Kind regards,
    Jarno

    • This reply was modified 3 years, 2 months ago by jarnovos.
    Thread Starter jchrusty

    (@jchrusty)

    Hi,

    thank you, this switch do most of the job. But I understand now your hint, because now the table 6. Platzierte Cookies lokks not so fine.

    Ist it possible to say only for the CSS classes you have posted to get the theme styles. I don’t want two places for the same css style.

    Another way is to define only the css for the table.

    What Do you think?

    Best regards

    • This reply was modified 3 years, 2 months ago by jchrusty.
    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @jchrusty,

    I will post the CSS soon here; https://complianz.io/shortcode-for-cookies/.

    This way you can disable all document CSS, and CSS for the shortcode only.

    I hope today, otherwise tomorrow,

    regards Aert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘prevent css override’ is closed to new replies.