diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-05 23:18:49 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-05 23:18:49 -0500 |
| commit | bd5a00c61b355c857b5c99323592ca432dea5d0a (patch) | |
| tree | 7e8ac7730527c1ad71e3fdac85840948fd23f45f /htmx/static/pico-1.5.11/docs/src | |
| parent | c71b37eb23d4c8af7ab983de34c6da5be9363f3a (diff) | |
| download | paste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.gz paste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.xz | |
wip
Diffstat (limited to 'htmx/static/pico-1.5.11/docs/src')
25 files changed, 2548 insertions, 0 deletions
diff --git a/htmx/static/pico-1.5.11/docs/src/_footer.html b/htmx/static/pico-1.5.11/docs/src/_footer.html new file mode 100644 index 0000000..12d3be1 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/_footer.html @@ -0,0 +1,4 @@ +<footer> + <hr> + <p><small>Code licensed <a href="https://github.com/picocss/pico/blob/master/LICENSE.md" class="secondary">MIT</a></small></p> +</footer>
\ No newline at end of file diff --git a/htmx/static/pico-1.5.11/docs/src/_head.html b/htmx/static/pico-1.5.11/docs/src/_head.html new file mode 100644 index 0000000..a600454 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/_head.html @@ -0,0 +1,8 @@ +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<title>${props.title} • Pico CSS</title> +<meta name="description" content="${props.description}"> +<link rel="shortcut icon" href="https://picocss.com/favicon.ico"> +<link rel="stylesheet" href="../css/pico.min.css"> +<link rel="stylesheet" href="css/pico.docs.min.css"> +<link rel="canonical" href="https://picocss.com/docs/${props.canonical}">
\ No newline at end of file diff --git a/htmx/static/pico-1.5.11/docs/src/_nav.html b/htmx/static/pico-1.5.11/docs/src/_nav.html new file mode 100644 index 0000000..04e4b49 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/_nav.html @@ -0,0 +1,23 @@ +<nav class="container-fluid"> + <ul> + <li> + <a href="https://picocss.com" aria-label="Back home"> + <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" height="56px"> + <path fill="currentColor" d="M633.43 429.23c0 118.38-49.76 184.72-138.87 184.72-53 0-92.04-25.37-108.62-67.32h-2.6v203.12H250V249.7h133.67v64.72h2.28c17.24-43.9 55.3-69.92 107-69.92 90.4 0 140.48 66.02 140.48 184.73zm-136.6 0c0-49.76-22.1-81.96-56.9-81.96s-56.9 32.2-57.24 82.28c.33 50.4 22.1 81.63 57.24 81.63 35.12 0 56.9-31.87 56.9-81.95zM682.5 547.5c0-37.32 30.18-67.5 67.5-67.5s67.5 30.18 67.5 67.5S787.32 615 750 615s-67.5-30.18-67.5-67.5z"/> + </svg> + </a> + </li> + <li>Documentation</li> + </ul> + <ul> + <li><a href="https://github.com/picocss/examples" class="secondary">Examples</a></li> + <li><a href="./" class="secondary">Docs</a></li> + <li> + <a href="https://github.com/picocss/pico" class="contrast" aria-label="Pico GitHub repository"> + <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" height="16px"> + <path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path> + </svg> + </a> + </li> + </ul> +</nav>
\ No newline at end of file diff --git a/htmx/static/pico-1.5.11/docs/src/_sidebar.html b/htmx/static/pico-1.5.11/docs/src/_sidebar.html new file mode 100644 index 0000000..dfdf439 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/_sidebar.html @@ -0,0 +1,74 @@ +<aside> + <nav class="closed-on-mobile"> + <a href="./" class="secondary" id="toggle-docs-navigation"> + <svg xmlns="http://www.w3.org/2000/svg" class="expand" fill="currentColor" viewBox="0 0 16 16" height="16px"> + <title>Expand</title> + <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 8zM7.646.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 1.707V5.5a.5.5 0 0 1-1 0V1.707L6.354 2.854a.5.5 0 1 1-.708-.708l2-2zM8 10a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7.5 14.293V10.5A.5.5 0 0 1 8 10z"></path> + </svg> + <svg xmlns="http://www.w3.org/2000/svg" class="collapse" fill="currentColor" viewBox="0 0 16 16" height="16px"> + <title>Collapse</title> + <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 8zm7-8a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L7.5 4.293V.5A.5.5 0 0 1 8 0zm-.5 11.707l-1.146 1.147a.5.5 0 0 1-.708-.708l2-2a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 11.707V15.5a.5.5 0 0 1-1 0v-3.793z"></path> + </svg> + Table of contents + </a> + <details> + <summary>Getting started</summary> + <ul> + <li><a href="./" id="start-link" class="secondary">Usage</a></li> + <li><a href="./themes.html" id="themes-link" class="secondary">Themes</a></li> + <li><a href="./customization.html" id="customization-link" class="secondary">Customization</a></li> + <li><a href="./classless.html" id="classless-link" class="secondary">Class-less version</a></li> + <li><a href="./rtl.html" id="rtl-link" class="secondary">RTL</a></li> + </ul> + </details> + <details> + <summary>Layout</summary> + <ul> + <li><a href="./containers.html" id="containers-link" class="secondary">Containers</a></li> + <li><a href="./grid.html" id="grid-link" class="secondary">Grid</a></li> + <li><a href="./scroller.html" id="scroller-link" class="secondary">Horizontal scroller</a></li> + </ul> + </details> + <details> + <summary>Elements</summary> + <ul> + <li><a href="./typography.html" id="typography-link" class="secondary">Typography</a></li> + <li><a href="./buttons.html" id="buttons-link" class="secondary">Buttons</a></li> + <li><a href="./forms.html" id="forms-link" class="secondary">Forms</a></li> + <li><a href="./tables.html" id="tables-link" class="secondary">Tables</a></li> + </ul> + </details> + <details> + <summary>Components</summary> + <ul> + <li><a href="./accordions.html" id="accordions-link" class="secondary">Accordions</a></li> + <li><a href="./cards.html" id="cards-link" class="secondary">Cards</a></li> + <li><a href="./dropdowns.html" id="dropdowns-link" class="secondary">Dropdowns</a></li> + <li><a href="./modal.html" id="modal-link" class="secondary">Modal</a></li> + <li><a href="./navs.html" id="navs-link" class="secondary">Navs</a></li> + <li><a href="./progress.html" id="progress-link" class="secondary">Progress</a></li> + </ul> + </details> + <details> + <summary>Utilities</summary> + <ul> + <li><a href="./loading.html" id="loading-link" class="secondary">Loading</a></li> + <li><a href="./tooltips.html" id="tooltips-link" class="secondary">Tooltips</a></li> + </ul> + </details> + <details> + <summary>Extend</summary> + <ul> + <li> + <a href="./we-love-classes.html" id="we-love-classes-link" class="secondary">We love .classes</a> + </li> + </ul> + </details> + </nav> + <script> + const activeLink = document.querySelector(`aside a#${props.active}`); + const parentAccordion = activeLink.closest('details'); + activeLink.setAttribute('aria-current', 'page'); + parentAccordion.setAttribute('open', 'true'); + </script> +</aside> diff --git a/htmx/static/pico-1.5.11/docs/src/accordions.html b/htmx/static/pico-1.5.11/docs/src/accordions.html new file mode 100644 index 0000000..48dc49b --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/accordions.html @@ -0,0 +1,98 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Accordions` + description=`Toggle sections of content in pure HTML, without JavaScript.` + canonical=`accordions.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`accordions-link`} + + <div role="document"> + <section id="accordions"> + <hgroup> + <h1>Accordions</h1> + <h2>Toggle sections of content in pure HTML, without JavaScript.</h2> + </hgroup> + <article aria-label="Accordions examples"> + <details> + <summary>Accordion 1</summary> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque urna diam, tincidunt nec porta sed, auctor id velit. Etiam venenatis nisl ut orci consequat, vitae tempus quam commodo. Nulla non mauris ipsum. Aliquam eu posuere orci. Nulla convallis lectus rutrum quam hendrerit, in facilisis elit sollicitudin. Mauris pulvinar pulvinar mi, dictum tristique elit auctor quis. Maecenas ac ipsum ultrices, porta turpis sit amet, congue turpis.</p> + </details> + <details open> + <summary>Accordion 2</summary> + <ul> + <li>Vestibulum id elit quis massa interdum sodales.</li> + <li>Nunc quis eros vel odio pretium tincidunt nec quis neque.</li> + <li>Quisque sed eros non eros ornare elementum.</li> + <li>Cras sed libero aliquet, porta dolor quis, dapibus ipsum.</li> + </ul> + </details> + <footer class="code"> + +<pre><code><<b>details</b>> + <<b>summary</b>>Accordion 1</<b>summary</b>> + <<b>p</b>>…</<b>p</b>> +</<b>details</b>> + +<<b>details</b> <i>open</i>> + <<b>summary</b>>Accordion 2</<b>summary</b>> + <<b>ul</b>> + <<b>li</b>>…</<b>li</b>> + <<b>li</b>>…</<b>li</b>> + </<b>ul</b>> +</<b>details</b>></code></pre> + + </footer> + </article> + <p><code><i>role</i>=<u>"button"</u></code> can be used to turn <code><<b>summary</b>></code> into a button.</p> + <article aria-label="Accordions buttons examples"> + <details> + <summary role="button">Accordion 1</summary> + <p>Aenean vestibulum nunc at libero congue, eu pretium nulla viverra. Fusce sed ex at est egestas vehicula. Integer sit amet lectus mi. Duis ut viverra mauris, at laoreet enim.</p> + </details> + <details> + <summary role="button" class="secondary">Accordion 2</summary> + <p>Quisque porta dictum ipsum nec vestibulum. Suspendisse non mi ac tellus scelerisque egestas. Sed vel nisi laoreet, rhoncus urna quis, luctus risus. Donec vitae molestie felis.</p> + </details> + <details> + <summary role="button" class="contrast">Accordion 3</summary> + <p>Praesent quam ipsum, condimentum non augue at, porttitor interdum tellus. Curabitur ultrices consectetur leo, a placerat mauris malesuada et. In quis varius risus.</p> + </details> + <footer class="code"> + +<pre><code><em><!-- Primary --></em> +<<b>details</b>> + <<b>summary</b> <i>role</i>=<u>"button"</u>>Accordion 1</<b>summary</b>> + <<b>p</b>>…</<b>p</b>> +</<b>details</b>> + +<em><!-- Secondary --></em> +<<b>details</b>> + <<b>summary</b> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>>Accordion 2</<b>summary</b>> + <<b>p</b>>…</<b>p</b>> +</<b>details</b>> + +<em><!-- Contrast --></em> +<<b>details</b>> + <<b>summary</b> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast"</u>>Accordion 3</<b>summary</b>> + <<b>p</b>>…</<b>p</b>> +</<b>details</b>> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/buttons.html b/htmx/static/pico-1.5.11/docs/src/buttons.html new file mode 100644 index 0000000..7b37c18 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/buttons.html @@ -0,0 +1,77 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Buttons` + description=`The essential button in pure HTML, without .classes for the default style.` + canonical=`buttons.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`buttons-link`} + + <div role="document"> + <section id="buttons"> + <hgroup> + <h1>Buttons</h1> + <h2>The essential button in pure HTML, without <code>.classes</code> for the default style.</h2> + </hgroup> + <article aria-label="Button example"> + <button aria-label="Button">Button</button> + <input type="submit"> + <footer class="code"> + +<pre><code><<b>button</b>>Button</<b>button</b>> +<<b>input</b> <i>type</i>=<u>"submit"</u>></code></pre> + + </footer> + </article> + <p>Buttons are <code><i>width</i>: <u>100%</u>;</code> by default. Use <code><i>role</i>=<u>"button"</code> on an inline element if you need an inline button.</p> + <article aria-label="Inline buttons examples"> + <a href="#" onclick="event.preventDefault()" role="button">Link</a> + <a href="#" onclick="event.preventDefault()" role="button">Link</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>>Link</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>>Link</<b>a</b>></code></pre> + + </footer> + </article> + <p>Buttons come with <code>.secondary</code> and <code>.contrast</code> styles.</p> + <p>ℹ️ These classes are not available in the <a href="classless.html">class-less version</a>.</p> + <article aria-label="Buttons styles examples"> + <a href="#" onclick="event.preventDefault()" role="button" class="secondary">Secondary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="contrast">Contrast</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>>Secondary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast"</u>>Contrast</<b>a</b>></code></pre> + + </footer> + </article> + <p>And a classic <code>.outline</code> variant.</p> + <article aria-label="Outline style examples"> + <a href="#" onclick="event.preventDefault()" role="button" class="outline">Primary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="secondary outline">Secondary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="contrast outline">Contrast</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"outline"</u>>Primary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary outline"</u>>Secondary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast outline"</u>>Contrast</<b>a</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/cards.html b/htmx/static/pico-1.5.11/docs/src/cards.html new file mode 100644 index 0000000..d3861b7 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/cards.html @@ -0,0 +1,48 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Cards` + description=`A flexible container with graceful spacings across devices and viewports.` + canonical=`cards.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`cards-link`} + + <div role="document"> + <section id="cards"> + <hgroup> + <h1>Cards</h1> + <h2>A flexible container with graceful spacings across devices and viewports.</h2> + </hgroup> + <article aria-label="Card example"> + I'm a card! + </article> + <pre><code><<b>article</b>>I'm a card!</<b>article</b>></code></pre> + <p>You can use <code><<b>header</b>></code> and footer <code><<b>footer</b>></code> inside <code><<b>article</b>></code></p> + <article aria-label="Card sectioning example"> + <header>Header</header> + Body + <footer>Footer</footer> + </article> + +<pre><code><<b>article</b>> + <<b>header</b>>Header</<b>header</b>> + Body + <<b>footer</b>>Footer</<b>footer</b>> +</<b>article</b>></code></pre> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/classless.html b/htmx/static/pico-1.5.11/docs/src/classless.html new file mode 100644 index 0000000..6321a1a --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/classless.html @@ -0,0 +1,84 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Class-less version` + description=`For wild HTML purists, Pico provides a .classless version.` + canonical=`classless.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`classless-link`} + + <div role="document"> + <section id="classless"> + <hgroup> + <h1>Class-less version</h1> + <h2>For wild HTML purists!</h2> + </hgroup> + <p>Pico provides a <code>.classless</code> version (<a href="https://codesandbox.io/s/github/picocss/examples/tree/master/v1-classless">example</a>).</p> + <p>In this version, <code><<b>header</b>></code>, <code><<b>main</b>></code>, and <code><<b>footer</b>></code> act as <a href="./containers.html">containers</a> to define a centered or a fluid viewport.</p> + +<pre><code><em>// Containers</em> +<b>body</b> > <b>header</b>, +<b>body</b> > <b>main</b>, +<b>body</b> > <b>footer</b> { + <em>…</em> +} +</code></pre> + + <p><strong>Usage:</strong></p> + <p>Use the default <code>.classless</code> version if you need centered viewports:</p> + <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet</u>" <i>href</i>=<u>"css/pico.classless.min.css"</u>></code></pre> + <p>Or use the <code>.fluid.classless</code> version if you need a fluid container:</p> + <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet</u>" <i>href</i>=<u>"css/pico.fluid.classless.min.css"</u>></code></pre> + <p>These <code>.classless</code> versions are also available on <a href="https://www.jsdelivr.com/package/npm/@picocss/pico">jsDelivr CDN</a>:</p> + +<pre><code><em>// Centered viewport</em> +<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.classless.min.css"</u>> +</code></pre> + +<pre><code><em>// Fluid viewport</em> +<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.fluid.classless.min.css"</u>> +</code></pre> + + <p>If you need to customize the default parent (<code><<b>body</b>></code>) for <code><<b>header</b>></code>, <code><<b>main</b>></code>, and <code><<b>footer</b>></code>, you can recompile Pico by defining another CSS selector.</p> + <p>Useful for <a href="https://reactjs.org/">React</a>, <a href="https://www.gatsbyjs.com/">Gatsby</a> or <a href="https://nextjs.org/">Next.js</a>.</p> + +<pre><code><em>/* Custom Class-less version for React */</em> + +<em>// Set the root element</em> +<i>$semantic-root-element</i>: <u>"#root"</u>; + +<em>// Enable <header>, <main>, <footer> inside $semantic-root-element as containers</em> +<i>$enable-semantic-container</i>: <u>true</u>; + +<em>// Enable .classes</em> +<i>$enable-classes</i>: <u>false</u>; + +<em>// Import Pico</em> +<b>@import</b> <u>"@picocss/pico/scss/pico"</u>;</code></pre> + + <p>The code above will compile Pico with the containers defined like this:</p> + +<pre><code><em>// Containers</em></em> +<i>#root</i> > <b>header</b>, +<i>#root</i> > <b>main</b>, +<i>#root</i> > <b>footer</b> { + <em>…</em> +} +</code></pre> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/containers.html b/htmx/static/pico-1.5.11/docs/src/containers.html new file mode 100644 index 0000000..63dd3b7 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/containers.html @@ -0,0 +1,74 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Containers` + description=`.container enable a centered viewport, .container-fluid enable a 100% layout.` + canonical=`containers.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`containers-link`} + + <div role="document"> + <section id="containers"> + <hgroup> + <h1>Containers</h1> + <h2> + <code>.container</code> enable a centered viewport.<br> + <code>.container-fluid</code> enable a <code><u>100%</u></code> layout. + </h2> + </hgroup> + +<pre><code><<b>body</b>> + <<b>main</b> <i>class</i>=<u>"container"</u>></<b>main</b>> +</<b>body</b>></code></pre> + + <p>Pico uses the same breakpoints and viewports sizes as <a href="https://getbootstrap.com/docs/5.1/layout/breakpoints/#available-breakpoints">Bootstrap</a>.</p> + <figure> + <table role="grid"> + <thead> + <tr> + <th>Device</th> + <th>Extra small</th> + <th>Small</th> + <th>Medium</th> + <th>Large</th> + <th>Extra large</th> + </tr> + </thead> + <tbody> + <tr> + <th>Breakpoint</th> + <td><576<small>px</small></td> + <td>≥576<small>px</small></td> + <td>≥768<small>px</small></td> + <td>≥992<small>px</small></td> + <td>≥1200<small>px</small></td> + </tr> + <tr> + <th>Viewport</th> + <td>100<small>%</small></td> + <td>540<small>px</small></td> + <td>720<small>px</small></td> + <td>960<small>px</small></td> + <td>1140<small>px</small></td> + </tr> + </tbody> + </table> + </figure> + <p><code><<b>header</b>></code>, <code><<b>main</b>></code> and <code><<b>footer</b>></code> as direct children of <code><<b>body</b>></code> provide a responsive vertical <code><i>padding</i></code></p> + <p><code><<b>section</b>></code> provides a responsive <code><i>margin-bottom</i></code> to separate your sections.</p> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/customization.html b/htmx/static/pico-1.5.11/docs/src/customization.html new file mode 100644 index 0000000..c56913d --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/customization.html @@ -0,0 +1,131 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Customization` + description=`You can customize themes with SCSS, or you can edit the CSS variables. All Pico's styles and colors are set with CSS custom properties (variables).` + canonical=`customization.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`customization-link`} + + <div role="document"> + <section id="customization"> + <hgroup> + <h1>Customization</h1> + <h2>You can customize themes with SCSS or, you can edit the CSS variables.</h2> + </hgroup> + <p>Example: <strong>pick a color!</strong></p> + + <article data-theme="generated" aria-label="Generated theme example"> + <h3><span class="name">Custom theme</span></h3> + <form> + <div class="grid"> + <input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required> + <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required> + <button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button> + </div> + <fieldset> + <label for="remember"> + <input type="checkbox" role="switch" id="remember" name="remember" checked> + Remember me + </label> + </fieldset> + </form> + <footer class="code"> + +<pre><code><em>// Simplified example</em> +<b>:root</b> { + <i>--primary</i>: <u class="c600">…</u>; +} +</code></pre> + + </footer> + </article> + <p>There are 2 ways to customize your version of Pico CSS:</p> + <h3>Overriding CSS variables</h3> + <p>All Pico's styles and colors are set with <em>CSS custom properties</em> (variables). Just override the CSS variables to customize your version of Pico.</p> + +<pre><code><em>/* <span class="name"></span>Light scheme (Default) */ +/* Can be forced with data-theme="light" */</em> +<b>[data-theme=<u>"light"</u>]</b>, +<b>:root:not([data-theme=<u>"dark"</u>])</b> { + <i>--primary</i>: <u class="c600">…</u>; + <i>--primary-hover</i>: <u class="c700">…</u>; + <i>--primary-focus</i>: <u class="c600-outline-light">…</u>; + <i>--primary-inverse</i>: <u class="inverse">…</u>; +} + +<em>/* <span class="name"></span>Dark scheme (Auto) */ +/* Automatically enabled if user has Dark mode enabled */</em> +<i>@media</i> only <b>screen</b> and <b>(prefers-color-scheme: <u>dark</u>)</b> { + <b>:root:not([data-theme])</b> { + <i>--primary</i>: <u class="c600">…</u>; + <i>--primary-hover</i>: <u class="c500">…</u>; + <i>--primary-focus</i>: <u class="c600-outline-dark">…</u>; + <i>--primary-inverse</i>: <u class="inverse">…</u>; + } +} + +<em>/* <span class="name"></span>Dark scheme (Forced) */ +/* Enabled if forced with data-theme="dark" */</em> +<b>[data-theme=<u>"dark"</u>]</b> { + <i>--primary</i>: <u class="c600">…</u>; + <i>--primary-hover</i>: <u class="c500">…</u>; + <i>--primary-focus</i>: <u class="c600-outline-dark">…</u>; + <i>--primary-inverse</i>: <u class="inverse">…</u>; +} + +<em>/* <span class="name"></span>(Common styles) */</em> +<b>:root</b> { + <i>--form-element-active-border-color</i>: <u>var</u>(<i>--primary</i>); + <i>--form-element-focus-color</i>: <u>var</u>(<i>--primary-focus</i>); + <i>--switch-color</i>: <u>var</u>(<i>--primary-inverse</i>); + <i>--switch-checked-background-color</i>: <u>var</u>(<i>--primary</i>); +} +</code></pre> + + <p>You can find all the CSS variables used in the default theme here: <a href="https://github.com/picocss/pico/blob/master/css/themes/default.css">css/themes/default.css</a></p> + <h3>Importing Pico SASS library</h3> + <p>We recommend customizing Pico by importing SASS source files into your project. This way, you can keep Pico up to date without conflicts since Pico code and your custom code are separated.</p> + <p>Compile the SASS file to CSS to get a custom version of Pico.</p> + +<pre><code><em>/* Custom <span class="name"> </span>version */</em> + +<em>// Override default variables</em> +<i>$primary-500</i>: <u class="c500">…</u>; +<i>$primary-600</i>: <u class="c600">…</u>; +<i>$primary-700</i>: <u class="c700">…</u>; + +<em>// Import Pico</em> +<b>@import</b> <u>"@picocss/pico/scss/pico"</u>;</code></pre> + + <p>Alternatively, you can create a custom theme and import it into your project with the components you need.</p> + +<pre><code><em>/* Custom version */</em> + +<em>// Custom theme</em> +<b>@import</b> <u>"path/themes/custom"</u>; + +<em>// Import needed components</em> +<b>@import</b> <u>"@picocss/pico/scss/pico/layout/document"</u>; +<b>@import</b> <u>"@picocss/pico/scss/pico/layout/sectioning"</u>; +<em>…</em> +</code></pre> + + <p>Compiling a custom SASS version allows you to create a lighter version with only the components that are useful to you.</p> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + <script src="js/customization.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/dropdowns.html b/htmx/static/pico-1.5.11/docs/src/dropdowns.html new file mode 100644 index 0000000..9b9146c --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/dropdowns.html @@ -0,0 +1,379 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Dropdowns` + description=`Dropdown menus and custom selects without JavaScript.` + canonical=`dropdowns.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`dropdowns-link`} + + <div role="document"> + <section id="dropdown"> + <hgroup> + <h1>Dropdowns</h1> + <h2>Dropdown menus and custom selects without JavaScript.</h2> + </hgroup> + <p>Dropdowns are built with <code><<b>details</b> <i>role</i>=<u>"list"</u>></code> as a wrapper and <code><<b>summary</b>></code> and <code><<b>ul</b>></code> as direct children.</p> + <p>For style consistency with the form elements, dropdowns are styled like a <a href="forms.html"><select></a> by default.</p> + <article aria-label="Dropdowns as Selects"> + <details role="list"> + <summary aria-haspopup="listbox">Dropdown</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + <select required> + <option value="" disabled selected>Select</option> + <option>Option</option> + <option>Another option</option> + <option>Something else here</option> + </select> + <footer class="code"> + +<pre><code><em><!-- Dropdown --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>details</b>> + +<em><!-- Select --></em> +<<b>select</b></u>> + <<b>option</b> <i>value</i>=<u>""</u> <i>disabled selected</i>>Select</<b>option</b>> + <<b>option</b>>…</<b>option</b>> +</<b>select</b>> +</code></pre> + + </footer> + </article> + <p><code><<b>summary</b> <i>role</i>=<u>"button"</u>></code> transforms the dropdown into a button.</p> + <article aria-label="Dropdowns as Buttons"> + <details role="list"> + <summary aria-haspopup="listbox" role="button">Dropdown as a button 1</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + <details role="list"> + <summary aria-haspopup="listbox" role="button" class="secondary">Dropdown as a button 2</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + <details role="list"> + <summary aria-haspopup="listbox" role="button" class="contrast">Dropdown as a button 3</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + <footer class="code"> + +<pre><code><em><!-- Primary --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u> <i>role</i>=<u>"button"</u>> + Dropdown as a button 1 + </<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>details</b>> + +<em><!-- Secondary --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>> + Dropdown as a button 2 + </<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>details</b>> + +<em><!-- Contrast --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast"</u>> + Dropdown as a button 3 + </<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>details</b>> +</code></pre> + + </footer> + </article> + <p>Dropdowns can be used as custom selects with <code><<b>input</b> <i>type</i>=<u>"radio"</u>></code> or <code><<b>input</b> <i>type</i>=<u>"checkbox"</u>></code></p> + <article aria-label="Dropdowns with radio buttons or checkboxes"> + <details role="list"> + <summary aria-haspopup="listbox">Select single element</summary> + <ul role="listbox"> + <li> + <label for="small"> + <input type="radio" id="small" name="size" value="small" /> + Small + </label> + </li> + <li> + <label for="medium"> + <input type="radio" id="medium" name="size" value="medium" /> + Medium + </label> + </li> + <li> + <label for="large"> + <input type="radio" id="large" name="size" value="large" /> + Large + </label> + </li> + </ul> + </details> + <details role="list"> + <summary aria-haspopup="listbox">Select multiple elements</summary> + <ul role="listbox"> + <li> + <label> + <input type="checkbox" /> + Banana + </label> + </li> + <li> + <label> + <input type="checkbox" /> + Watermelon + </label> + </li> + <li> + <label> + <input type="checkbox" /> + Apple + </label> + </li> + </ul> + </details> + <footer class="code"> + +<pre><code><em><!-- With radio buttons --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>> + <<b>label</b> <i>for</i>=<u>"small"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"small"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"small"</u>> + Small + </<b>label</b>> + </<b>li</b>> + <<b>li</b>> + <<b>label</b> <i>for</i>=<u>"medium"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"medium"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"medium"</u>> + Medium + </<b>label</b>> + </<b>li</b>> + <<b>li</b>> + <<b>label</b> <i>for</i>=<u>"large"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"large"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"large"</u>> + Large + </<b>label</b>> + </<b>li</b>> + </<b>ul</b>> +</<b>details</b>> + +<em><!-- With checkboxes --></em> +<<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>> + <<b>label</b>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u>> + Banana + </<b>label</b>> + </<b>li</b>> + <<b>li</b>> + <<b>label</b>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u>> + Watermelon + </<b>label</b>> + </<b>li</b>> + <<b>li</b>> + <<b>label</b>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u>> + Apple + </<b>label</b>> + </<b>li</b>> + </<b>ul</b>> +</<b>details</b>> + + </footer> + </article> + <p>Dropdowns can be used inside a <a href="navs.html"><nav></a> with a nested <code><<b>details</b> <i>role</i>=<u>"list"</u>></code></p> + <p>Example with a dropdown as a link:</p> + <article aria-label="Dropdowns inside a nav"> + <nav> + <ul> + <li><strong>Brand</strong></li> + </ul> + <ul> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li> + <details role="list" dir="rtl"> + <summary aria-haspopup="listbox" role="link">Dropdown</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + </li> + </ul> + </nav> + <footer class="code"> + +<pre><code><<b>nav</b>> + <<b>ul</b>> + <<b>li</b>><<b>strong</b>>Brand</<b>strong</b>></<b>li</b>> + </<b>ul</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>> + <<b>details</b> <i>role</i>=<u>"list"</u> <i>dir</i>=<u>"rtl"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u> <i>role</i>=<u>"link"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> + </<b>details</b>> + </<b>li</b>> + </<b>ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + <p>Example with a default dropdown and a dropdown as a button:</p> + <article aria-label="Dropdowns inside a nav"> + <nav> + <ul> + <li> + <details role="list"> + <summary aria-haspopup="listbox">Dropdown</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + </li> + <li> + <details role="list"> + <summary aria-haspopup="listbox" role="button">Dropdown</summary> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </details> + </li> + </ul> + </nav> + <footer class="code"> + +<pre><code><<b>nav</b>> + <<b>ul</b>> + <<b>li</b>> + <<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> + </<b>details</b>> + </<b>li</b>> + <<b>li</b>> + <<b>details</b> <i>role</i>=<u>"list"</u>> + <<b>summary</b> <i>aria-haspopup</i>=<u>"listbox"</u> <i>role</i>=<u>"button"</u>>Dropdown</<b>summary</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> + </<b>details</b>> + </<b>li</b>> + </<b>ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + <p>You can also use <code><<b>li</b> <i>role</i>=<u>"list"</u>></code> as a nested wrapper to render a list as a dropdown.</p> + <p>ℹ️ This syntax is experimental. In this version, the dropdown menu is triggered on hover.</p> + <article aria-label="Dropdowns inside a nav"> + <nav> + <ul> + <li><strong>Brand</strong></li> + </ul> + <ul> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li role="list" dir="rtl"> + <a href="#" onclick="event.preventDefault()" aria-haspopup="listbox">Dropdown</a> + <ul role="listbox"> + <li><a href="#" onclick="event.preventDefault()">Action</a></li> + <li><a href="#" onclick="event.preventDefault()">Another action</a></li> + <li><a href="#" onclick="event.preventDefault()">Something else here</a></li> + </ul> + </li> + </ul> + </nav> + <footer class="code"> + +<pre><code><<b>nav</b>> + <<b>ul</b>> + <<b>li</b>><<b>strong</b>>Brand</<b>strong</b>></<b>li</b>> + </<b>ul</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b> <i>role</i>=<u>"list"</u> <i>dir</i>=<u>"rtl"</u>> + <<b>a</b> <i>href</i>=<u>"#"</u> <i>aria-haspopup</i>=<u>"listbox"</u>>Dropdown</<b>a</b>> + <<b>ul</b> <i>role</i>=<u>"listbox"</u>> + <<b>li</b>><<b>a</b>>Action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Another action</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b>>Something else here</<b>a</b>></<b>li</b>> + </<b>ul</b>> + </<b>li</b>> + </<b>ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/forms.html b/htmx/static/pico-1.5.11/docs/src/forms.html new file mode 100644 index 0000000..7f6f41b --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/forms.html @@ -0,0 +1,272 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Forms` + description=`All form elements are fully responsive in pure semantic HTML, allowing forms to scale gracefully across devices and viewports.` + canonical=`forms.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`forms-link`} + + <div role="document"> + <section id="forms"> + <hgroup> + <h1>Forms</h1> + <h2>All form elements are fully responsive in pure semantic HTML, allowing forms to scale gracefully across devices and viewports.</h2> + </hgroup> + <p>Inputs are <code><i>width</i>: <u>100%</u>;</code> by default. You can use <code>.grid</code> inside a form.</p> + <p>All native form elements are fully customizable and themeable with CSS variables.</p> + <article aria-label="Form example"> + <form> + <div class="grid"> + <label for="firstname"> + First name + <input type="text" id="firstname" name="firstname" placeholder="First name" required> + </label> + <label for="lastname"> + Last name + <input type="text" id="lastname" name="lastname" placeholder="Last name" required> + </label> + </div> + <label for="email">Email address</label> + <input type="email" id="email" name="email" placeholder="Email address" required> + <small>We'll never share your email with anyone else.</small> + <button type="submit" aria-label="Example button" onclick="event.preventDefault()">Submit</button> + </form> + <footer class="code"> + +<pre><code><<b>form</b>> + + <em><!-- Grid --></em> + <<b>div</b> <i>class</i>=<u>"grid"</u>> + + <em><!-- Markup example 1: input is inside label --></em> + <<b>label</b> <i>for</i>=<u>"firstname"</u>> + First name + <<b>input</b> <i>type</i>=<u>"text"</u> <i>id</i>=<u>"firstname"</u> <i>name</i>=<u>"firstname"</u> <i>placeholder</i>=<u>"First name"</u> <i>required</i>> + </<b>label</b>> + + <<b>label</b> <i>for</i>=<u>"lastname"</u>> + Last name + <<b>input</b> <i>type</i>=<u>"text"</u> <i>id</i>=<u>"lastname"</u> <i>name</i>=<u>"lastname"</u> <i>placeholder</i>=<u>"Last name"</u> <i>required</i>> + </<b>label</b>> + + </<b>div</b>> + + <em><!-- Markup example 2: input is after label --></em> + <<b>label</b> <i>for</i>=<u>"email"</u>>Email address</<b>label</b>> + <<b>input</b> <i>type</i>=<u>"email"</u> <i>id</i>=<u>"email"</u> <i>name</i>=<u>"email"</u> <i>placeholder</i>=<u>"Email address"</u> <i>required</i>> + <<b>small</b>>We'll never share your email with anyone else.</<b>small</b>> + + <em><!-- Button --></em> + <<b>button</b> <i>type</i>=<u>"submit"</u>>Submit</<b>button</b>> + +</<b>form</b>></code></pre> + + </footer> + </article> + <p>Disabled and validation states:</p> + <article aria-label="Validation states examples"> + <form class="grid"> + <input type="text" placeholder="Valid" aria-label="Valid" aria-invalid="false"> + <input type="text" placeholder="Invalid" aria-label="Invalid" aria-invalid="true"> + <input type="text" placeholder="Disabled" aria-label="Disabled" disabled> + <input type="text" value="Readonly" aria-label="Readonly" readonly> + </form> + <footer class="code"> + +<pre><code><<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Valid"</u> <i>aria-invalid</i>=<u>"false"</u>> +<<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Invalid"</u> <i>aria-invalid</i>=<u>"true"</u>> +<<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Disabled"</u> <i>disabled</i>> +<<b>input</b> <i>type</i>=<u>"text"</u> <i>value</i>=<u>"Readonly"</u> <i>readonly</i>></code></pre> + + </footer> + </article> + <p><code><<b>fieldset</b>></code> is unstyled and acts as a container for radios and checkboxes, providing a consistent <code><i>margin-bottom</i></code> for the set.</p> + <p><code><i>role</i>=<u>"switch"</u></code> on a <code><i>type</i>=<u>"checkbox"</u></code> enable a custom switch.</p> + <article aria-label="Select, radios, checkboxes, switch examples"> + <label for="fruit">Fruit</label> + <select id="fruit" required> + <option value="" selected>Select a fruit…</option> + <option>Banana</option> + <option>Watermelon</option> + <option>Apple</option> + <option>Orange</option> + <option>Mango</option> + </select> + <fieldset> + <legend>Size</legend> + <label for="small"> + <input type="radio" id="small" name="size" value="small" checked> + Small + </label> + <label for="medium"> + <input type="radio" id="medium" name="size" value="medium"> + Medium + </label> + <label for="large"> + <input type="radio" id="large" name="size" value="large"> + Large + </label> + <label for="extralarge"> + <input type="radio" id="extralarge" name="size" value="extralarge" disabled> + Extra Large + </label> + </fieldset> + <fieldset> + <label for="terms"> + <input type="checkbox" id="terms" name="terms"> + I agree to the Terms and Conditions + </label> + <label for="terms_sharing"> + <input type="checkbox" id="terms_sharing" name="terms_sharing" disabled checked> + I agree to share my information with partners + </label> + </fieldset> + <fieldset> + <label for="switch"> + <input type="checkbox" id="switch" name="switch" role="switch"> + Publish on my profile + </label> + <label for="switch_disabled"> + <input type="checkbox" id="switch_disabled" name="switch_disabled" role="switch" disabled checked> + User must change password at next logon + </label> + </fieldset> + <footer class="code"> + +<pre><code><em><!-- Select --></em> +<<b>label</b> <i>for</i>=<u>"fruit"</u>>Fruit</<b>label</b>> +<<b>select</b> <i>id</i>=<u>"fruit"</u> <i>required</i>> + <<b>option</b> <i>value</i>=<u>""</u> <i>selected</i>>Select a fruit…</<b>option</b>> + <<b>option</b>>…</<b>option</b>> +</<b>select</b>> + +<em><!-- Radios --></em> +<<b>fieldset</b>> + <<b>legend</b>>Size</<b>legend</b>> + <<b>label</b> <i>for</i>=<u>"small"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"small"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"small"</u> <i>checked</i>> + Small + </<b>label</b>> + <<b>label</b> <i>for</i>=<u>"medium"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"medium"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"medium"</u>> + Medium + </<b>label</b>> + <<b>label</b> <i>for</i>=<u>"large"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"large"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"large"</u>> + Large + </<b>label</b>> + <<b>label</b> <i>for</i>=<u>"extralarge"</u>> + <<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"extralarge"</u> <i>name</i>=<u>"size"</u> <i>value</i>=<u>"extralarge"</u> <i>disabled</i>> + Extra Large + </<b>label</b>> +</<b>fieldset</b>> + +<em><!-- Checkboxes --></em> +<<b>fieldset</b>> + <<b>label</b> <i>for</i>=<u>"terms"</u>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms"</u> <i>name</i>=<u>"terms"</u>> + I agree to the Terms and Conditions + </<b>label</b>> + <<b>label</b> <i>for</i>=<u>"terms_sharing"</u>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms_sharing"</u> <i>name</i>=<u>"terms_sharing"</u> <i>disabled checked</i>> + I agree to share my information with partners + </<b>label</b>> +</<b>fieldset</b>> + +<em><!-- Switches --></em> +<<b>fieldset</b>> + <<b>label</b> <i>for</i>=<u>"switch"</u>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"switch"</u> <i>name</i>=<u>"switch"</u> <i>role</i>=<u>"switch"</u>> + Publish on my profile + </<b>label</b>> + <<b>label</b> <i>for</i>=<u>"switch_disabled"</u>> + <<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"switch_disabled"</u> <i>name</i>=<u>"switch_disabled"</u> <i>role</i>=<u>"switch_disabled"</u> <i>disabled checked</i>> + User must change password at next logon + </<b>label</b>> +</<b>fieldset</b>></code></pre> + + </footer> + </article> + <p>You can change a checkbox to an indeterminate state by setting the <code><i>indeterminate</i></code> property to <code><u>true</u></code></p> + <article aria-label="Indeterminate checkbox example"> + <label for="indeterminate-checkbox"> + <input type="checkbox" id="indeterminate-checkbox" name="indeterminate-checkbox"> + Select all + </label> + <script>document.getElementById('indeterminate-checkbox').indeterminate = true;</script> + <footer class="code"> + +<pre><code><<b>script</b>> + <i>document</i>.<b>getElementById</b>(<u>'indeterminate-checkbox'</u>).<i>indeterminate</i> = <u>true</u>; +</<b>script</b>></code></pre> + + </footer> + </article> + + <p>Others input types:</p> + <article aria-label="Search, file browser, range slider, date, time, color examples"> + <input type="search" id="search" name="search" placeholder="Search"> + <label for="file">File browser + <input type="file" id="file" name="file"> + </label> + <label for="range">Range slider + <input type="range" min="0" max="100" value="50" id="range" name="range"> + </label> + <label for="date">Date + <input type="date" id="date" name="date"> + </label> + <label for="time">Time + <input type="time" id="time" name="time"> + </label> + <label for="color">Color + <input type="color" id="color" name="color" value="#0eaaaa"> + </label> + <footer class="code"> + +<pre><code><em><!-- Search --></em> +<<b>input</b> <i>type</i>=<u>"search"</u> <i>id</i>=<u>"search"</u> <i>name</i>=<u>"search"</u> <i>placeholder</i>=<u>"Search"</u>> + +<!-- File browser --></em> +<<b>label</b> <i>for</i>=<u>"file"</u>>File browser + <<b>input</b> <i>type</i>=<u>"file"</u> <i>id</i>=<u>"file"</u> <i>name</i>=<u>"file"</u>> +</<b>label</b>> + +<em><!-- Range slider --></em> +<<b>label</b> <i>for</i>=<u>"range"</u>>Range slider + <<b>input</b> <i>type</i>=<u>"range"</u> <i>min</i>=<u>"0"</u> <i>max</i>=<u>"100"</u> <i>value</i>=<u>"50"</u> <i>id</i>=<u>"range"</u> <i>name</i>=<u>"range"</u>> +</<b>label</b>> + +<em><!-- Date --></em> +<<b>label</b> <i>for</i>=<u>"date"</u>>Date + <<b>input</b> <i>type</i>=<u>"date"</u> <i>id</i>=<u>"date"</u> <i>name</i>=<u>"date"</u>> +</<b>label</b>> + +<em><!-- Time --></em> +<<b>label</b> <i>for</i>=<u>"time"</u>>Time + <<b>input</b> <i>type</i>=<u>"time"</u> <i>id</i>=<u>"time"</u> <i>name</i>=<u>"time"</u>> +</<b>label</b>> + +<em><!-- Color --></em> +<<b>label</b> <i>for</i>=<u>"color"</u>>Color + <<b>input</b> <i>type</i>=<u>"color"</u> <i>id</i>=<u>"color"</u> <i>name</i>=<u>"color"</u> <i>value</i>=<u>"#0eaaaa"</u>> +</<b>label</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/grid.html b/htmx/static/pico-1.5.11/docs/src/grid.html new file mode 100644 index 0000000..6083516 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/grid.html @@ -0,0 +1,67 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Grid` + description=`.grid enable a minimal grid system with auto-layout columns.` + canonical=`grid.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`grid-link`} + + <div role="document"> + <section id="grid"> + <hgroup> + <h1>Grid</h1> + <h2><code>.grid</code> enable a minimal grid system with auto-layout columns.</h2> + </hgroup> + <article aria-label="Grid example"> + <div class="grid"> + <div>1</div> + <div>2</div> + <div>3</div> + <div>4</div> + </div> + <footer class="code"> + +<pre><code><<b>div</b> <i>class</i>=<u>"grid"</u>> + <<b>div</b>>1</<b>div</b>> + <<b>div</b>>2</<b>div</b>> + <<b>div</b>>3</<b>div</b>> + <<b>div</b>>4</<b>div</b>> +</<b>div</b>></code></pre> + + </footer> + </article> + <p>Columns intentionally collapses below large devices <code>(<u>992px</u>)</code></p> + <p>To go further, discover how to <a href="https://codesandbox.io/s/github/picocss/examples/tree/master/v1-bootstrap-grid">merge Pico with the Bootstrap grid system</a>.</p> + <details> + <summary> + <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <circle cx="12" cy="12" r="10"></circle> + <line x1="12" y1="16" x2="12" y2="12"></line> + <line x1="12" y1="8" x2="12.01" y2="8"></line> + </svg> + More about grids + </summary> + <p>As Pico focuses on native HTML elements, we kept this grid system very minimalist.</p> + <p>A complete grid system in flexbox, with all the ordering, offsetting and, breakpoints utilities, can be heavier than the total size of the Pico library. Not really in the Pico spirit.</p> + <p>If you need a quick way to prototyping or build a complex layout, you can look at <strong>Flexbox grid layouts</strong>. For example, <a href="https://getbootstrap.com/docs/4.2/getting-started/contents/">Bootstrap Grid System only</a> or <a href="http://flexboxgrid.com/">Flexbox Grid</a>.</p> + <p>If you need a light and custom grid, you can look at <strong>CSS Grid Generators</strong>. For example, <a href="https://cssgrid-generator.netlify.com/">CSS Grid Generator</a>, <a href="http://grid.layoutit.com/">Layoutit!</a> or <a href="https://griddy.io/">Griddy</a>.</p> + <p>Alternatively, you can <a href="https://learncssgrid.com/">learn about CSS Grid</a>.</p> + </details> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + <script src="js/grid.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/index.html b/htmx/static/pico-1.5.11/docs/src/index.html new file mode 100644 index 0000000..5c52c54 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/index.html @@ -0,0 +1,59 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Documentation` + description=`Pico works without package manager or dependencies! There are 4 ways to get started with Pico CSS: manually, from a CDN, with NPM, or with Composer.` + canonical=`` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`start-link`} + + <div role="document"> + <section id="start"> + <hgroup> + <h1>Usage</h1> + <h2>Works without package manager or dependencies 🙂!</h2> + </hgroup> + <p>There are 4 ways to get started with Pico CSS:</p> + <h3>Install manually</h3> + <p><a href="https://github.com/picocss/pico/archive/refs/tags/v1.5.11.zip">Download Pico</a> and link <code>/css/pico.min.css</code> in the <code><<b>head</b>></code> of your website.</p> + <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>></code></pre> + <h3>Install from CDN</h3> + <p>Alternatively, you can use <a href="https://www.jsdelivr.com/package/npm/@picocss/pico">jsDelivr CDN</a> to link pico.css</p> + <pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"</u>></code></pre> + <h3>Install with NPM</h3> + <pre><code><b>npm</b> <i>install</i> <u>@picocss/pico</u></code></pre> + <h3>Install with Composer</h3> + <pre><code><b>composer</b> <i>require</i> <u>picocss/pico</u></code></pre> + <p>Starter HTML template:</p> + +<pre><code><em><!doctype html></em> +<<b>html</b> <i>lang</i>=<u>"en"</u>> + <<b>head</b>> + <<b>meta</b> <i>charset</i>=<u>"utf-8"</u>> + <<b>meta</b> <i>name</i>=<u>"viewport"</u> <i>content</i>=<u>"width=device-width, initial-scale=1"</u>> + <<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>> + <<b>title</b>>Hello, world!</<b>title</b>> + </<b>head</b>> + <<b>body</b>> + <<b>main</b> <i>class</i>=<u>"container"</u>> + <<b>h1</b>>Hello, world!</<b>h1</b>> + </<b>main</b>> + </<b>body</b>> +</<b>html</b>></code></pre> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/loading.html b/htmx/static/pico-1.5.11/docs/src/loading.html new file mode 100644 index 0000000..b2fe190 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/loading.html @@ -0,0 +1,51 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Loading` + description=`aria-busy='true' enable a loading indicator.` + canonical=`loading.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`loading-link`} + + <div role="document"> + <section id="loading"> + <hgroup> + <h1>Loading</h1> + <h2><code><i>aria-busy</i>=<u>"true"</u></code> enable a loading indicator.</h2> + </hgroup> + <article aria-label="Loading buttons example"> + <button aria-busy="true">Please wait…</button> + <button aria-busy="true" class="secondary"></button> + <footer class="code"> + +<pre><code><<b>button</b> <i>aria-busy</i>=<u>"true"</u>>Please wait…</<b>button</b>> +<<b>button</b> <i>aria-busy</i>=<u>"true"</u> <i>class</i>=<u>"secondary"</u>></<b>button</b>></code></pre> + + </footer> + </article> + <p>It can be applied to any block:</p> + <article aria-busy="true"></article> + <pre><code><<b>article</b> <i>aria-busy</i>=<u>"true"</u>></<b>article</b>></code></pre> + <p>Or any text element:</p> + <article aria-label="Loading paragraph example"> + <a href="#" aria-busy="true" onclick="event.preventDefault()">Generating link, please wait…</a> + <footer class="code"> + <pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>aria-busy</i>=<u>"true"</u>>Generating link, please wait…</<b>a</b>></code></pre> + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/modal.html b/htmx/static/pico-1.5.11/docs/src/modal.html new file mode 100644 index 0000000..5feb1ce --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/modal.html @@ -0,0 +1,206 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Modal` + description=`A flexible container with graceful spacings across devices and viewports.` + canonical=`modal.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`modal-link`} + + <div role="document"> + <section id="modal"> + <hgroup> + <h1>Modal</h1> + <h2>The classic modal element with graceful spacings across devices and viewports.</h2> + </hgroup> + + <p>Modals are built with <code><<b>dialog</b>></code> as a wrapper and <code><<b>article</b>></code> as a content container.</p> + <p>Inside <code><<b>header</b>></code>, <code><<b>a</b> <i>class</i>=<u>"close"</u>></code> is defined to <code><i>float</i>: <u>right</u>;</code> allowing a close icon to be top aligned with a title.</p> + + <dialog class="example" open> + <article> + <header> + <a href="#close" aria-label="Close" class="close" onclick="event.preventDefault()"></a> + <p>Modal title</p> + </header> + <p> + Nunc nec ligula a tortor sollicitudin dictum in vel enim. + Quisque facilisis turpis vel eros dictum aliquam et nec turpis. + Sed eleifend a dui nec ullamcorper. + Praesent vehicula lacus ac justo accumsan ullamcorper. + </p> + </article> + </dialog> + +<pre><code><<b>dialog</b> <i>open</i>> + <<b>article</b>> + <<b>header</b>> + <<b>a</b> <i>href</i>=<u>"#close"</u> <i>aria-label</i>=<u>"Close"</u> <i>class</i>=<u>"close"</u>></<b>a</b>> + Modal title + </<b>header</b>> + <<b>p</b>> + Nunc nec ligula a tortor sollicitudin dictum in vel enim. + Quisque facilisis turpis vel eros dictum aliquam et nec turpis. + Sed eleifend a dui nec ullamcorper. + Praesent vehicula lacus ac justo accumsan ullamcorper. + </<b>p</b>> + </<b>article</b>> +</<b>dialog</b>></code></pre> + + <p>Inside <code><<b>footer</b>></code>, the content is right aligned by default.</p> + + <dialog class="example" open> + <article> + <h3>Confirm your action!</h3> + <p> + Mauris non nibh vel nisi sollicitudin malesuada. + Donec ut sagittis erat. Praesent eu eros felis. + Ut consectetur placerat pulvinar. + </p> + <footer> + <a href="#cancel" role="button" class="secondary" onclick="event.preventDefault()">Cancel</a><a href="#confirm" role="button" onclick="event.preventDefault()">Confirm</a> + </footer> + </article> + </dialog> + +<pre><code><<b>dialog</b> <i>open</i>> + <<b>article</b>> + <<b>h3</b>>Confirm your action!</<b>h3</b>> + <<b>p</b>> + Mauris non nibh vel nisi sollicitudin malesuada. + Donec ut sagittis erat. Praesent eu eros felis. + Ut consectetur placerat pulvinar. + </<b>p</b>> + <<b>footer</b>> + <<b>a</b> <i>href</i>=<u>"#cancel"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>>Cancel</<b>a</b>> + <<b>a</b> <i>href</i>=<u>"#confirm"</u> <i>role</i>=<u>"button"</u>>Confirm</<b>a</b>> + </<b>footer</b>> + </<b>article</b>> +</<b>dialog</b>></code></pre> + + <hgroup> + <h2>Live demo</h2> + <h3>Toggle a modal by clicking the button below.</h3> + </hgroup> + + <article> + <button class="contrast" data-target="modal-example" onclick="toggleModal(event)">Launch demo modal</button> + <footer class="code"> + +<pre><code><em><!-- Button to trigger the modal --></em> +<<b>button</b> <i>class</i>=<u>"contrast"</u> + <i>data-target</i>=<u>"modal-example"</u> + <i>onClick</i>=<u>"toggleModal(event)"</u>> + Launch demo modal +</<b>button</b>> + +<em><!-- Modal --></em> +<<b>dialog</b> <i>id</i>=<u>"modal-example"</u>> + <<b>article</b>> + <<b>a</b> <i>href</i>=<u>"#close"</u> + <i>aria-label</i>=<u>"Close"</u> + <i>class</i>=<u>"close"</u> + <i>data-target</i>=<u>"modal-example"</u> + <i>onClick</i>=<u>"toggleModal(event)"</u>> + </<b>a</b>> + <<b>h3</b>>Confirm your action!</<b>h3</b>> + <<b>p</b>> + Cras sit amet maximus risus. + Pellentesque sodales odio sit amet augue finibus pellentesque. + Nullam finibus risus non semper euismod. + </<b>p</b>> + <<b>footer</b>> + <<b>a</b> <i>href</i>=<u>"#cancel"</u> + <i>role</i>=<u>"button"</u> + <i>class</i>=<u>"secondary"</u> + <i>data-target</i>=<u>"modal-example"</u> + <i>onClick</i>=<u>"toggleModal(event)"</u>> + Cancel + </<b>a</b>> + <<b>a</b> <i>href</i>=<u>"#confirm"</u> + <i>role</i>=<u>"button"</u> + <i>data-target</i>=<u>"modal-example"</u> + <i>onClick</i>=<u>"toggleModal(event)"</u>> + Confirm + </<b>a</b>> + </<b>footer</b>> + </<b>article</b>> +</<b>dialog</b>></code></pre> + + </footer> + </article> + + <p>Pico does not include JavaScript code. You will need to implement your JS to interact with modals.</p> + <p>As a starting point, you can look at this example: <a href="https://github.com/picocss/examples/blob/master/v1-preview/js/modal.js">modal.js</a>.</p> + <p>To make a modal appear, add the <code><i>open</i></code> attribute to the <code><<b>dialog</b></u>></code> container.</p> + +<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> + + <h2>Utilities</h2> + <p>Modals come with 3 utility classes.</p> + <p>ℹ️ These classes are not available in the <a href="classless.html">class-less version</a>.</p> + <p><code>.modal-is-open</code> prevents any scrolling and interactions below the modal.</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>.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> + + ${require('./_footer.html')} + + </div> + </main> + + <dialog id="modal-example"> + <article> + <a href="#close" aria-label="Close" class="close" data-target="modal-example" onclick="toggleModal(event)"></a> + <h3>Confirm your action!</h3> + <p>Cras sit amet maximus risus. Pellentesque sodales odio sit amet augue finibus pellentesque. Nullam finibus risus non semper euismod.</p> + <footer> + <a href="#cancel" role="button" class="secondary" data-target="modal-example" onclick="toggleModal(event)">Cancel</a><a href="#confirm" role="button" data-target="modal-example" onclick="toggleModal(event)">Confirm</a> + </footer> + </article> + </dialog> + + <script src="js/commons.min.js"></script> + <script src="js/modal.min.js"></script> + + </script> + </body> +</html>
\ No newline at end of file diff --git a/htmx/static/pico-1.5.11/docs/src/navs.html b/htmx/static/pico-1.5.11/docs/src/navs.html new file mode 100644 index 0000000..f109deb --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/navs.html @@ -0,0 +1,157 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Navs` + description=`The essential navbar component in pure semantic HTML.` + canonical=`navs.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`navs-link`} + + <div role="document"> + <section id="navs"> + <hgroup> + <h1>Navs</h1> + <h2>The essential navbar component in pure semantic HTML.</h2> + </hgroup> + <article aria-label="Nav example"> + <nav> + <ul> + <li><strong>Brand</strong></li> + </ul> + <ul> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li><a href="#" onclick="event.preventDefault()" role="button">Button</a></li> + </ul> + </nav> + <footer class="code"> + +<pre><code><<b>nav</b>> + <<b>ul</b>> + <<b>li</b>><<b>strong</b>>Brand</<b>strong</b>></<b>li</b>> + </<b>ul</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>>Button</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + <p><code><<b>ul</b>></code> are automatically distributed horizontally.</p> + <p><code><<b>li</b>></code> are unstyled and inlined.</p> + <article aria-label="Nav example"> + <nav> + <ul> + <li> + <a href="#" onclick="event.preventDefault()" class="secondary" aria-label="Menu"> + <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="16px" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <line x1="3" y1="12" x2="21" y2="12"> + </line><line x1="3" y1="6" x2="21" y2="6"> + </line><line x1="3" y1="18" x2="21" y2="18"> + </line> + </svg> + </a> + </li> + </ul> + <ul> + <li><strong>Brand</strong></li> + </ul> + <ul> + <li> + <a href="#" onclick="event.preventDefault()" class="secondary" aria-label="Twitter"> + <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="16px" fill="currentColor" stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path> + </svg> + </a> + </li> + </ul> + </nav> + <footer class="code"> + +<pre><code><<b>nav</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>>…</<b>a</b>></<b>li</b>> + </<b>ul</b>> + <<b>ul</b>> + <<b>li</b>><<b>strong</b>>Brand</<b>strong</b>></<b>li</b>> + </<b>ul</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>>…</<b>a</b>></<b>li</b>> + </<b>ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + <p>Inside <code><<b>aside</b>></code>, navs are stacked vertically.</p> + <article aria-label="Vertical nav example"> + <aside> + <nav> + <ul> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + <li><a href="#" onclick="event.preventDefault()">Link</a></li> + </ul> + </nav> + </aside> + <footer class="code"> + +<pre><code><<b>aside</b>> + <<b>nav</b>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Link</<b>a</b>></<b>li</b>> + </<b>ul</b>> + </<b>nav</b>> +</<b>aside</b>></code></pre> + + </footer> + </article> + + <p>With <code><i>aria-label</i>=<u>"breadcrumb"</u></code>, you can turn a nav into a breadcrumb.</p> + + <article aria-label="Breadcrumb example"> + <nav aria-label="breadcrumb"> + <ul> + <li> + <a href="#" onclick="event.preventDefault()">Home</a> + </li> + <li> + <a href="#" onclick="event.preventDefault()">Category</a> + </li> + <li>Page</li> + </ul> + </nav> + + <footer class="code"> + +<pre><code><<b>nav</b> <i>aria-label</i>=<u>"breadcrumb"</u>> + <<b>ul</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Home<<b>/a</b>><<b>/li</b>> + <<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Category<<b>/a</b>><<b>/li</b>> + <<b>li</b>>Page<<b>/li</b>> + <<b>/ul</b>> +</<b>nav</b>></code></pre> + + </footer> + </article> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> +</body> + +</html>
\ No newline at end of file diff --git a/htmx/static/pico-1.5.11/docs/src/progress.html b/htmx/static/pico-1.5.11/docs/src/progress.html new file mode 100644 index 0000000..e5ce1e2 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/progress.html @@ -0,0 +1,48 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Progress` + description=`Progress bar element in pure HTML, without JavaScript.` + canonical=`progress.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`progress-link`} + + <div role="document"> + <section id="progress"> + <hgroup> + <h1>Progress</h1> + <h2>Progress bar element in pure HTML, without JavaScript.</h2> + </hgroup> + <article aria-label="Progress bar example"> + <progress value="25" max="100"></progress> + <footer class="code"> + +<pre><code><<b>progress</b> <i>value</i>=<u>"25</u>" <i>max</i>=<u>"100"</u>></<b>progress</b>></code></pre> + + </footer> + </article> + <p>A progress bar without a <code><b>value</b></code> attribute is indeterminate.</p> + <article aria-label="Indeterminate progress bar example"> + <progress></progress> + <footer class="code"> + +<pre><code><<b>progress</b>></<b>progress</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/rtl.html b/htmx/static/pico-1.5.11/docs/src/rtl.html new file mode 100644 index 0000000..479a307 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/rtl.html @@ -0,0 +1,39 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`RTL (Right-To-Left)` + description=`Support for right-to-left text in Pico with dir='rtl'` + canonical=`rtl.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`rtl-link`} + + <div role="document"> + <section id="rtl"> + <hgroup> + <h1>RTL</h1> + <h2>Support for right-to-left text in Pico.</h2> + </hgroup> + <p>To enable RTL in Pico you need to set <code><i>dir</i>=<u>"rtl"</u></code>on the <code><<b>html</b>></code> element (<a href="https://codesandbox.io/s/github/picocss/examples/tree/master/v1-preview-rtl">example</a>).</p> + +<pre><code><em><!doctype html></em> +<<b>html</b> <i>dir</i>=<u>"rtl"</u> <i>lang</i>=<u>"ar"</u>> + <em>...</em> +</<b>html</b>></code></pre> + + <p>ℹ️ The RTL feature is still experimental and will probably evolve.</p> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/scroller.html b/htmx/static/pico-1.5.11/docs/src/scroller.html new file mode 100644 index 0000000..bea1ab4 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/scroller.html @@ -0,0 +1,95 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Horizontal scroller` + description=`<figure> acts as a container to make any content scrollable horizontally.` + canonical=`scroller.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`scroller-link`} + + <div role="document"> + <section id="scroller"> + <hgroup> + <h1>Horizontal scroller</h1> + <h2><code><<b>figure</b>></code> acts as a container to make any content scrollable horizontally.</h2> + </hgroup> + <p>Useful to have responsive <code><<b>table</b>></code></p> + <figure> + <table role="grid"> + <thead> + <tr> + <th scope="col">#</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + </tr> + </thead> + <tbody> + <tr> + <th scope="row">1</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">2</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">3</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + </tbody> + </table> + </figure> + +<pre><code><<b>figure</b>> + <<b>table</b>> + … + </<b>table</b>> +</<b>figure</b>></code></pre> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/tables.html b/htmx/static/pico-1.5.11/docs/src/tables.html new file mode 100644 index 0000000..d097f00 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/tables.html @@ -0,0 +1,177 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Tables` + description=`Default styles for tables without .classes` + canonical=`tables.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`tables-link`} + + <div role="document"> + <section id="tables"> + <hgroup> + <h1>Tables</h1> + <h2>Default styles for tables without <code>.classes</code></h2> + </hgroup> + <figure> + <table> + <thead> + <tr> + <th scope="col">#</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + </tr> + </thead> + <tbody> + <tr> + <th scope="row">1</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">2</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">3</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + </tbody> + <tfoot> + <tr> + <th scope="row">#</th> + <td>Total</td> + <td>Total</td> + <td>Total</td> + <td>Total</td> + <td>Total</td> + </tr> + </tfoot> + </table> + </figure> + +<pre><code><<b>table</b>> + <<b>thead</b>> + <<b>tr</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>#</<b>th</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>Heading</<b>th</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>Heading</<b>th</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>Heading</<b>th</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>Heading</<b>th</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>Heading</<b>th</b>> + </<b>tr</b>> + </<b>thead</b>> + <<b>tbody</b>> + <<b>tr</b>> + <<b>th</b> <i>scope</i>=<u>"row"</u>>1</<b>th</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + </<b>tr</b>> + <<b>tr</b>> + <<b>th</b> <i>scope</i>=<u>"row"</u>>1</<b>th</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + </<b>tr</b>> + <<b>tr</b>> + <<b>th</b> <i>scope</i>=<u>"row"</u>>1</<b>th</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + <<b>td</b>>Cell</<b>td</b>> + </<b>tr</b>> + </<b>tbody</b>> + <<b>tfoot</b>> + <<b>tr</b>> + <<b>th</b> <i>scope</i>=<u>"col"</u>>#</<b>th</b>> + <<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>> + <<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>> + <<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>> + <<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>> + <<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>> + </<b>tr</b>> + </<b>tfoot</b>> +</<b>table</b>></code></pre> + + <p><code><i>role</i>=<u>"grid"</u></code> enable striped rows.</p> + <figure> + <table role="grid"> + <thead> + <tr> + <th scope="col">#</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + <th scope="col">Heading</th> + </tr> + </thead> + <tbody> + <tr> + <th scope="row">1</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">2</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + <tr> + <th scope="row">3</th> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + <td>Cell</td> + </tr> + </tbody> + </table> + </figure> + +<pre><code><<b>table</b> <i>role</i>=<u>"grid"</u>> + <em>…</em> +</<b>table</b>></code></pre> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/themes.html b/htmx/static/pico-1.5.11/docs/src/themes.html new file mode 100644 index 0000000..1f6cb99 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/themes.html @@ -0,0 +1,66 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Themes` + description=`Pico is shipped with 2 consistent themes: Light & Dark. The Light theme is used by default. The Dark theme is automatically enabled if the user has dark mode enabled ('prefers-color-scheme: dark').` + canonical=`themes.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`themes-link`} + + <div role="document"> + <section id="themes"> + <hgroup> + <h1>Themes</h1> + <h2>Pico is shipped with 2 consistent themes: Light & Dark.</h2> + </hgroup> + <p>The Light theme is used by default. The Dark theme is automatically enabled if the user has dark mode enabled <code><i>prefers-color-scheme</i>: <u>dark</u></code></p> + <article aria-label="Theme switcher"> + <button class="contrast theme-switcher">…</button> + </article> + <p>Themes can be forced on document level <code><<b>html</b> <i>data-theme</i>=<u>"light"</u>></code> or on any HTML element <code><<b>article</b> <i>data-theme</i>=<u>"dark"</u>></code></p> + <article data-theme="light" aria-label="Forced light theme example"> + <h3>Light theme</h3> + <form class="grid"> + <input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required> + <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required> + <button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button> + </form> + <footer class="code"> + +<pre><code><<b>article</b> <i>data-theme</i>=<u>"light"</u>> + … +</<b>article</b>></code></pre> + + </footer> + </article> + <article data-theme="dark" aria-label="Forced dark theme example"> + <h3>Dark theme</h3> + <form class="grid"> + <input type="text" name="login" placeholder="Login" aria-label="Login" autocomplete="nickname" required> + <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required> + <button type="submit" aria-label="Example button" onclick="event.preventDefault()">Login</button> + </form> + <footer class="code"> + +<pre><code><<b>article</b> <i>data-theme</i>=<u>"dark"</u>> + … +</<b>article</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/tooltips.html b/htmx/static/pico-1.5.11/docs/src/tooltips.html new file mode 100644 index 0000000..be225a3 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/tooltips.html @@ -0,0 +1,65 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Tooltips` + description=`Enable tooltips everywhere in pure HTML, without JavaScript.` + canonical=`tooltips.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`tooltips-link`} + + <div role="document"> + <section id="tooltips"> + <hgroup> + <h1>Tooltips</h1> + <h2>Enable tooltips everywhere in pure HTML, without JavaScript.</h2> + </hgroup> + <article aria-label="Tooltips examples"> + <p>Tooltip on a <a href="#" onclick="event.preventDefault()" data-tooltip="Tooltip">link</a></p> + <p>Tooltip on <em data-tooltip="Tooltip">inline element</em></p> + <p><button data-tooltip="Tooltip" aria-label="Example button">Tooltip on a button</button></p> + <footer class="code"> + +<pre><code><<b>p</b>>Tooltip on a <<b>a</b> <i>href</i>=<u>"#"</u> <i>data-tooltip</i>=<u>"Tooltip"</u>>link</<b>a</b>></<b>p</b>> +<<b>p</b>>Tooltip on <<b>em</b> <i>data-tooltip</i>=<u>"Tooltip"</u>>inline element</<b>em</b>></<b>p</b>> +<<b>p</b>><<b>button</b> <i>data-tooltip</i>=<u>"Tooltip"</u>>Tooltip on a button</<b>button</b>></<b>p</b>> +</code></pre> + + </footer> + </article> + + <p><code><i>data-placement</i></code> with the values <code><u>top</u></code>, <code><u>right</u></code>, <code><u>bottom</u></code> or <code><u>left</u></code> is used to control the position of the tooltip.</p> + + <article aria-label="Tooltips examples"> + <div class="grid"> + <div class="top"><button data-tooltip="Top" data-placement="top">Top</button></div> + <div class="right"><button data-tooltip="Right" data-placement="right">Right</button></div> + <div class="bottom"><button data-tooltip="Bottom" data-placement="bottom">Bottom</button></div> + <div class="left"><button data-tooltip="Left" data-placement="left">Left</button></div> + </div> + <footer class="code"> + +<pre><code><<b>button</b> <i>data-tooltip</i>=<u>"Top"</u> <i>data-placement</i>=<u>"top"</u>>Top</<b>button</b>> +<<b>button</b> <i>data-tooltip</i>=<u>"Right"</u> <i>data-placement</i>=<u>"right"</u>>Right</<b>button</b>> +<<b>button</b> <i>data-tooltip</i>=<u>"Bottom"</u> <i>data-placement</i>=<u>"bottom"</u>>Bottom</<b>button</b>> +<<b>button</b> <i>data-tooltip</i>=<u>"Left"</u> <i>data-placement</i>=<u>"left"</u>>Left</<b>button</b>> +</code></pre> + + </footer> + </article> + + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/typography.html b/htmx/static/pico-1.5.11/docs/src/typography.html new file mode 100644 index 0000000..55cdc1f --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/typography.html @@ -0,0 +1,208 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Typography` + description=`All typographic elements are responsive, allowing text to scale gracefully across devices and viewports.` + canonical=`typography.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`typography-link`} + + <div role="document"> + <section id="typography"> + <hgroup> + <h1>Typography</h1> + <h2> + All typographic elements are responsive, allowing text to scale + gracefully across devices and viewports. + </h2> + </hgroup> + <figure> + <table role="grid"> + <thead> + <tr> + <th>Device</th> + <th>Extra small</th> + <th>Small</th> + <th>Medium</th> + <th>Large</th> + <th>Extra large</th> + </tr> + </thead> + <tbody> + <tr> + <th>Base font</th> + <td>16<small>px</small></td> + <td>17<small>px</small></td> + <td>18<small>px</small></td> + <td>19<small>px</small></td> + <td>20<small>px</small></td> + </tr> + <tr> + <th><code><<b>h1</b>></code></th> + <td>32<small>px</small></td> + <td>34<small>px</small></td> + <td>36<small>px</small></td> + <td>38<small>px</small></td> + <td>40<small>px</small></td> + </tr> + <tr> + <th><code><<b>h2</b>></code></th> + <td>28<small>px</small></td> + <td>29<small>px</small></td> + <td>31<small>.5px</small></td> + <td>33<small>.25px</small></td> + <td>35<small>px</small></td> + </tr> + <tr> + <th><code><<b>h3</b>></code></th> + <td>24<small>px</small></td> + <td>25<small>.5px</small></td> + <td>27<small>px</small></td> + <td>28<small>.5px</small></td> + <td>30<small>px</small></td> + </tr> + <tr> + <th><code><<b>h4</b>></code></th> + <td>20<small>px</small></td> + <td>21<small>.25px</small></td> + <td>22<small>.5px</small></td> + <td>23<small>.75px</small></td> + <td>25<small>px</small></td> + </tr> + <tr> + <th><code><<b>h5</b>></code></th> + <td>18<small>px</small></td> + <td>19<small>.125px</small></td> + <td>20<small>.25px</small></td> + <td>21<small>.375px</small></td> + <td>22<small>.5px</small></td> + </tr> + <tr> + <th><code><<b>h6</b>></code></th> + <td>16<small>px</small></td> + <td>17<small>px</small></td> + <td>18<small>px</small></td> + <td>19<small>px</small></td> + <td>20<small>px</small></td> + </tr> + <tr> + <th><code><<b>small</b>></code></th> + <td>14<small>px</small></td> + <td>14<small>.875px</small></td> + <td>15<small>.75px</small></td> + <td>16<small>.625px</small></td> + <td>17<small>.5px</small></td> + </tr> + </tbody> + </table> + </figure> + <p>Headings:</p> + <article aria-label="Headings examples"> + <h1>Heading 1</h1> + <h2>Heading 2</h2> + <h3>Heading 3</h3> + <h4>Heading 4</h4> + <h5>Heading 5</h5> + <h6>Heading 6</h6> + <footer class="code"> + <pre><code><<b>h1</b>>Heading 1</<b>h1</b>> +<<b>h2</b>>Heading 2</<b>h2</b>> +<<b>h3</b>>Heading 3</<b>h3</b>> +<<b>h4</b>>Heading 4</<b>h4</b>> +<<b>h5</b>>Heading 5</<b>h5</b>> +<<b>h6</b>>Heading 6</<b>h6</b>></code></pre> + </footer> + </article> + <p> + Inside a <code><<b>hgroup</b>></code> or a + <code><<b>div</b> <i>class</i>=<u>"headings"</u>></code> all + <code><i>margin-bottom</i></code> are collapsed and the + <code>:last-child</code> is muted. + </p> + <article aria-label="Hgroup example"> + <div class="headings"> + <h2>Heading 2</h2> + <p>Subtitle for heading 2</p> + </div> + <footer class="code"> + <pre><code><<b>hgroup</b>> + <<b>h2</b>>Heading 2</<b>h2</b>> + <<b>p</b>>Subtitle for heading 2</<b>p</b>> +</<b>hgroup</b>></code></pre> + </footer> + </article> + + <p>Inline text elements:</p> + <article aria-label="Inline text examples"> + <div class="grid"> + <div> + <p><abbr title="Abbreviation">Abbr.</abbr> <code>abbr</code></p> + <p><strong>Bold</strong> <code>strong</code> <code>b</code></p> + <p> + <em>Italic</em> <code>i</code> <code>em</code> + <code>cite</code> + </p> + <p><del>Deleted</del> <code>del</code></p> + <p><ins>Inserted</ins> <code>ins</code></p> + <p><kbd>Ctrl + S</kbd> <code>kbd</code></p> + </div> + <div> + <p><mark>Highlighted</mark> <code>mark</code></p> + <p><s>Strikethrough</s> <code>s</code></p> + <p><small>Small </small> <code>small</code></p> + <p>Text <sub>Sub</sub> <code>sub</code></p> + <p>Text <sup>Sup</sup> <code>sup</code></p> + <p><u>Underline</u> <code>u</code></p> + </div> + </div> + </article> + <p>Links come with <code>.secondary</code> and <code>.contrast</code> styles.</p> + <p>ℹ️ These classes are not available in the <a href="classless.html">class-less version</a>.</p> + <article aria-label="Links examples"> + <a href="#" onclick="event.preventDefault()">Primary</a><br /> + <a href="#" onclick="event.preventDefault()" class="secondary" + >Secondary</a + ><br /> + <a href="#" onclick="event.preventDefault()" class="contrast" + >Contrast</a + ><br /> + <footer class="code"> + <pre><code><<b>a</b> <i>href</i>=<u>"#"</u>>Primary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>>Secondary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"contrast"</u>>Contrast</<b>a</b>></code></pre> + </footer> + </article> + <p>Blockquote:</p> + <article aria-label="Blockquote example"> + <blockquote> + "Maecenas vehicula metus tellus, vitae congue turpis hendrerit + non. Nam at dui sit amet ipsum cursus ornare." + <footer> + <cite>- Phasellus eget lacinia</cite> + </footer> + </blockquote> + <footer class="code"> + <pre><code><<b>blockquote</b>> + "Maecenas vehicula metus tellus, vitae congue turpis hendrerit non. + Nam at dui sit amet ipsum cursus ornare." + <<b>footer</b>> + <<b>cite</b>>- Phasellus eget lacinia</<b>cite</b>> + </<b>footer</b>> +</<b>blockquote</b>></code></pre> + </footer> + </article> + </section> + + ${require('./_footer.html')} + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> diff --git a/htmx/static/pico-1.5.11/docs/src/we-love-classes.html b/htmx/static/pico-1.5.11/docs/src/we-love-classes.html new file mode 100644 index 0000000..e3718df --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/we-love-classes.html @@ -0,0 +1,38 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`We love .classes` + description=`As a starting point, Pico chose to be as neutral and semantic as possible using very few .classes. But of course, .classes are not a bad practice at all. Feel free to use modifiers.` + canonical=`we-love-classes.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`we-love-classes-link`} + + <div role="document"> + <section id="we-love-classes"> + <h1>We love <code>.classes</code></h1> + <p>As a starting point, Pico chose to be as neutral and semantic as possible using very few <code>.classes</code></p> + <p>But of course, <code>.classes</code> are not a bad practice at all.</p> + <p>Feel free to use <em>modifiers</em>.</p> + <div data-theme="valid"> + <pre><code><<b>button</b> <i>class</i>=<u>"warning"</u>>Action</<b>button</b>><br></code></pre> + </div> + <p>Just try to keep your HTML clean and semantic to keep the Pico spirit.</p> + <div data-theme="invalid"> + <pre><code><<b>button</b> <i>class</i>=<u>"button-red margin-large padding-medium"</u>>Action</<b>button</b>><br></code></pre> + </div> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> |
