mirror of
https://github.com/picocss/pico.git
synced 2025-07-01 10:22:21 -04:00
grid system with breakpoints
This commit is contained in:
parent
157899683e
commit
e69d24c5b9
12 changed files with 3294 additions and 318 deletions
|
@ -39,6 +39,17 @@
|
|||
--article-code-background-color: var(--code-background-color);
|
||||
}
|
||||
|
||||
.flex.demo > * > * {
|
||||
display: block;
|
||||
padding: 0.3em 0;
|
||||
background: #008000;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.flex.demo > *:nth-child(2n) > * {
|
||||
background: #00FFFF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Docs: Document
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
2
docs/css/pico.docs.min.css
vendored
2
docs/css/pico.docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -23,3 +23,15 @@
|
|||
[data-theme="dark"] {
|
||||
@include dark;
|
||||
}
|
||||
|
||||
// Display the grid with colors
|
||||
.flex.demo > * > * {
|
||||
display: block;
|
||||
padding: .3em 0;
|
||||
background: #008000;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.flex.demo > *:nth-child(2n) > * {
|
||||
background: #00FFFF;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
${require('./_head.html')
|
||||
title="FlexGrid"
|
||||
description=".flexgrid enables a responsive flexbox based minimal grid system with auto-layout columns that stack vertically as the page width is reduced."
|
||||
description=".flex enables a responsive flexbox based minimal grid system with auto-layout columns that stack vertically as the page width is reduced."
|
||||
canonical="flexgrid.html"
|
||||
}
|
||||
</head>
|
||||
|
@ -18,33 +18,19 @@
|
|||
<section id="flexgrid">
|
||||
<hgroup>
|
||||
<h1>FlexGrid</h1>
|
||||
<h2><code>.flexgrid</code> enables a responsive flexbox based minimal grid system with auto-layout columns that stack vertically as the page width is reduced.</h2>
|
||||
<h2><code>.flex</code> enables a responsive flexbox based minimal grid system with auto-layout columns that stack vertically as the page width is reduced.
|
||||
The following example should be one column until the page is atleast 500 px wide then it will become two columns.</h2>
|
||||
</hgroup>
|
||||
<article aria-label="FlexGrid example">
|
||||
<div class="flexgrid">
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
<h3>First Column</h3>
|
||||
<p>The grid columns will stack vertically as the page width is reduced.</p>
|
||||
<a href="#confirm" role="button">INFO</a>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<h3>Second Column</h3>
|
||||
<p>Each column gets equal space unless specified: class="col col-33"</p>
|
||||
<a href="#confirm" role="button">INFO</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="flex one two-500 demo">
|
||||
<div><span>1</span></div>
|
||||
<div><span>2</span></div>
|
||||
</div>
|
||||
<footer class="code">
|
||||
|
||||
<pre><code><<b>div</b> <i>class</i>=<u>"flexgrid"</u>>
|
||||
<<b>div</b> <i>class</i>=<u>"row"</u>>
|
||||
<<b>div</b> <i>class</i>=<u>"col"</u>>1</<b>div</b>>
|
||||
<<b>div</b> <i>class</i>=<u>"col"</u>>2</<b>div</b>>
|
||||
</<b>div</b>>
|
||||
<pre><code><<b>div</b> <i>class</i>=<u>"flex one two-500"</u>>
|
||||
<<b>div</b>>1</<b>div</b>>
|
||||
<<b>div</b>>2</<b>div</b>>
|
||||
</<b>div</b>></code></pre>
|
||||
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue