Stylesheet for help files ??

Stylesheet for help files ??

by koen roggemans -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Going trough the help and doc files for xhtml-compliance, I found a few problems which could best be solved with a stylesheet.

The most important one is the positioning of some elements in these files. Now there is a cascade of <ul> tags used, to get some indent. XHTML validators don't like that at all wink

Another problem is the use of font types and sizes in the files, eg for foot notes or using courier for specific things like the emoticons.

Since there is already a stylesheet for the documentation, it would IMHO be a good idea to use the same file for both purposes. 
In the doc files, positioning is often hardcoded with e.g. <p style="margin-left: 40px;">
For usability on mobiles and pda's, that also could better be moved to a stylesheet.

Is this idea good enough to start working on a CSS-frame for the helpfiles?

Average of ratings: -
In reply to koen roggemans

Re: Stylesheet for help files ??

by Urs Hunkler -
Picture of Core developers

Hi,

Stylesheet for help files should be, they are real strangers within Moodle wink.

Ralf Hilgenstock asked for a solution some time ago. I added a JavaScript switch to the German helpfiles. If they are opened within Moodle the doc uses the selected theme CSS, if opened directly in a browser, the doc uses "docstyles.css". Perhaps you look at the files in "lang/de/docs/..." and see if you can start with that.