xref: /plugin/pagecss/README.md (revision 6a458d926978e44b3364ae61e8e8373d66dd839f)
1# PageCSS Dokuwiki Plugin
2
3Allows custom per-page CSS injection using `<pagecss>` blocks. Auto-supports Wrap plugin classes.
4
5## Examples/Usage
6
7Define page-specific CSS using the `<pagecss>...</pagecss>` tag:
8
9```css
10<pagecss>
11.notice {
12    background: #fff3cd;
13    color: #856404;
14    padding: 15px;
15    border-radius: 8px;
16 }
17</pagecss>
18```
19
20Then apply the class:
21
22With Wrap Plugin:
23```html
24<wrap notice>Important Notice!</wrap>
25```
26
27With raw HTML:
28```html
29<span notice>Important Notice!</span>
30```
31
32The plugin will automatically generate equivalent `.wrap_notice` styles for use with the Wrap Plugin.
33
34## Syntax
35
36Wrap your CSS block in <pagecss>...</pagecss>:
37
38```css
39.highlight { background: #e0f7fa; padding: 10px; }
40```
41
42The plugin will inject this CSS into the HTML <head> for the page.
43
44Multiple <pagecss> blocks are allowed
45.wrap_* versions are auto-generated to support Wrap Plugin
46No output is shown for <pagecss> blocks — they only inject CSS
47
48## Configuration and Settings
49
50This plugin requires no configuration if using the Wrap plugin.
51