in reply to Re^5: Ability to mark specific "newest nodes" nodes as read (CSS :visited)
in thread Ability to mark specific "newest nodes" nodes as read

> but then you lose the td.reply-new css styling functionality.

Not sure what you mean...

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^6: Ability to mark specific "newest nodes" nodes as read (CSS :visited)

Replies are listed 'Best First'.
Re^7: Ability to mark specific "newest nodes" nodes as read (CSS :visited)
by Danny (Chaplain) on Mar 06, 2024 at 14:49 UTC
    After you click "I've checked all of these" nodes created after that time will contain the tags td.reply-new and td.reply-new-body which can be used to style newly created nodes. For example, you can use a different background color to highlight new nodes within a thread. After you click "Clear my 'last checked' time" these tags no longer appear.
      Wow, many thanks. :)

      I'm already here for over 15 years and wasn't aware of this.

      Mainly because it's only explained in About the Newest Nodes view only in context of Newest Nodes.

      Since it doesn't apply to RAT and most monks regard NN only as poor man's version, they will not know it either.

      But it's certainly useful if one visits a thread of multiple nested posts and the new ones are highlighted

      All I needed was putting this into my Display Settings

      /* === Newest Nodes === */ td.reply-new { background-color: #FC7 } td.reply-new-body { background-color: #FBB }

      Still have to check how this plays combined with the aforementioned :visited pseudo class.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

        Still have to check how this plays combined with the aforementioned :visited pseudo class

        It won't meaningfully. The :visited status of a link is managed by the browser, and it only pertains to links you have clicked. PerlMonks knows whether it has shown you any given post/comment, even when you didn't visit it directly by clicking on a link. Where I find :visited useful is when I do a SuperSearch and get a list of results. I can easily see which hits I may have already clicked on recently.

        On that note: I just made it possible to highlight, analogously to the above, the 'new' replies in a thread when you have 'layout threads as <div>' checked in your Display Settings (as I do).

        Put the following in your CSS:

        .reply.new { background-color: #FFB }

        (Of course, you can choose the color that makes sense for your theme.)

        Today's latest and greatest software contains tomorrow's zero day exploits.