Template CSS problems

Posted by Steve H 
Template CSS problems
November 30, 2007 04:12PM
I am taking a stab at creating my own template based on the Emerald Template.

Right off the bat, the CSS is fighting me. I'm simply trying to change the default font:

{VAR default_font "Courier New", monospace}

and finding that it doesn't work. Not only that, but it seems that the font is being defined elsewhere, as grep tells me...

docs/html/phorum_docbook.css: font-family: arial,helvetica,sans-serif;
mods/bbcode/help/help.css: font-family: arial, helvetica, sans-serif;
mods/smileys/help/help.css: font-family: arial, helvetica, sans-serif;
mods/editor_tools/editor_tools.css: font-family: arial, helvetica, sans-serif;

When I disable those 3 mods, instead of reverting to the settings file, now my CSS has no font defined at all.

Any help would be appreciated.
Re: Template CSS problems
November 30, 2007 04:18PM
{VAR default_font "Courier New", monospace}
This syntax is wrong. It needs to be:
{VAR default_font "Courier New, monospace"}

This evening, we placed some first documentation for 5.2 on line. The template language is described already. Maybe it pays off to check out the template documentation (also reachable through DOCS -> DEVELOPER MANUAL -> Templates.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Template CSS problems
November 30, 2007 05:31PM
Damn, thanks for pointing that out. It worked in earlier versions, but clearly not anymore.

I still find it odd that those mods are adding their own css which doesn't use the template definitions, however my immediate problem is solved.

thanks
Re: Template CSS problems
December 01, 2007 01:04AM
Why are we setting font-family in those? Do they need to be set?

Brian - Personal Blog
Re: Template CSS problems
December 01, 2007 04:25AM
Those help pages are stand-alone pages with help info. They are not inside the Phorum content and not inheriting Phorum's css for that reason. Therefore, they have their font configured through that help.css.

The one in the editor tools is for styling text in the popup menus (help and font size). Those are GUI elements rather than content. Personally, I like them to be in a sans serif font.

The one in docs is of course not part of the Phorum application. It's only used for styling the documentation pages.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login