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

DateTime css

Discussion in 'XenForo Questions and Support' started by DSF, Oct 29, 2010.

  1. DSF

    DSF Well-Known Member

    I think I'm blind :oops:

    Where can I find the css for datetime? It shall have the same color/deco etc. as the name before and threadtitle behind.


  2. Brogan

    Brogan XenForo Moderator Staff Member

    Presumably this is on the What's New page?

    Look in the find_new_threads template and the associated thread_list_item template, the faint CSS class on this line:

    <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a><xen:if is="{$showForumLink}">,
    DSF likes this.
  3. Kier

    Kier XenForo Developer Staff Member

    The date/time section is being styled by the 'faint' class by virtue of being surrounded by <a class="faint"> (and therefore matches the selector .faint a as mentioned by Brogan above).

    In order to have it appear the same as the username and forum title, you must either remove the class="faint" from the surrounding <a> tag, or re-specify the colour in the CSS, like this:
    .discussionListItem .posterDate .DateTime
    	color: @mutedTextColor;

Share This Page