-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-callouts.css
More file actions
85 lines (76 loc) · 1.6 KB
/
github-callouts.css
File metadata and controls
85 lines (76 loc) · 1.6 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
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
/* GitHub Callout CSS - Enhanced for dark backgrounds and margin fix */
/* Base callout box */
.gh-callout {
position: relative;
display: block;
margin: 1em 0;
padding: 0.75em 1em 0.75em 1.5em;
border-radius: 6px;
border-left: 0.5em solid #d0d7de;
background: #272b33;
box-shadow: none;
color: #e6edf3;
font-size: 1em;
}
/* Title bar for callouts */
.gh-callout-title {
display: flex;
align-items: center;
font-weight: 600;
margin-bottom: 0.4em;
font-size: 1.05em;
}
/* Icon in the callout title */
.gh-callout-icon {
margin-right: 0.5em;
font-size: 1.2em;
}
/* Callout variants */
.gh-callout-warning {
border-left-color: #e3b341;
background: #2d2611;
}
.gh-callout-important {
border-left-color: #d1242f;
background: #2d191a;
}
.gh-callout-tip {
border-left-color: #3fb950;
background: #16271b;
}
.gh-callout-caution {
border-left-color: #b35900;
background: #271c12;
}
.gh-callout-note {
border-left-color: #2188ff;
background: #182136;
}
/* Remove bottom margin from last element in a callout for a tight box */
.gh-callout > *:last-child,
.gh-callout p:last-child {
margin-bottom: 0 !important;
}
/* Ensure paragraphs and lists inside callouts have normal spacing */
.gh-callout p,
.gh-callout ul,
.gh-callout ol {
margin-top: 0.2em;
margin-bottom: 0.6em;
}
.gh-callout ul,
.gh-callout ol {
padding-left: 1.4em;
}
.gh-callout code {
background: #1a1f23;
color: #d2b863;
padding: 0.1em 0.4em;
border-radius: 4px;
font-size: 0.95em;
}
/* Responsive: don't overflow on small screens */
.gh-callout {
word-break: break-word;
overflow-wrap: anywhere;
}