Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
XP is just a number
 
PerlMonks  

A row of spades in Recently Active Threads?

by thor (Priest)
on Apr 26, 2006 at 11:08 UTC ( #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...

thor

The only easy day was yesterday

Comment on A row of spades in Recently Active Threads?
Re: A row of spades in Recently Active Threads?
by GrandFather (Cardinal) 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>

      -xdg

      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.

    OGB

      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.
        --
        jpg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2014-04-16 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls