mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 03:36:13 -04:00
commit
3e664e0d62
45 changed files with 144 additions and 92 deletions
|
@ -124,6 +124,9 @@ Minimalist templates to discover Pico in action:
|
|||
- **[Preview](https://picocss.com/examples/preview/)**
|
||||
A starter example with all elements and components used in Pico
|
||||
|
||||
- **[Right-to-left (RTL) preview](https://picocss.com/examples/preview-rtl/)**
|
||||
A starter example in Arabic with all the elements and components used in Pico
|
||||
|
||||
- **[Class-less](https://picocss.com/examples/classless/)**
|
||||
Just a pure semantic HTML markup, without `.classes`
|
||||
|
||||
|
@ -139,7 +142,7 @@ Minimalist templates to discover Pico in action:
|
|||
- **[Sign in](https://picocss.com/examples/sign-in/)**
|
||||
A minimalist layout for Login pages
|
||||
|
||||
- **[Bootstrap grid system](https://picocss.com/examples/bootstrap-grid/)**
|
||||
- **[Pico + Bootstrap grid system](https://picocss.com/examples/bootstrap-grid/)**
|
||||
Custom CSS build with the Bootstrap grid system to manage complex grid layouts in Pico
|
||||
|
||||
All examples are open-sourced in [picocss/examples](https://github.com/picocss/examples).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*/
|
||||
/**
|
||||
|
@ -1940,20 +1940,26 @@ nav :where(a, [role=link]):is([aria-current], :hover, :active, :focus) {
|
|||
}
|
||||
nav[aria-label=breadcrumb] {
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
justify-content: start;
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li {
|
||||
-webkit-padding-start: 0;
|
||||
padding-inline-start: 0;
|
||||
nav[aria-label=breadcrumb] ul li:not(:first-child) {
|
||||
-webkit-margin-start: var(--nav-link-spacing-horizontal);
|
||||
margin-inline-start: var(--nav-link-spacing-horizontal);
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) a::after {
|
||||
-webkit-padding-start: 0.5rem;
|
||||
padding-inline-start: 0.5rem;
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
position: absolute;
|
||||
width: calc(var(--nav-link-spacing-horizontal) * 2);
|
||||
-webkit-margin-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
margin-inline-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
content: "/";
|
||||
color: var(--muted-color);
|
||||
text-align: center;
|
||||
}
|
||||
nav[aria-label=breadcrumb] a[aria-current=page] {
|
||||
nav[aria-label=breadcrumb] a[aria-current] {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
nav [role=button] {
|
||||
margin-right: inherit;
|
||||
|
@ -1977,6 +1983,10 @@ aside li [role=button] {
|
|||
margin: inherit;
|
||||
}
|
||||
|
||||
[dir=rtl] nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
content: "\\";
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
4
css/pico.classless.min.css
vendored
4
css/pico.classless.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
28
css/pico.css
28
css/pico.css
|
@ -1,6 +1,6 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*/
|
||||
/**
|
||||
|
@ -2128,20 +2128,26 @@ nav :where(a, [role=link]):is([aria-current], :hover, :active, :focus) {
|
|||
}
|
||||
nav[aria-label=breadcrumb] {
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
justify-content: start;
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li {
|
||||
-webkit-padding-start: 0;
|
||||
padding-inline-start: 0;
|
||||
nav[aria-label=breadcrumb] ul li:not(:first-child) {
|
||||
-webkit-margin-start: var(--nav-link-spacing-horizontal);
|
||||
margin-inline-start: var(--nav-link-spacing-horizontal);
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) a::after {
|
||||
-webkit-padding-start: 0.5rem;
|
||||
padding-inline-start: 0.5rem;
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
position: absolute;
|
||||
width: calc(var(--nav-link-spacing-horizontal) * 2);
|
||||
-webkit-margin-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
margin-inline-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
content: "/";
|
||||
color: var(--muted-color);
|
||||
text-align: center;
|
||||
}
|
||||
nav[aria-label=breadcrumb] a[aria-current=page] {
|
||||
nav[aria-label=breadcrumb] a[aria-current] {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
nav [role=button] {
|
||||
margin-right: inherit;
|
||||
|
@ -2165,6 +2171,10 @@ aside li [role=button] {
|
|||
margin: inherit;
|
||||
}
|
||||
|
||||
[dir=rtl] nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
content: "\\";
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*/
|
||||
/**
|
||||
|
@ -1910,20 +1910,26 @@ nav :where(a, [role=link]):is([aria-current], :hover, :active, :focus) {
|
|||
}
|
||||
nav[aria-label=breadcrumb] {
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
justify-content: start;
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li {
|
||||
-webkit-padding-start: 0;
|
||||
padding-inline-start: 0;
|
||||
nav[aria-label=breadcrumb] ul li:not(:first-child) {
|
||||
-webkit-margin-start: var(--nav-link-spacing-horizontal);
|
||||
margin-inline-start: var(--nav-link-spacing-horizontal);
|
||||
}
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) a::after {
|
||||
-webkit-padding-start: 0.5rem;
|
||||
padding-inline-start: 0.5rem;
|
||||
nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
position: absolute;
|
||||
width: calc(var(--nav-link-spacing-horizontal) * 2);
|
||||
-webkit-margin-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
margin-inline-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
content: "/";
|
||||
color: var(--muted-color);
|
||||
text-align: center;
|
||||
}
|
||||
nav[aria-label=breadcrumb] a[aria-current=page] {
|
||||
nav[aria-label=breadcrumb] a[aria-current] {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
nav [role=button] {
|
||||
margin-right: inherit;
|
||||
|
@ -1947,6 +1953,10 @@ aside li [role=button] {
|
|||
margin: inherit;
|
||||
}
|
||||
|
||||
[dir=rtl] nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
|
||||
content: "\\";
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress
|
||||
*/
|
||||
|
|
File diff suppressed because one or more lines are too long
4
css/pico.fluid.classless.min.css
vendored
4
css/pico.fluid.classless.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
4
css/pico.min.css
vendored
4
css/pico.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
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*
|
||||
* Slim version example
|
||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*
|
||||
* Slim version example
|
||||
|
|
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
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
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
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
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,4 +5,4 @@
|
|||
<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://www.picocss.com/docs/${props.canonical}">
|
||||
<link rel="canonical" href="https://picocss.com/docs/${props.canonical}">
|
|
@ -117,22 +117,18 @@
|
|||
</footer>
|
||||
</article>
|
||||
|
||||
<p>With <code><i>aria-label</i>=<u>"breadcrumb"</u></code>, you can turn a nav into a breadcrumb, specifying the current page with: <code><i>aria-current</i>=<u>"page"</u></code>.</p>
|
||||
<p>With <code><i>aria-label</i>=<u>"breadcrumb"</u></code>, you can turn a nav into a breadcrumb.</p>
|
||||
|
||||
<article aria-label="breadcrumb nav example">
|
||||
<article aria-label="Breadcrumb example">
|
||||
<nav aria-label="breadcrumb">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">First link</a>
|
||||
<a href="#" onclick="event.preventDefault()">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Second link</a>
|
||||
</li>
|
||||
<li>
|
||||
<a aria-current="page">
|
||||
Last link
|
||||
</a>
|
||||
<a href="#" onclick="event.preventDefault()">Category</a>
|
||||
</li>
|
||||
<li>Page</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
@ -140,9 +136,9 @@
|
|||
|
||||
<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>>First link<<b>/a</b>><<b>/li</b>>
|
||||
<<b>li</b>><<b>a</b> <i>href</i>=<u>"#"</u>>Second link<<b>/a</b>><<b>/li</b>>
|
||||
<<b>li</b>><<b>a</b> <i>aria-current</i>=<u>"page"</u>>Last link<<b>/a</b>><<b>/li</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>
|
||||
|
||||
|
|
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@picocss/pico",
|
||||
"version": "1.5.4",
|
||||
"version": "1.5.5",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@picocss/pico",
|
||||
"version": "1.5.4",
|
||||
"version": "1.5.5",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.18.10",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@picocss/pico",
|
||||
"version": "1.5.4",
|
||||
"version": "1.5.5",
|
||||
"description": "Minimal CSS Framework for semantic HTML",
|
||||
"author": "Lucas Larroche",
|
||||
"main": "css/pico.min.css",
|
||||
|
|
|
@ -66,22 +66,30 @@ nav {
|
|||
// Breadcrumb
|
||||
&[aria-label="breadcrumb"] {
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
justify-content: start;
|
||||
|
||||
& ul li {
|
||||
padding-inline-start: 0;
|
||||
&:not(:first-child) {
|
||||
margin-inline-start: var(--nav-link-spacing-horizontal);
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
a::after {
|
||||
padding-inline-start: 0.5rem;
|
||||
::after {
|
||||
position: absolute;
|
||||
width: calc(var(--nav-link-spacing-horizontal) * 2);
|
||||
margin-inline-start: calc(var(--nav-link-spacing-horizontal) / 2);
|
||||
content: "/";
|
||||
color: var(--muted-color);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& a[aria-current="page"] {
|
||||
& a[aria-current] {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,3 +124,18 @@ aside {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Breadcrumb RTL
|
||||
[dir="rtl"] {
|
||||
nav {
|
||||
&[aria-label="breadcrumb"] {
|
||||
& ul li {
|
||||
&:not(:last-child) {
|
||||
::after {
|
||||
content: "\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Pico.css v1.5.4 (https://picocss.com)
|
||||
* Pico.css v1.5.5 (https://picocss.com)
|
||||
* Copyright 2019-2022 - Licensed under MIT
|
||||
*
|
||||
* Slim version example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue