1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using @contentBackground in external PHP script

Discussion in 'XenForo Development Discussions' started by AndyB, Feb 7, 2015.

  1. AndyB

    AndyB Well-Known Member


    I'm creating an add-on which uses an external PHP script, the script is being called by XenForo in an iFrame. The script has its own CSS where I define the following:

    .wrapper {
        margin: 0 auto;
        padding: 1em 2em;
        display: inline-block;
        background-color: @contentBackground;
        border: 1px solid @primaryMedium;
        border-radius: 5px;
    The @contentBackground works properly, however the @primaryMedium does not. Can someone please explain why only the @contentBackground is working.

    Thank you.
    Last edited: Feb 7, 2015
  2. AndyB

    AndyB Well-Known Member

    I just figured out what is going on. The @contentBackground isn't working either, I just thought it was.
    Marcus likes this.
  3. Marcus

    Marcus Well-Known Member

    AndyB likes this.

Share This Page