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

Resources Style Bug

Discussion in 'Resource Manager Support' started by PASS, Jul 3, 2015.

  1. PASS

    PASS Active Member

    After I made some color changes to the default XF style, I noticed the "Article" area doesn't have any padding.

    Untitled-1.png

    Adding the CSS in red, fixes the left, right, and bottom padding but the default css for the top padding is being overridden by some other css.

    .resourceUpdate
    {
    border-bottom: none;
    border-top: 1px solid rgb(178, 178, 178);
    padding: 40px 6px 6px 6px;
    overflow: hidden; zoom: 1;
    }

    Untitled-2.png

    Any idea how to fix?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    It's being overriddden by:

    Code:
    .resourceUpdate:first-child
    That sets padding-top: 0px;
     
  3. PASS

    PASS Active Member

    What is the best way to fix that?

    Remove...
    .resourceUpdate:first-child
    padding-top: 0px;

    And edit .resourceUpdate?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    You could just edit .resourceUpdate:first-child to have the value you want. Or add your own CSS to EXTRA.css, e.g.

    Code:
    .resourceUpdate:first-child
    {
        padding-top: 6px!important;
    }
     
    PASS likes this.

Share This Page