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

Load extra.css at the very end of css output

Discussion in 'XenForo Suggestions' started by CyberAP, May 21, 2011.

  1. CyberAP

    CyberAP Well-Known Member

    Currently xenforo inculdes extra.css into the main css.php output and it looks like:
    <link rel="stylesheet" type="text/css" href="css.php?css=xenforo,form,public&amp;style=1&amp" />
    And there go all additional css templates, for e.x in threads we have:
    <link rel="stylesheet" type="text/css" href="css.php?css=attachment_editor,bb_code,editor_ui,message,message_user_info,quick_reply,share_page,thread_view&amp;style=1&amp" />
    The problem is that if we want to modify some design that is set in second css.php output we have to use !important, which will overwrite any css that we've set for some class, id. But if we include extra.css in the second output we don't have to do this anymore. I think it is more a bug because extra.css functionality is seriously limited as it works now.
  2. Romchik®

    Romchik® Well-Known Member

    I agree. Same problem with my styles.
    There is no sense with this template if I have to add !important to many CSS-properties.

    EXTRA.css output should occur after output of all standard CSS-templates.
  3. CyberAP

    CyberAP Well-Known Member

  4. Mike

    Mike XenForo Developer Staff Member

    No, it's in the correct forum. Nothing is working "incorrectly" and you can use !important.

    It's unlikely this will change for some technical reasons, including reduced caching, as well as the ability to override stuff as is with !important or simply more specific selectors (add "body").
  5. CyberAP

    CyberAP Well-Known Member

    Well, I think using specific selectors is ok for now, but I hope the functional of extra.css will be improved in future.

Share This Page