mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 02:36:15 -04:00
Small improvements
- Edit small font-size - Update docs
This commit is contained in:
parent
537f5008c2
commit
c874560a24
15 changed files with 115 additions and 102 deletions
|
@ -117,7 +117,7 @@ a.secondary, a.contrast {
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -117,7 +117,7 @@ a.secondary, a.contrast {
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|
|
@ -117,7 +117,7 @@ a.secondary, a.contrast {
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -60,7 +60,7 @@ a.secondary, a.contrast {
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -113,7 +113,7 @@ a.secondary, a.contrast {
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|
2
css/themes/default.min.css
vendored
2
css/themes/default.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -281,10 +281,10 @@ main > aside details[open] summary {
|
||||||
|
|
||||||
#grids .grid > * {
|
#grids .grid > * {
|
||||||
padding: calc(var(--spacing) / 2) 0;
|
padding: calc(var(--spacing) / 2) 0;
|
||||||
background: var(--secondary);
|
border-radius: var(--border-radius);
|
||||||
color: var(--secondary-inverse);
|
background: var(--code-background-color);
|
||||||
|
font-size: 87.5%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: .5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#grids details {
|
#grids details {
|
||||||
|
|
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
181
docs/index.html
181
docs/index.html
|
@ -289,10 +289,11 @@
|
||||||
<pre><code><<b>link</b> <i>rel</i>=<u>"stylesheet</u>" <i>href</i>=<u>"css/pico.fluid.classless.min.css"</u>></code></pre>
|
<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://unpkg.com/@picocss/pico@latest/">unpkg CDN</a>:</p>
|
<p>These <code>.classless</code> versions are also available on <a href="https://unpkg.com/@picocss/pico@latest/">unpkg CDN</a>:</p>
|
||||||
|
|
||||||
<pre><code><em>// Centered viewports</em>
|
<pre><code><em>// Centered viewport</em>
|
||||||
<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@latest/css/pico.classless.min.css"</u>>
|
<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@latest/css/pico.classless.min.css"</u>>
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
<em>// Fluid viewports</em>
|
<pre><code><em>// Fluid viewport</em>
|
||||||
<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@latest/css/pico.fluid.classless.min.css"</u>>
|
<<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@latest/css/pico.fluid.classless.min.css"</u>>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
|
@ -312,7 +313,7 @@
|
||||||
<<b>main</b> <i>class</i>=<u>"container"</u>></<b>main</b>>
|
<<b>main</b> <i>class</i>=<u>"container"</u>></<b>main</b>>
|
||||||
</<b>body</b>></code></pre>
|
</<b>body</b>></code></pre>
|
||||||
|
|
||||||
<p>Pico use the same breakpoints and viewports sizes as <a href="https://getbootstrap.com/docs/4.3/layout/grid/#grid-options">Bootstrap</a>.</p>
|
<p>Pico use the same breakpoints and viewports sizes as <a href="https://getbootstrap.com/docs/5.0/layout/breakpoints/#available-breakpoints">Bootstrap</a>.</p>
|
||||||
<figure>
|
<figure>
|
||||||
<table role="grid">
|
<table role="grid">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -328,19 +329,19 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Breakpoint</th>
|
<th>Breakpoint</th>
|
||||||
<td><576px</td>
|
<td><576<small>px</small></td>
|
||||||
<td>≥576px</td>
|
<td>≥576<small>px</small></td>
|
||||||
<td>≥768px</td>
|
<td>≥768<small>px</small></td>
|
||||||
<td>≥992px</td>
|
<td>≥992<small>px</small></td>
|
||||||
<td>≥1200px</td>
|
<td>≥1200<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Viewport</th>
|
<th>Viewport</th>
|
||||||
<td>None <small>(auto)</small></td>
|
<td>100<small>%</small></td>
|
||||||
<td>540px</td>
|
<td>540<small>px</small></td>
|
||||||
<td>720px</td>
|
<td>720<small>px</small></td>
|
||||||
<td>960px</td>
|
<td>960<small>px</small></td>
|
||||||
<td>1140px</td>
|
<td>1140<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -467,7 +468,7 @@
|
||||||
<section id="typography">
|
<section id="typography">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h2>Typography</h2>
|
<h2>Typography</h2>
|
||||||
<h3>All typographic elements are responsives, allowing text to scale gracefully across devices and viewport sizes.</h3>
|
<h3>All typographic elements are responsives, allowing text to scale gracefully across devices and viewports.</h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<figure>
|
<figure>
|
||||||
<table role="grid">
|
<table role="grid">
|
||||||
|
@ -484,59 +485,67 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Base font</th>
|
<th>Base font</th>
|
||||||
<td>16px</td>
|
<td>16<small>px</small></td>
|
||||||
<td>17px</td>
|
<td>17<small>px</small></td>
|
||||||
<td>18px</td>
|
<td>18<small>px</small></td>
|
||||||
<td>19px</td>
|
<td>19<small>px</small></td>
|
||||||
<td>20px</td>
|
<td>20<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h1</th>
|
<th><code><<b>h1</b>></code></th>
|
||||||
<td>32px</td>
|
<td>32<small>px</small></td>
|
||||||
<td>34px</td>
|
<td>34<small>px</small></td>
|
||||||
<td>36px</td>
|
<td>36<small>px</small></td>
|
||||||
<td>38px</td>
|
<td>38<small>px</small></td>
|
||||||
<td>40px</td>
|
<td>40<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h2</th>
|
<th><code><<b>h2</b>></code></th>
|
||||||
<td>28px</td>
|
<td>28<small>px</small></td>
|
||||||
<td>29px</td>
|
<td>29<small>px</small></td>
|
||||||
<td>31.5px</td>
|
<td>31<small><small>.5px</small></td>
|
||||||
<td>33.25px</td>
|
<td>33<small>.25px</small></td>
|
||||||
<td>35px</td>
|
<td>35<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h3</th>
|
<th><code><<b>h3</b>></code></th>
|
||||||
<td>24px</td>
|
<td>24<small>px</small></td>
|
||||||
<td>25.5px</td>
|
<td>25<small>.5px</small></td>
|
||||||
<td>27px</td>
|
<td>27<small>px</small></td>
|
||||||
<td>28.5px</td>
|
<td>28<small>.5px</small></td>
|
||||||
<td>30px</td>
|
<td>30<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h4</th>
|
<th><code><<b>h4</b>></code></th>
|
||||||
<td>20px</td>
|
<td>20<small>px</small></td>
|
||||||
<td>21.25px</td>
|
<td>21<small>.25px</small></td>
|
||||||
<td>22.5px</td>
|
<td>22<small>.5px</small></td>
|
||||||
<td>23.75px</td>
|
<td>23<small>.75px</small></td>
|
||||||
<td>25px</td>
|
<td>25<small>px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h5</th>
|
<th><code><<b>h5</b>></code></th>
|
||||||
<td>18px</td>
|
<td>18<small>px</small></td>
|
||||||
<td>19.125px</td>
|
<td>19<small>.125px</small></td>
|
||||||
<td>20.25px</td>
|
<td>20<small>.25px</small></td>
|
||||||
<td>21.375px</td>
|
<td>21<small>.375px</small></td>
|
||||||
<td>22.5px</td>
|
<td>22<small>.5px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>h6</th>
|
<th><code><<b>h6</b>></code></th>
|
||||||
<td>16px</td>
|
<td>16<small>px</small></td>
|
||||||
<td>17px</td>
|
<td>17<small>px</small></td>
|
||||||
<td>18px</td>
|
<td>18<small>px</small></td>
|
||||||
<td>19px</td>
|
<td>19<small>px</small></td>
|
||||||
<td>20px</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>27<small>.5px</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -671,7 +680,7 @@
|
||||||
<section id="forms">
|
<section id="forms">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h2>Forms</h2>
|
<h2>Forms</h2>
|
||||||
<h3>All form elements in pure semantic HTML and fully responsives, allowing forms to scale gracefully across devices and viewport sizes.</h3>
|
<h3>All form elements are in pure semantic HTML and fully responsives, allowing forms to scale gracefully across devices and viewports.</h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<p>Input are <code><i>width</i>: <u>100%</u>;</code> by default. You can use <code>.grid</code> inside a form.</p>
|
<p>Input are <code><i>width</i>: <u>100%</u>;</code> by default. You can use <code>.grid</code> inside a form.</p>
|
||||||
<p>All natives form elements are fully customized and themables with CSS variables.</p>
|
<p>All natives form elements are fully customized and themables with CSS variables.</p>
|
||||||
|
@ -740,24 +749,28 @@
|
||||||
<p><code><<b>fieldset</b>></code> are unstyled and act as a container for radios and checkboxes providing a consistent <code><i>margin-bottom</i></code> for the set.</p>
|
<p><code><<b>fieldset</b>></code> are unstyled and act 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>
|
<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">
|
<article aria-label="Select, radios, checkboxes, switch examples">
|
||||||
<label for="country">Country</label>
|
<label for="fruit">Fruit</label>
|
||||||
<select id="country">
|
<select id="fruit" required>
|
||||||
<option selected>Choose...</option>
|
<option value="" selected>Select a fruit...</option>
|
||||||
<option>...</option>
|
<option>Banana</option>
|
||||||
|
<option>Watermelon</option>
|
||||||
|
<option>Apple</option>
|
||||||
|
<option>Orange</option>
|
||||||
|
<option>Mangoe</option>
|
||||||
</select>
|
</select>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Gender</legend>
|
<legend>Size</legend>
|
||||||
<label for="male">
|
<label for="small">
|
||||||
<input type="radio" id="male" name="gender" value="male" checked>
|
<input type="radio" id="small" name="size" value="small" checked>
|
||||||
Male
|
Small
|
||||||
</label>
|
</label>
|
||||||
<label for="female">
|
<label for="medium">
|
||||||
<input type="radio" id="female" name="gender" value="female">
|
<input type="radio" id="medium" name="size" value="medium">
|
||||||
Female
|
Medium
|
||||||
</label>
|
</label>
|
||||||
<label for="other">
|
<label for="large">
|
||||||
<input type="radio" id="other" name="gender" value="other">
|
<input type="radio" id="large" name="size" value="large">
|
||||||
Other
|
Large
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -774,26 +787,26 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<pre><code><em><!-- Select --></em>
|
<pre><code><em><!-- Select --></em>
|
||||||
<<b>label</b> <i>for</i>=<u>"country"</u>>Country</<b>label</b>>
|
<<b>label</b> <i>for</i>=<u>"fruit"</u>>Fruit</<b>label</b>>
|
||||||
<<b>select</b> <i>id</i>=<u>"country</u>">
|
<<b>select</b> <i>id</i>=<u>"fruit"</u> <i>required</i>>
|
||||||
<<b>option</b> <i>selected</i>>Choose...</<b>option</b>>
|
<<b>option</b> <i>value</i>=<u>""</u> <i>selected</i>>Select a fruit...</<b>option</b>>
|
||||||
<<b>option</b>>...</<b>option</b>>
|
<<b>option</b>>...</<b>option</b>>
|
||||||
</<b>select</b>>
|
</<b>select</b>>
|
||||||
|
|
||||||
<em><!-- Radios --></em>
|
<em><!-- Radios --></em>
|
||||||
<<b>fieldset</b>>
|
<<b>fieldset</b>>
|
||||||
<<b>legend</b>>Gender</<b>legend</b>>
|
<<b>legend</b>>Size</<b>legend</b>>
|
||||||
<<b>label</b> <i>for</i>=<u>"male"</u>>
|
<<b>label</b> <i>for</i>=<u>"small"</u>>
|
||||||
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"male"</u> <i>name</i>=<u>"gender"</u> <i>value</i>=<u>"male"</u> <i>checked</i>>
|
<<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>>
|
||||||
Male
|
Small
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
<<b>label</b> <i>for</i>=<u>"female"</u>>
|
<<b>label</b> <i>for</i>=<u>"medium"</u>>
|
||||||
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"female"</u> <i>name</i>=<u>"gender"</u> <i>value</i>=<u>"female"</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>>
|
||||||
Female
|
Medium
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
<<b>label</b> <i>for</i>=<u>"other"</u>>
|
<<b>label</b> <i>for</i>=<u>"large"</u>>
|
||||||
<<b>input</b> <i>type</i>=<u>"radio"</u> <i>id</i>=<u>"other"</u> <i>name</i>=<u>"gender"</u> <i>value</i>=<u>"other"</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>>
|
||||||
Other
|
Large
|
||||||
</<b>label</b>>
|
</<b>label</b>>
|
||||||
</<b>fieldset</b>>
|
</<b>fieldset</b>>
|
||||||
|
|
||||||
|
@ -1030,7 +1043,7 @@
|
||||||
<section id="cards">
|
<section id="cards">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h2>Cards</h2>
|
<h2>Cards</h2>
|
||||||
<h3>A flexible container with graceful spacings across devices and viewport sizes.</h3>
|
<h3>A flexible container with graceful spacings across devices and viewports.</h3>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<article aria-label="Card example">
|
<article aria-label="Card example">
|
||||||
I'm a card!
|
I'm a card!
|
||||||
|
|
|
@ -98,10 +98,10 @@
|
||||||
.grid {
|
.grid {
|
||||||
> * {
|
> * {
|
||||||
padding: calc(var(--spacing) / 2) 0;
|
padding: calc(var(--spacing) / 2) 0;
|
||||||
background: var(--secondary);
|
border-radius: var(--border-radius);
|
||||||
color: var(--secondary-inverse);
|
background: var(--code-background-color);
|
||||||
|
font-size: 87.5%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: .5;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ a {
|
||||||
|
|
||||||
// Small
|
// Small
|
||||||
small {
|
small {
|
||||||
--font-size: 0.875rem;
|
--font-size: 87.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue