Skip to content

Commit d16af11

Browse files
committed
Add basic CSS for warning divs
1 parent ce9a136 commit d16af11

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
@@ -77,3 +77,35 @@ the parenthetical. So for this example, you'd use
7777
.parenthetical {
7878
white-space: nowrap;
7979
}
80+
81+
/*
82+
Warnings and notes:
83+
84+
Write the <div>s on their own line. E.g.
85+
86+
<div class="warning">
87+
88+
Warning: This is bad!
89+
90+
</div>
91+
*/
92+
main .warning p {
93+
padding: 10px 20px;
94+
margin: 20px 0;
95+
}
96+
97+
.light main .warning p,
98+
.rust main .warning p {
99+
border: 2px solid red;
100+
background: #f2dede;
101+
}
102+
103+
.coal main .warning p,
104+
.navy main .warning p,
105+
.ayu main .warning p {
106+
background: #542626
107+
}
108+
109+
main .warning p::before {
110+
content: "⚠️ ";
111+
}

0 commit comments

Comments
 (0)