Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: A row of spades in Recently Active Threads?

by GrandFather (Cardinal)
on Apr 26, 2006 at 11:17 UTC ( #545761=note: print w/ replies, xml ) Need Help??


in reply to A row of spades in Recently Active Threads?

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


Comment on Re: A row of spades in Recently Active Threads?
Re^2: A row of spades in Recently Active Threads?
by xdg (Monsignor) on Apr 26, 2006 at 13:17 UTC

    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.

Re^2: A row of spades in Recently Active Threads?
by bart (Canon) on Apr 27, 2006 at 08:56 UTC
    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

        That is/was one of the possibilities, but required a better understanding of the code and would require a larger change that was more prone to errors. For example, the code would have to accommodate a user that supplied the css in a different order or that used different capitilisation. Think "parsing HTML" and processing user input ("when you make it fool proof, they make better fools").

        It could have been done that way (still can), but the road looked bumpier.


        DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-09-21 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls