mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 01:46:14 -04:00
Docs: Modal
This commit is contained in:
parent
31c16b00ca
commit
3d2bc1f911
2 changed files with 40 additions and 4 deletions
|
@ -146,10 +146,16 @@
|
|||
|
||||
<pre><code><em><!-- Open modal--></em>
|
||||
<<b>dialog</b> <i>open</i>>
|
||||
<<b>article</b>>
|
||||
<em>…</em>
|
||||
</<b>article</b>>
|
||||
</<b>dialog</b>>
|
||||
|
||||
<em><!-- Modal closed --></em>
|
||||
<<b>dialog</b>>
|
||||
<<b>article</b>>
|
||||
<em>…</em>
|
||||
</<b>article</b>>
|
||||
</<b>dialog</b>>
|
||||
</code></pre>
|
||||
|
||||
|
@ -157,11 +163,26 @@
|
|||
|
||||
<p>Modals come with 3 utility classes.</p>
|
||||
|
||||
<p><code><<b>html</b> <i>class</i>=<u>"modal-is-open"</u>></code> blurs the background and blocks any scrolling and interactions below the modal.</p>
|
||||
<p><code>.modal-is-open</code> blurs the background and blocks any scrolling and interactions below the modal.</p>
|
||||
|
||||
<p><code><<b>html</b> <i>class</i>=<u>"modal-is-opening"</u>></code> brings an opening animation.</p>
|
||||
<pre><code><em><!doctype html></em>
|
||||
<<b>html</b> <i>class</i>=<u>"modal-is-open"</u>>
|
||||
<em>…</em>
|
||||
</<b>html</b>></code></pre>
|
||||
|
||||
<p><code><<b>html</b> <i>class</i>=<u>"modal-is-closing"</u>></code> brings a closing animation.</p>
|
||||
<p><code>.modal-is-opening</code> brings an opening animation.</p>
|
||||
|
||||
<pre><code><em><!doctype html></em>
|
||||
<<b>html</b> <i>class</i>=<u>"modal-is-open modal-is-opening"</u>>
|
||||
<em>…</em>
|
||||
</<b>html</b>></code></pre>
|
||||
|
||||
<p><code>.modal-is-closing</code> brings a closing animation.</p>
|
||||
|
||||
<pre><code><em><!doctype html></em>
|
||||
<<b>html</b> <i>class</i>=<u>"modal-is-open modal-is-closing"</u>>
|
||||
<em>…</em>
|
||||
</<b>html</b>></code></pre>
|
||||
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue