mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-06 13:56:27 +02:00
Complete modal component
The modal component is now documented and completed fully.
This commit is contained in:
@@ -1025,6 +1025,30 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section row">
|
||||
<div class="col-sm-12 col-md-6 col-md-first col-sm-first">
|
||||
<h3>Modals <a href="https://codepen.io/chalarangelo/pen/rwagLK" target="_blank" class="button small"><i class="fa fa-codepen" aria-hidden="true"></i> View on Codepen</a></h3>
|
||||
<pre><label for="modal-toggle">Show modal</label>
|
||||
|
||||
<input id="modal-toggle" type="checkbox"/>
|
||||
<div class="modal">
|
||||
<div class="card">
|
||||
<label for="modal-toggle" class="close"></label>
|
||||
<h3 class="section">Modal</h3>
|
||||
<p class="section">This is a modal window!</p>
|
||||
</div>
|
||||
</div></pre>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<h3>Notes</h3>
|
||||
<ul style="text-align:justify">
|
||||
<li>Create an <code><input <span class="fore-secondary">type</span>="<span class="fore-primary">checkbox</span>"></code> element, immediately followed by a <code><div></code> element with the <code>.modal</code> class</li>
|
||||
<li>Use a <code>.card</code> inside the <code>.modal</code> to display contents</li>
|
||||
<li>Remember to use a <code><label></code> or some Javascript to allow users to close the dialog</li>
|
||||
<li>Modal dialogs can be placed and toggled from anywhere, although the structure must be kept intact</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user