forked from typedb/typedb-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colored-panels.js
43 lines (42 loc) · 1.06 KB
/
colored-panels.js
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
/**
* The content of coloredPanels is used to parse the following markdown into a colored panel
* <div class="note">
* [predefined-title]
* body of the note ...
* </div>
*
* In order for the above to be presented as a colored panel, `predefined-title` placed in `[]`
* must map to one object in the following `coloredPanels` object.
*
* The `className` property is in accordance with Twitter Bootstrap's labels: https://getbootstrap.com/docs/4.3/components/alerts/
*/
coloredPanels = {
important: {
className: "warning",
icon: {
name: "fa fa-star",
color: "#f1c40f"
}
},
note: {
className: "info",
icon: {
name: "fa fa-info-circle",
color: "#2980b9"
}
},
advanced: {
className: "success",
icon: {
name: "fas fa-lightbulb",
color: "#27ae60"
}
},
warning: {
className: "danger",
icon: {
name: "fa fa-exclamation-triangle",
color: "#F75E62"
}
}
}