I just read the discussion that went on about the Themes for Perlmonks Quest and I think that there might be a way to make personalized theming easy enough for users without it becoming a nightmare for admins.

This site's pages are extremely well structured, which makes them excellent candidates for styling using CSS. I believe most graphical web browsers implement a sufficient subset of CSS for it to be a workable option. Plus, it would make the pages lighter (by eliminating at least all the font tags and the bgcolor attributes). CSS (Cascading Style Sheets) are simple enough and I think almost anyone can easily learn how to use them.

On the preferences node, the user could be presented with a simple textarea containing some basic CSS code to edit (several templates could be available). All widgets types on Perlmonks would get a class attribute (eg class='rhsBox') and perhaps in some cases an id attribute too (eg id='rhsBoxInfo'), the latter allowing one to style the information box differently from the other boxes.

Once a user would have saved a personalized style sheet, that style sheet would be the one served to him through a simple link tag in the head section of each page. As an added advantage, this would make theme contribution much easier.

The main reason I'm thinking about this is less for fancy additions than for readability. I'd like to be able to truly fine tune fonts in various places, as well as some color contrasts. Making all those options available in any other way would be painful. Using simple user editable style sheets I think (hope) everyone can be happy.

-- darobin

In reply to Theming Perlmonks: the CSS way by darobin

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, details, 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, summary, 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.