Skip to content

Instantly share code, notes, and snippets.

@a-fly-fly-bird
Created June 22, 2024 03:53
Show Gist options
  • Save a-fly-fly-bird/f88bb945e70b77c449f4c6e522c52a3a to your computer and use it in GitHub Desktop.
Save a-fly-fly-bird/f88bb945e70b77c449f4c6e522c52a3a to your computer and use it in GitHub Desktop.
alert box in markdown notes
<div class="alert-box">
<span class="alert-icon">⚠️</span>
<div class="alert-text">
<p>
注意:这更像一篇笔记而不是博客。
</p>
<p>
你可能不会从这里收获什么东西。
</p>
</div>
</div>
<style>
.alert-box {
display: grid;
grid-template-columns: auto 1fr;
align-items: start;
padding: 15px;
margin: 20px 0;
border: 1px solid #f5c6cb;
background-color: #f8d7da;
color: #721c24;
border-radius: 5px;
font-family: Arial, sans-serif;
}
.alert-icon {
font-size: 1.5em;
margin-right: 20px;
}
.alert-text {
align-self: start;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment