aboutsummaryrefslogtreecommitdiff
path: root/htmx/static/pico-1.5.11/docs/src/grid.html
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-05 23:18:49 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-05 23:18:49 -0500
commitbd5a00c61b355c857b5c99323592ca432dea5d0a (patch)
tree7e8ac7730527c1ad71e3fdac85840948fd23f45f /htmx/static/pico-1.5.11/docs/src/grid.html
parentc71b37eb23d4c8af7ab983de34c6da5be9363f3a (diff)
downloadpaste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.gz
paste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.xz
wip
Diffstat (limited to 'htmx/static/pico-1.5.11/docs/src/grid.html')
-rw-r--r--htmx/static/pico-1.5.11/docs/src/grid.html67
1 files changed, 67 insertions, 0 deletions
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>&lt;<b>div</b> <i>class</i>=<u>"grid"</u>&gt;
+ &lt;<b>div</b>&gt;1&lt;/<b>div</b>&gt;
+ &lt;<b>div</b>&gt;2&lt;/<b>div</b>&gt;
+ &lt;<b>div</b>&gt;3&lt;/<b>div</b>&gt;
+ &lt;<b>div</b>&gt;4&lt;/<b>div</b>&gt;
+&lt;/<b>div</b>&gt;</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>
+ &nbsp;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>