Table of Contents
This part defines which CSS files are loaded. Each line is defined as follow:
cssfile.css = mode
cssfile.css is your file name and
mode is one of the supported output modes as described at mode.
The stylesheet can also be a
.less file. (See LESS).
DokuWiki's CSS dispatcher is able to replace placeholders in the loaded stylesheets which are configured through the
[replacements] section in the templates
style.ini. This is especially useful for defining a color scheme once and reuse these colors in all files.
These replacements can also be used as LESS variables.
Guaranteed color placeholders
The following placeholders are the only ones that are safe to be used by plugins. All templates have to implement these at least, but are free to add more.
| ||main background color|
| ||alternative background color (also used for the theme color in the manifest)|
| ||neutral background color|
| ||border color|
| ||main text color|
| ||alternative text color|
| ||neutral text color|
| ||highlighted text color (new since Adora Belle)|
| ||the general link color (new since Greebo)|
Template authors should generally try to reuse the placeholder names of the default template.
Since Binky the location and the name of the local
style.ini is farm-friendly at
<tpl> needs to be substituted with the name of the template folder. Just create it if it doesn't exist.)
This prevents losing those changes after an upgrade. The file still needs to include each section (i.e.
[replacements]) and paths are relative to the added ini file.
[stylesheets] extra.css = all [replacements] __text__ = "#000" __site_width__ = "100%"