Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an incomplete warning to the top page (#274)
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
Taken from the reference. | ||
Warnings and notes: | ||
Write the <div>s on their own line. E.g. | ||
<div class="warning"> | ||
Warning: This is bad! | ||
</div> | ||
*/ | ||
main .warning p { | ||
padding: 10px 20px; | ||
margin: 20px 0; | ||
} | ||
|
||
main .warning p::before { | ||
content: "⚠️ "; | ||
} | ||
|
||
.light main .warning p, | ||
.rust main .warning p { | ||
border: 2px solid red; | ||
background: #ffcece; | ||
} | ||
|
||
.rust main .warning p { | ||
/* overrides previous declaration */ | ||
border-color: #961717; | ||
} | ||
|
||
.coal main .warning p, | ||
.navy main .warning p, | ||
.ayu main .warning p { | ||
background: #542626 | ||
} | ||
|
||
/* Make the links higher contrast on dark themes */ | ||
.coal main .warning p a, | ||
.navy main .warning p a, | ||
.ayu main .warning p a { | ||
color: #80d0d0 | ||
} |