Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

A row of spades in Recently Active Threads?

by thor (Priest)
on Apr 26, 2006 at 11:08 UTC ( [id://545757]=monkdiscuss: print w/replies, xml ) Need Help??

Not that it matters much to me, but on the Recently Active Threads page in place of the row of colored boxes that are usually there (the ones that give an indication of how different colored links correlate to the associated node's age) is a row of spades. Like from playing cards. Just curious...


The only easy day was yesterday

  • Comment on A row of spades in Recently Active Threads?

Replies are listed 'Best First'.
Re: A row of spades in Recently Active Threads?
by GrandFather (Saint) on Apr 26, 2006 at 11:17 UTC

    My fault. I noticed when I changed the css that controls the colours used for the RAT colours (see RAT Style Settings) that the key didn't change to reflect my colours.

    Because of the way the coloured boxes were generated it was non-trivial to apply the user css so I changed the code to apply the css to the forground of a character. For various reasons I chose to use a spade character, but that will likely change to a filled box later today.

    DWIM is Perl's answer to Gödel

      Oh. I figured that we were on our way to adding some sort of character to designate various ages in addition to sizes, colors, etc. <grin>


      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Because of the way the coloured boxes were generated it was non-trivial to apply the user css
      Let me clarify: the problem is that the CSS specifies the text colour (AKA foreground colour), while the boxes originally depended on setting the background colour. AFAIK there's no way to tell CSS "swap foreground and background colour". Hence, in a next phase, a completely filled block character was chosen, as quite a few people weren't happy with the spades. It seems an equally important section of our population feels that way about the blocks.

        Couldn't you just have it generate two ranges of CSS classes? One for forground and one for background? They could even share the same name just one has  a.nnt-Steaming { color : #0000EE; } and the back ground is td.nnt-Steaming { background-color : #0000EE; } ... forgive the css errors if there are any. That region of CSS looks automaticaly generated, if so its just a matter of finding where its generated and making a minor addition.

        Eric Hodges
Re: A row of spades in Recently Active Threads?
by Old_Gray_Bear (Bishop) on Apr 26, 2006 at 16:02 UTC
    On the other hand, GrandFather, leave it. A row of spades is neat. I really dig spades.

    I Go Back to Sleep, Now.


      I rather agree (that's what I chose after all), but I think it doesn't have sufficient visual impact. Guess if I get a huge response to this we could make it a user selected character. :)

      DWIM is Perl's answer to Gödel
        Hi Grandfather,
        Did you change the character again? I saw spades earlier; now I see a box with 2588 in it.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://545757]
Approved by GrandFather
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-05-28 13:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found