mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-06 13:56:27 +02:00
Added toast message component
Completed component, added mixins, used mixins, updated documentation, updated customization documentation, made sure everything works neatly.
This commit is contained in:
@@ -958,32 +958,20 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TODO (Also remember to change the Codepen link)-->
|
||||
<div class="section row">
|
||||
<div class="col-sm-12 col-md-6 col-md-first col-sm-first">
|
||||
<h3>Toasts <a href="https://codepen.io/chalarangelo/pen/bBzYzj" target="_blank" class="button small"><i class="fa fa-codepen" aria-hidden="true"></i> View on Codepen</a></h3>
|
||||
<pre><div class="alert">
|
||||
<h3>This is an alert</h3>
|
||||
<p>Make sure you read this!</p>
|
||||
</div>
|
||||
<div class="alert urgent">
|
||||
<h3>This is an urgent alert</h3>
|
||||
<p>Make absolutely sure you read this!</p>
|
||||
</div>
|
||||
<div class="alert critical">
|
||||
<h3>This is a critical alert</h3>
|
||||
<p>Make certain you read and actually understand this!</p>
|
||||
</div></pre>
|
||||
<h3>Toasts <a href="https://codepen.io/chalarangelo/pen/XREdeq" target="_blank" class="button small"><i class="fa fa-codepen" aria-hidden="true"></i> View on Codepen</a></h3>
|
||||
<pre><span class="toast">This is a normal toast message!</span>
|
||||
<span class="toast small">This is a large toast message!</span>
|
||||
<span class="toast large">This is a small toast message!</span></pre>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<h3>Notes</h3>
|
||||
<ul>
|
||||
<li>Use the <code>.alert</code> class to create alerts</li>
|
||||
<li>Color variants available using the <code>.urgent</code> and <code>.critical</code> classes</li>
|
||||
<li>Alerts have no pre-defined behavior, use Javascript</li>
|
||||
<li>The <code>.alert</code> class can be applied to <code><div></code> elements and textual elements alike</li>
|
||||
<li>Avoid applying the <code>.alert</code> class to non-textual elements, such as images</li>
|
||||
<li>Use either the <code><span class="fore-secondary">role</span>=<span class="fore-primary">"<a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_alert_role">alert</a>"</span></code> attribute or the <code><span class="fore-secondary">role</span>=<span class="fore-primary">"<a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_alertdialog_role">alertdialog</a>"</span></code> attribute for accessible alerts</li>
|
||||
<li>Use the <code>.toast</code> class on <code><span></code> elements to create toast messages</li>
|
||||
<li>Size variants available using the <code>.small</code> and <code>.large</code> classes</li>
|
||||
<li>Toasts have no pre-defined behavior, use Javascript</li>
|
||||
<li>Toasts display at the bottom of the screen on top of everything else</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user