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

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Nice node, thanks eric256. Couple of minor points, the CSS for Weekly, Monthly and Daily Best also applies to the Other Users nodelet and anything else handled by an internal caching system called get_picked_nodes. Other Users however has an additional class "user-USERID" that can be used to flag via CSS specific users in the OU nodelet. Additionally the table views (and not the nodelet views) from this system now also support the style tags, as well as an additional tag 'auth-USERID' which can thus be used to make your own nodes in Best Nodes stand out. (I hope folks are ok that i used differnt classes for these two purposes, i figured it was likely they would be used differently so I kep them distinct)

My main thought with these tags was that some style guru might come up with some kind of nice color scheme for OU and other lists of info. The other thing is that there are also class="other-users-text" which is the full text at the top of the OU box, and class="other-users-blurb" which is just the randomly generated part of the blurb.

Regarding the nodelet classes, any spaces in $name are translated to underbars before the class name is created. And I mostly use it hide the headers of certain nodelets to get a "merged" effect. This is mostly useful IMO for cabal type users who often have/want lots of nodelets. Likewise its easy to change the styling of nodelet titles.

BTW, its worth saying that CSS here is a bit of a crap shoot. If folks out there would like classes created they should ask. Likewise its common nowadays to think about adding classes that _someone_ might feel useful even if we in pmdev don't. So sometimes we will be missing seemingly obviously useful classes, and sometimes there will be classes that are entirely useless. Oh well. :-)


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi

    Flux8


• Update:  
Originally i mentioned a few things that i thought should be done, and then I went and did them instead of just talking about them and now they are done, so the node got updated. So there :-)



In reply to Re: Development Changes Recently by demerphq
in thread Development Changes Recently by eric256

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (5)
    As of 2019-11-11 20:11 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Strict and warnings: which comes first?



      Results (63 votes). Check out past polls.

      Notices?