Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
50 lines (45 loc) · 1.53 KB
/
Copy pathstyle.css
File metadata and controls
50 lines (45 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Pele diagrams: container and fallback handling */
/* Map Pele's theme variables to the active template's palette (style.ini
placeholders), so diagrams follow the template automatically — including
templates that swap their palette for dark mode. Pele reads these variables
purely through CSS, so a palette switch re-themes rendered diagrams without
a re-render. Overrides in conf/userstyle.css load after plugin styles and
therefore win. */
.dokuwiki .pele-diagram {
--pele-bg: __background__;
--pele-fg: __text__;
--pele-muted: __text_neu__;
--pele-line: __text__;
--pele-surface: __background_alt__;
--pele-surface-alt: __background_neu__;
--pele-border: __border__;
--pele-accent: __link__;
--pele-error: __missing__;
margin: 0.5em 0;
}
/* keep the rendered SVG inside the page width */
.dokuwiki .pele-diagram svg {
max-width: 100%;
height: auto;
}
/* the raw source is the no-JavaScript fallback; hide it once rendered */
.dokuwiki .pele-diagram.pele-done .pele-source {
display: none;
}
.dokuwiki .pele-diagram pre.pele-source {
background-color: __background_alt__;
border: 1px solid __border__;
padding: 0.4em 0.6em;
overflow-x: auto;
}
/* Pele reports errors with the offending diagram source quoted */
.dokuwiki .pele-diagram .pele-error {
color: __missing__;
background-color: __background_alt__;
border: 1px solid __missing__;
border-radius: 2px;
padding: 0.4em 0.6em;
white-space: pre-wrap;
font-family: monospace;
font-size: 90%;
}