Skip to content

Commit 6cc819c

Browse files
committed
Add basic CSS for warning divs
1 parent d4ff232 commit 6cc819c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/theme/reference.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,35 @@ the parenthetical. So for this example, you'd use
6969
.parenthetical {
7070
white-space: nowrap;
7171
}
72+
73+
/*
74+
Warnings and notes:
75+
76+
Write the <div>s on their own line. E.g.
77+
78+
<div class="warning">
79+
80+
Warning: This is bad!
81+
82+
</div>
83+
*/
84+
main .warning p {
85+
padding: 10px 20px;
86+
margin: 20px 0;
87+
}
88+
89+
.light main .warning p,
90+
.rust main .warning p {
91+
border: 2px solid red;
92+
background: #f2dede;
93+
}
94+
95+
.coal main .warning p,
96+
.navy main .warning p,
97+
.ayu main .warning p {
98+
background: #542626
99+
}
100+
101+
main .warning p::before {
102+
content: "⚠️ ";
103+
}

0 commit comments

Comments
 (0)