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

Message Timestamp Color

Discussion in 'XenForo Questions and Support' started by ZippySLC, May 14, 2011.

  1. ZippySLC

    ZippySLC Member

    Hey --

    How can I go about changing the color of the timestamp in posts? I know it uses @mutedTextColor, but changing that will change a bunch of other text that I don't want to change. I can't figure out which property group controls that text.

    Thanks in advance!
     
  2. James

    James Well-Known Member

    If you want to change just that, then add this to extra.css:
    Code:
    abbr.DateTime{
        color: #XXXXXX;
    }
    
    Replace XXXXXX with the code, or rgb() or whatever. This should change only the timestamp.
     
  3. ZippySLC

    ZippySLC Member

    Thanks for the quick reply! I did that and it's changing *some* of the timestamps. Looking at the CSS it looks like some elements aren't being called with the abbr.DateTime property.

    Check out my forum index: http://forums.njpinebarrens.com
     
  4. James

    James Well-Known Member

    The older ones are using span instead of abbr.

    Try removing the abbr.DateTime and using just .DateTime - see if that works without changing anything else.
     
  5. ZippySLC

    ZippySLC Member

    That didn't do it. Nothing shows up with a custom style.

    Why would the software give abbr.DateTime tags to some things and use a plain undecorated span for others?
     
  6. James

    James Well-Known Member

    If that didn't work, just use:
    Code:
    abbr.DateTime, span.DateTime{
    color: #XXXXXX;
    }
    
    If that doesn't work I have no idea.
     
  7. ZippySLC

    ZippySLC Member

    That did it. Thanks!!
     

Share This Page