Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found