Debian Codegraph @

docs/src/js/material-extra-3rdparty.js

raw
1 // MathJax configuration
2
3 if (!('mathjaxConfig' in window)) {
4 window.MathJax = {
5 tex: {
6 inlineMath: [["\\(", "\\)"]],
7 displayMath: [["\\[", "\\]"]],
8 processEscapes: true,
9 processEnvironments: true,
10 tagSide: "right",
11 tagIndent: ".8em",
12 multlineWidth: "85%",
13 tags: "ams"
14 },
15 options: {
16 ignoreHtmlClass: ".*",
17 processHtmlClass: "arithmatex"
18 }
19 }
20 }
21
22 if (!('mermaidConfig' in window)) {
23 // Our loader looks for `mermaidConfig` and will load the the appropriate
24 // configuration based on our current scheme: light, dark, etc.
25 window.mermaidConfig = {
26 slate: {
27 startOnLoad: false,
28 theme: "base",
29 themeCSS: "\
30 * {\
31 --drac-page-bg: hsl(233, 15%, 23%);\
32 --drac-white-fg: hsl(60, 30%, 96%);\
33 --drac-purple-fg: hsl(265, 89%, 78%);\
34 --drac-purple-bg: hsl(265, 25%, 39%);\
35 --drac-yellow-fg: hsl(65, 92%, 76%);\
36 --drac-blue-fg: hsl(225, 27%, 51%);\
37 }\
38 \
39 /* General */\
40 [id^='_diagram'] {\
41 background-color: var(--drac-page-bg);\
42 }\
43 \
44 /* Entity Relationship */\
45 rect.relationshipLabelBox {\
46 opacity: 0.75 !important;\
47 fill: var(--drac-purple-bg) !important;\
48 }\
49 defs marker#ZERO_OR_MORE_END circle {\
50 fill: var(--drac-page-bg) !important;\
51 stroke: var(--drac-purple-fg) !important;\
52 }\
53 defs marker#ZERO_OR_MORE_END path {\
54 stroke: var(--drac-purple-fg) !important;\
55 }\
56 defs marker#ZERO_OR_MORE_START circle{\
57 fill: var(--drac-page-bg) !important;\
58 stroke: var(--drac-purple-fg) !important;\
59 }\
60 defs marker#ZERO_OR_MORE_START path {\
61 stroke: var(--drac-purple-fg) !important;\
62 }\
63 defs marker#ONLY_ONE_START path {\
64 stroke: var(--drac-purple-fg) !important;\
65 }\
66 defs marker#ONLY_ONE_END path {\
67 stroke: var(--drac-purple-fg) !important;\
68 }\
69 defs marker#ZERO_OR_ONE_START path {\
70 stroke: var(--drac-purple-fg) !important;\
71 }\
72 defs marker#ZERO_OR_ONE_END path {\
73 stroke: var(--drac-purple-fg) !important;\
74 }\
75 defs marker#ONE_OR_MORE_START path {\
76 stroke: var(--drac-purple-fg) !important;\
77 }\
78 defs marker#ONE_OR_MORE_END path {\
79 stroke: var(--drac-purple-fg) !important;\
80 }\
81 \
82 /* Flowchart */\
83 .labelText,\
84 :not(.branchLabel) > .label text {\
85 fill: var(--drac-purple-fg);\
86 }\
87 .edgeLabel text {\
88 fill: var(--drac-purple-fg) !important;\
89 }\
90 .edgeLabel rect {\
91 opacity: 0.75 !important;\
92 fill: var(--drac-purple-bg) !important;\
93 }\
94 \
95 .grey rect.label-container { \
96 fill: var(--drac-purple-bg) !important;\
97 stroke: var(--drac-purple-fg) !important;\
98 } \
99 /* Sequence */\
100 line[id^='actor'] {\
101 stroke: var(--drac-blue-fg);\
102 }\
103 .noteText {\
104 fill: var(--drac-yellow-fg);\
105 }\
106 \
107 /* Gantt */\
108 .sectionTitle {\
109 fill: var(--drac-purple-fg) !important;\
110 }\
111 \
112 .grid .tick line {\
113 stroke: var(--drac-blue-fg) !important;\
114 }\
115 \
116 .grid .tick text {\
117 fill: var(--drac-purple-fg);\
118 }\
119 \
120 /* Class Diagram */\
121 .statediagram-state rect.divider {\
122 fill: transparent !important;\
123 }\
124 \
125 /* State Diagram */\
126 .stateGroup circle[style$=\"fill: black;\"] {\
127 fill: var(--drac-purple-bg) !important;\
128 stroke: var(--drac-purple-bg) !important;\
129 }\
130 \
131 .stateGroup circle[style$=\"fill: white;\"] {\
132 fill: var(--drac-purple-bg) !important;\
133 stroke: var(--drac-purple-fg) !important;\
134 }\
135 \
136 .stateGroup .composit {\
137 fill: var(--drac-page-bg);\
138 }\
139 /* Pie */\
140 text.slice {\
141 fill: var(--drac-white-fg) !important;\
142 }\
143 /* Git Graph */\
144 .commit-bullets .commit-reverse,\
145 .commit-bullets .commit-merge, \
146 .commit-bullets .commit-highlight-inner {\
147 fill: var(--drac-page-bg) !important;\
148 stroke: var(--drac-page-bg) !important;\
149 }\
150 ",
151 themeVariables: {
152 darkMode: true,
153 background: "#323443",
154 mainBkg: "#604b7d",
155 textColor: "#bf95f9",
156 lineColor: "#bf95f9",
157 errorBkgColor: "#802c2c",
158 errorTextColor: "#ff5757",
159 primaryColor: "#604b7d",
160 primaryTextColor: "#bf95f9",
161 primaryBorderColor: "#bf95f9",
162 secondaryColor: "#297d3e",
163 secondaryTextColor: "#52fa7c",
164 secondaryBorderColor: "#52fa7c",
165 tertiaryColor: "#303952",
166 tertiaryTextColor: "#6071a4",
167 tertiaryBorderColor: "#6071a4",
168 noteBkgColor: "#797d45",
169 noteTextColor: "#f1fa89",
170 noteBorderColor: "#f1fa89",
171 edgeLabelBackground: "#604b7d",
172 edgeLabelText: "#604b7d",
173
174 actorLineColor: "#6071a4",
175
176 activeTaskBkgColor: "#803d63",
177 activeTaskBorderColor: "#ff7ac6",
178 doneTaskBkgColor: "#297d3e",
179 doneTaskBorderColor: "#52fa7c",
180 critBkgColor: "#802c2c",
181 critBorderColor: "#ff5757",
182 taskTextColor: "#bf95f9",
183 taskTextOutsideColor: "#bf95f9",
184 taskTextLightColor: "#bf95f9",
185 sectionBkgColor: "#bf95f9b3",
186 sectionBkgColor2: "#bf95f966",
187 altSectionBkgColor: "#323443",
188 todayLineColor: "#ff7ac6",
189 gridColor: "#6071a4",
190 defaultLinkColor: "#8be8fd",
191
192 altBackground: "#bf95f9",
193
194 classText: "#bf95f9",
195
196 fillType0: "#406080",
197 fillType1: "#46747f",
198 fillType2: "#297d3e",
199 fillType3: "#805c36",
200 fillType4: "#803d63",
201 fillType5: "#604b7d",
202 fillType6: "#802c2c",
203 fillType7: "#797d45",
204 fillType8: "#7c7c79",
205
206 git0: "#ff5555",
207 git1: "#ffb86c",
208 git2: "#f1fa8c",
209 git3: "#50fa7b",
210 git4: "#8be9fd",
211 git5: "#809fff",
212 git6: "#ff79c6",
213 git7: "#bd93f9",
214
215 gitInv0: "#ff5555",
216 gitInv1: "#ffb86c",
217 gitInv2: "#f1fa8c",
218 gitInv3: "#50fa7b",
219 gitInv4: "#8be9fd",
220 gitInv5: "#809fff",
221 gitInv6: "#ff79c6",
222 gitInv7: "#bd93f9",
223
224 gitBranchLabel0: "#323443",
225 gitBranchLabel1: "#323443",
226 gitBranchLabel2: "#323443",
227 gitBranchLabel3: "#323443",
228 gitBranchLabel4: "#323443",
229 gitBranchLabel5: "#323443",
230 gitBranchLabel6: "#323443",
231 gitBranchLabel7: "#323443",
232
233 commitLabelColor: '#52fa7c',
234 commitLabelBackground: '#297d3e'
235 },
236 flowchart: {
237 useMaxWidth: false
238 },
239 er: {
240 useMaxWidth: false
241 },
242 sequence: {
243 useMaxWidth: false,
244 // Mermaid handles Firefox a little different.
245 // For some reason, it doesn't attach font sizes to the labels in Firefox.
246 // If we specify the documented defaults, font sizes are written to the labels in Firefox.
247 noteFontWeight: "14px",
248 actorFontSize: "14px",
249 messageFontSize: "16px"
250 },
251 journey: {
252 useMaxWidth: false
253 },
254 pie: {
255 useMaxWidth: false
256 },
257 gantt: {
258 useMaxWidth: false
259 },
260 gitGraph: {
261 useMaxWidth: false
262 }
263 },
264
265 default: {
266 startOnLoad: false,
267 theme: "default",
268 flowchart: {
269 useMaxWidth: false
270 },
271 er: {
272 useMaxWidth: false
273 },
274 sequence: {
275 useMaxWidth: false,
276 noteFontWeight: "14px",
277 actorFontSize: "14px",
278 messageFontSize: "16px"
279 },
280 journey: {
281 useMaxWidth: false
282 },
283 pie: {
284 useMaxWidth: false
285 },
286 gantt: {
287 useMaxWidth: false
288 },
289 gitGraph: {
290 useMaxWidth: false
291 }
292 }
293 }
294 }