Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Theming Perlmonks: the CSS way

by OeufMayo (Curate)
on Mar 23, 2001 at 01:01 UTC ( #66463=note: print w/replies, xml ) Need Help??

in reply to Theming Perlmonks: the CSS way

I really like this idea of being able to define your own CSS to view Perlmonks! I even think that the idea could be pushed a little further.

My idea would be to allow monks to upload their own CSS file, given a default one with all the specific classes and ids allready filled in.

A link to the user CSS could then be provided in the head of each page served (e.g.: <link type="text/css" rel="stylesheet"  ref="OeufMayo.css">)

I'm aware of the cost of disk space on the server resulting of this implementation, and that's why maybe it should be reserved for higher monks (Lev. 3/4?). I'd be more than happy to help in whatever way to achieve this idea!

my $OeufMayo = new PerlMonger::Paris({http => ''});</kbd>

Replies are listed 'Best First'.
Re: Re: Theming Perlmonks: the CSS way
by dws (Chancellor) on Mar 23, 2001 at 01:42 UTC
    One way to inch into this safely would be to start embedding <link type="text/css" rel="stylesheet" ref="/"> into pages. In the default case (the user with that node_id has no css-sheet specified), could emit a stylesheet that's appropriate for the target browser.

    A simple next step would be to offer a palette of stylesheet options, and let users choose one. The more complicated (but still relatively easy in the grand scheme of things) step would be to let monks edit theirs via user settings.

    The space requirement for user-editable stylesheets probably pales in comparison to the space eaten up by monk pictures.

Re: Theming Perlmonks: the CSS way
by darobin (Monk) on Mar 23, 2001 at 18:15 UTC

    It's true that an even simpler way to achieve this (simpler in that it requires less work) would be to provide a typical style sheet, and then allow monks to specify the link they want to use in their <link> tag. The file can then live just about anywhere... No disk space, just a simple db field.

    -- darobin

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-03-28 01:47 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (66 votes). Check out past polls.