Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
[SOLVED] CSS customization
answer: use conf/userstyle.css
Avatar
efege #1
Member since Jun 2007 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] CSS customization
Hi,

I'm pretty satisfied with DokuWiki's the default template, but I'd like to do some minor customizations (a font color here, a page width there, etc). In this page:

    http://wiki.splitbrain.org/wiki:stylesheets#customising_a_…

it is recommended that one should create a copy of the whole default template, and then modify the CSS files of this new template.

But, instead of modifying each CSS file, I'd prefer to have a single CSS file in which I'd gather all the rules that override those in the default template. That extra CSS file could be called for example local.css or overrides.css. It's the same concept as in local.php overriding the config definitions from dokuwiki.php.

Does DokuWiki support a mechanism like this? Any suggestions?
This post was edited on 2007-07-07, 00:31 by efege.
chi #2
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by efege:
Does DokuWiki support a mechanism like this?

Yes, you can create a file conf/userstyle.css. The CSS you put there will overwrite the CSS used by your template/plugins.

For more details refer to the following pages:
[1] http://wiki.splitbrain.org/wiki:stylesheets
[2] http://wiki.splitbrain.org/wiki:devel:css
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Avatar
efege #3
Member since Jun 2007 · 13 posts
Group memberships: Members
Show profile · Link to this post
Thanks chi

Hey, that's the same page I quoted above... I could have read it to the bottom before asking!  :blush:

Next question: does DokuWiki allow editing conf/userstyle.css using the wiki interface?
chi #4
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by efege:
Next question: does DokuWiki allow editing conf/userstyle.css using the wiki interface?
Simple Answer: No ;-).
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-23, 17:39:37 (UTC +02:00)