-
Notifications
You must be signed in to change notification settings - Fork 2
/
admonition.css
148 lines (119 loc) · 2.44 KB
/
admonition.css
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
:root {
--github-alert-default-color: rgb(175, 184, 193);
--github-alert-note-color: rgb(9, 105, 218);
--github-alert-important-color: rgb(130, 80, 223);
--github-alert-warning-color: rgb(154, 103, 0);
}
.markdown-alert {
padding: 0 1em;
margin-bottom: 16px;
border-left: 0.25em solid var(--github-alert-default-color);
}
.markdown-alert-note {
border-left-color: var(--github-alert-note-color);
}
.markdown-alert-important {
border-left-color: var(--github-alert-important-color);
}
.markdown-alert-warning {
border-left-color: var(--github-alert-warning-color);
}
.markdown-alert-header {
display: inline-flex;
margin-bottom: 4px;
align-items: center;
}
.markdown-alert-header>svg {
margin-right: 8px;
}
.admonition {
margin-bottom: 1em;
padding: 15px 30px 15px 15px;
}
.admonition h5 {
margin-top: 0;
margin-bottom: 8px;
text-transform: uppercase;
}
.admonition-icon {
display: inline-block;
vertical-align: middle;
margin-right: 0.2em;
}
.admonition-icon svg {
display: inline-block;
width: 22px;
height: 22px;
stroke-width: 0;
}
.admonition-content > :last-child {
margin-bottom: 0;
}
/* default for custom types */
.admonition {
background-color: rgba(118, 51, 219, 0.1);
border-left: 8px solid #7633db;
}
.admonition h5 {
color: #7633db;
}
.admonition .admonition-icon svg {
stroke: #7633db;
fill: #7633db;
}
/** native types */
.admonition-caution {
background-color: rgba(230, 126, 34, 0.1);
border-left: 8px solid #e67e22;
}
.admonition-caution h5 {
color: #e67e22;
}
.admonition-caution .admonition-icon svg {
stroke: #e67e22;
fill: #e67e22;
}
.admonition-tip {
background-color: rgba(46, 204, 113, 0.1);
border-left: 8px solid #2ecc71;
}
.admonition-tip h5 {
color: #2ecc71;
}
.admonition-tip .admonition-icon svg {
stroke: #2ecc71;
fill: #2ecc71;
}
.admonition-warning {
background-color: rgba(231, 76, 60, 0.1);
border-left: 8px solid #e74c3c;
}
.admonition-warning h5 {
color: #e74c3c;
}
.admonition-warning .admonition-icon svg {
stroke: #e74c3c;
fill: #e74c3c;
}
.admonition-important {
background-color: rgba(52, 152, 219, 0.1);
border-left: 8px solid #3498db;
}
.admonition-important h5 {
color: #3498db;
}
.admonition-important .admonition-icon svg {
stroke: #3498db;
fill: #3498db;
}
.admonition-note {
background-color: rgba(241, 196, 15, 0.1);
border-left: 8px solid #f1c40f;
}
.admonition-note h5 {
color: #f1c40f;
}
.admonition-note .admonition-icon svg {
stroke: #f1c40f;
fill: #f1c40f;
}