Merge branch 'dev' into feat-modal

This commit is contained in:
Lucas Larroche 2021-11-02 11:00:14 +07:00
commit caa104850f
99 changed files with 3531 additions and 1870 deletions

View file

@ -168,7 +168,7 @@ All examples are open-sourced in [picocss/examples](https://github.com/picocss/e
- [`dev`](https://github.com/picocss/pico/tree/dev) branch is open to pull requests. - [`dev`](https://github.com/picocss/pico/tree/dev) branch is open to pull requests.
- Do not edit [`/css`](https://github.com/picocss/pico/tree/master/css) files directly. - Do not edit [`/css`](https://github.com/picocss/pico/tree/master/css) files directly.
- Edit the source files in [`/scss`](https://github.com/picocss/pico/tree/master/scss), then recompile the [`/css`](https://github.com/picocss/pico/tree/master/css) files with `npm run build:css`. - Edit the source files in [`/scss`](https://github.com/picocss/pico/tree/master/scss), then recompile the [`/css`](https://github.com/picocss/pico/tree/master/css) files with `npm run build`.
## Copyright and license ## Copyright and license
@ -178,7 +178,6 @@ Licensed under the [MIT License](https://github.com/picocss/pico/blob/master/LIC
Website and docs: Website and docs:
- [TypeIt](https://typeitjs.com/): JavaScript animated typing utility (Licensed [GPL-3.0](https://github.com/alexmacarthur/typeit/blob/master/LICENSE)) - [TypeIt](https://typeitjs.com/): JavaScript animated typing utility (Licensed [GPL-3.0](https://github.com/alexmacarthur/typeit/blob/master/LICENSE))
- [Most Visible](https://github.com/andyexeter/most-visible): JavaScript module which returns the most visible element (Licensed [MIT](https://github.com/andyexeter/most-visible/blob/master/LICENSE))
- [Font Awesome](https://fontawesome.com/): Icons (Licensed [CC BY 4.0](https://fontawesome.com/license/free)) - [Font Awesome](https://fontawesome.com/): Icons (Licensed [CC BY 4.0](https://fontawesome.com/license/free))
Pico Library: Pico Library:

View file

@ -497,18 +497,18 @@ kbd {
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
background-color: var(--background-color);
color: var(--color);
font-weight: var(--font-weight);
font-size: var(--font-size);
line-height: var(--line-height);
font-family: var(--font-family);
cursor: default;
-moz-tab-size: 4; -moz-tab-size: 4;
-o-tab-size: 4; -o-tab-size: 4;
tab-size: 4; tab-size: 4;
-ms-text-size-adjust: 100%;
background-color: var(--background-color);
color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
text-rendering: optimizeLegibility;
cursor: default;
} }
/** /**
@ -636,9 +636,9 @@ ul {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight);
font-style: normal; font-style: normal;
font-weight: var(--font-weight);
font-size: var(--font-size);
} }
a { a {
@ -670,9 +670,9 @@ h6 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
font-family: var(--font-family);
} }
h1 { h1 {
@ -766,8 +766,8 @@ hgroup > * {
hgroup > *:last-child { hgroup > *:last-child {
--color: var(--muted-color); --color: var(--muted-color);
--font-weight: unset; --font-weight: unset;
font-family: unset;
font-size: 1rem; font-size: 1rem;
font-family: unset;
} }
p { p {
@ -782,10 +782,10 @@ ul,
ol { ol {
padding-right: 0; padding-right: 0;
padding-left: var(--spacing); padding-left: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
-webkit-padding-start: var(--spacing); -webkit-padding-start: var(--spacing);
padding-inline-start: var(--spacing); padding-inline-start: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
} }
ul li, ul li,
ol li { ol li {
@ -809,10 +809,10 @@ blockquote {
padding: var(--spacing); padding: var(--spacing);
border-right: none; border-right: none;
border-left: 0.25rem solid var(--blockquote-border-color); border-left: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
-webkit-border-start: 0.25rem solid var(--blockquote-border-color); -webkit-border-start: 0.25rem solid var(--blockquote-border-color);
border-inline-start: 0.25rem solid var(--blockquote-border-color); border-inline-start: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
} }
blockquote footer { blockquote footer {
margin-top: calc(var(--typography-spacing-vertical) * 0.5); margin-top: calc(var(--typography-spacing-vertical) * 0.5);
@ -934,8 +934,8 @@ a[role=button] {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -999,10 +999,10 @@ optgroup,
select, select,
textarea { textarea {
margin: 0; margin: 0;
font-family: inherit;
font-size: 1rem; font-size: 1rem;
letter-spacing: inherit;
line-height: var(--line-height); line-height: var(--line-height);
font-family: inherit;
letter-spacing: inherit;
} }
input { input {
@ -1156,13 +1156,13 @@ select:not([type=checkbox]):not([type=radio])[aria-invalid],
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] { textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important; padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
-webkit-padding-start: var(--form-element-spacing-horizontal) !important; -webkit-padding-start: var(--form-element-spacing-horizontal) !important;
padding-inline-start: var(--form-element-spacing-horizontal) !important; padding-inline-start: var(--form-element-spacing-horizontal) !important;
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
input:not([type=checkbox]):not([type=radio])[aria-invalid=false], input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
select:not([type=checkbox]):not([type=radio])[aria-invalid=false], select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
@ -1231,14 +1231,14 @@ select::-ms-expand {
select:not([multiple]):not([size]) { select:not([multiple]):not([size]) {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
-webkit-padding-start: var(--form-element-spacing-horizontal); -webkit-padding-start: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[dir=rtl] select:not([multiple]):not([size]) { [dir=rtl] select:not([multiple]):not([size]) {
@ -1273,10 +1273,10 @@ label > input, label > select, label > textarea {
margin-top: -0.125em; margin-top: -0.125em;
margin-right: 0.375em; margin-right: 0.375em;
margin-left: 0; margin-left: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
border-width: var(--border-width); border-width: var(--border-width);
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -1293,8 +1293,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-checkbox); background-image: var(--icon-checkbox);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=checkbox] ~ label, [type=checkbox] ~ label,
[type=radio] ~ label { [type=radio] ~ label {
@ -1309,8 +1309,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-minus); background-image: var(--icon-minus);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=radio] { [type=radio] {
@ -1356,10 +1356,10 @@ label > input, label > select, label > textarea {
[type=checkbox][role=switch]:checked::before { [type=checkbox][role=switch]:checked::before {
margin-right: 0; margin-right: 0;
margin-left: calc(1.125em - var(--border-width)); margin-left: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
-webkit-margin-start: calc(1.125em - var(--border-width)); -webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width)); margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
} }
[type=checkbox][role=switch][aria-invalid=false] { [type=checkbox][role=switch][aria-invalid=false] {
--border-color: var(--form-element-valid-border-color); --border-color: var(--form-element-valid-border-color);
@ -1404,8 +1404,8 @@ label > input, label > select, label > textarea {
:not(:dir(rtl)) [type=week] { :not(:dir(rtl)) [type=week] {
background-image: var(--icon-date); background-image: var(--icon-date);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
:not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator,
:not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator,
@ -1435,10 +1435,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1446,8 +1446,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1460,10 +1460,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1471,8 +1471,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1492,10 +1492,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1503,8 +1503,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1521,8 +1521,8 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
margin-inline-end: calc(var(--spacing) / 2);
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1530,8 +1530,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1633,8 +1633,8 @@ label > input, label > select, label > textarea {
padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important; padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
background-image: var(--icon-search); background-image: var(--icon-search);
background-position: center left 1.125rem; background-position: center left 1.125rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[type=search]::-webkit-search-cancel-button { [type=search]::-webkit-search-cancel-button {
-webkit-appearance: none; -webkit-appearance: none;
@ -1657,8 +1657,8 @@ td {
padding: calc(var(--spacing) / 2) var(--spacing); padding: calc(var(--spacing) / 2) var(--spacing);
border-bottom: var(--border-width) solid var(--table-border-color); border-bottom: var(--border-width) solid var(--table-border-color);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
text-align: left; text-align: left;
text-align: start; text-align: start;
} }
@ -1678,8 +1678,8 @@ pre,
code, code,
kbd, kbd,
samp { samp {
font-family: var(--font-family);
font-size: 0.875em; font-size: 0.875em;
font-family: var(--font-family);
} }
pre { pre {
@ -1690,11 +1690,11 @@ pre {
pre, pre,
code, code,
kbd { kbd {
border-radius: var(--border-radius);
background: var(--code-background-color); background: var(--code-background-color);
color: var(--code-color); color: var(--code-color);
font-weight: var(--font-weight); font-weight: var(--font-weight);
line-height: initial; line-height: initial;
border-radius: var(--border-radius);
} }
code, code,
@ -1709,9 +1709,9 @@ pre {
overflow-x: auto; overflow-x: auto;
} }
pre > code { pre > code {
background: transparent;
display: block; display: block;
padding: var(--spacing); padding: var(--spacing);
background: transparent;
font-size: 14px; font-size: 14px;
line-height: var(--line-height); line-height: var(--line-height);
} }
@ -1794,8 +1794,8 @@ details summary::after {
transform: rotate(-90deg); transform: rotate(-90deg);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
content: ""; content: "";
transition: transform var(--transition); transition: transform var(--transition);
} }
@ -1992,8 +1992,8 @@ progress {
progress { progress {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none;
display: inline-block; display: inline-block;
appearance: none;
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
margin-bottom: calc(var(--spacing) * 0.5); margin-bottom: calc(var(--spacing) * 0.5);
@ -2058,20 +2058,20 @@ progress::-moz-progress-bar {
border: 0.1875em solid currentColor; border: 0.1875em solid currentColor;
border-radius: 1em; border-radius: 1em;
border-right-color: transparent; border-right-color: transparent;
content: "";
vertical-align: text-bottom; vertical-align: text-bottom;
vertical-align: -0.125em; vertical-align: -0.125em;
-webkit-animation: spinner 0.75s linear infinite; -webkit-animation: spinner 0.75s linear infinite;
animation: spinner 0.75s linear infinite; animation: spinner 0.75s linear infinite;
content: "";
opacity: var(--loading-spinner-opacity); opacity: var(--loading-spinner-opacity);
} }
[aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before { [aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before {
margin-right: calc(var(--spacing) * 0.5); margin-right: calc(var(--spacing) * 0.5);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
} }
[aria-busy=true]:not(input):not(select):not(textarea):empty { [aria-busy=true]:not(input):not(select):not(textarea):empty {
text-align: center; text-align: center;
@ -2118,14 +2118,14 @@ a[aria-busy=true] {
transform: translate(-50%, -0.25rem); transform: translate(-50%, -0.25rem);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--tooltip-background-color); background: var(--tooltip-background-color);
content: attr(data-tooltip);
color: var(--tooltip-color); color: var(--tooltip-color);
font-size: 0.875rem;
font-style: normal; font-style: normal;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 0.875rem;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
content: attr(data-tooltip);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
@ -2137,15 +2137,15 @@ a[aria-busy=true] {
border-left: 0.3rem solid transparent; border-left: 0.3rem solid transparent;
border-radius: 0; border-radius: 0;
background-color: transparent; background-color: transparent;
color: var(--tooltip-background-color);
content: ""; content: "";
color: var(--tooltip-background-color);
} }
[data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after { [data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after {
opacity: 1; opacity: 1;
-webkit-animation-name: slide;
animation-name: slide;
-webkit-animation-duration: 0.2s; -webkit-animation-duration: 0.2s;
animation-duration: 0.2s; animation-duration: 0.2s;
-webkit-animation-name: slide;
animation-name: slide;
} }
[data-tooltip]:focus::after, [data-tooltip]:hover::after { [data-tooltip]:focus::after, [data-tooltip]:hover::after {
-webkit-animation-name: slideCaret; -webkit-animation-name: slideCaret;

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

View file

@ -497,18 +497,18 @@ kbd {
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
background-color: var(--background-color);
color: var(--color);
font-weight: var(--font-weight);
font-size: var(--font-size);
line-height: var(--line-height);
font-family: var(--font-family);
cursor: default;
-moz-tab-size: 4; -moz-tab-size: 4;
-o-tab-size: 4; -o-tab-size: 4;
tab-size: 4; tab-size: 4;
-ms-text-size-adjust: 100%;
background-color: var(--background-color);
color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
text-rendering: optimizeLegibility;
cursor: default;
} }
/** /**
@ -661,9 +661,9 @@ ul {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight);
font-style: normal; font-style: normal;
font-weight: var(--font-weight);
font-size: var(--font-size);
} }
a { a {
@ -713,9 +713,9 @@ h6 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
font-family: var(--font-family);
} }
h1 { h1 {
@ -809,8 +809,8 @@ hgroup > * {
hgroup > *:last-child { hgroup > *:last-child {
--color: var(--muted-color); --color: var(--muted-color);
--font-weight: unset; --font-weight: unset;
font-family: unset;
font-size: 1rem; font-size: 1rem;
font-family: unset;
} }
p { p {
@ -825,10 +825,10 @@ ul,
ol { ol {
padding-right: 0; padding-right: 0;
padding-left: var(--spacing); padding-left: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
-webkit-padding-start: var(--spacing); -webkit-padding-start: var(--spacing);
padding-inline-start: var(--spacing); padding-inline-start: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
} }
ul li, ul li,
ol li { ol li {
@ -852,10 +852,10 @@ blockquote {
padding: var(--spacing); padding: var(--spacing);
border-right: none; border-right: none;
border-left: 0.25rem solid var(--blockquote-border-color); border-left: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
-webkit-border-start: 0.25rem solid var(--blockquote-border-color); -webkit-border-start: 0.25rem solid var(--blockquote-border-color);
border-inline-start: 0.25rem solid var(--blockquote-border-color); border-inline-start: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
} }
blockquote footer { blockquote footer {
margin-top: calc(var(--typography-spacing-vertical) * 0.5); margin-top: calc(var(--typography-spacing-vertical) * 0.5);
@ -977,8 +977,8 @@ a[role=button] {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1178,10 +1178,10 @@ optgroup,
select, select,
textarea { textarea {
margin: 0; margin: 0;
font-family: inherit;
font-size: 1rem; font-size: 1rem;
letter-spacing: inherit;
line-height: var(--line-height); line-height: var(--line-height);
font-family: inherit;
letter-spacing: inherit;
} }
input { input {
@ -1335,13 +1335,13 @@ select:not([type=checkbox]):not([type=radio])[aria-invalid],
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] { textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important; padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
-webkit-padding-start: var(--form-element-spacing-horizontal) !important; -webkit-padding-start: var(--form-element-spacing-horizontal) !important;
padding-inline-start: var(--form-element-spacing-horizontal) !important; padding-inline-start: var(--form-element-spacing-horizontal) !important;
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
input:not([type=checkbox]):not([type=radio])[aria-invalid=false], input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
select:not([type=checkbox]):not([type=radio])[aria-invalid=false], select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
@ -1410,14 +1410,14 @@ select::-ms-expand {
select:not([multiple]):not([size]) { select:not([multiple]):not([size]) {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
-webkit-padding-start: var(--form-element-spacing-horizontal); -webkit-padding-start: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[dir=rtl] select:not([multiple]):not([size]) { [dir=rtl] select:not([multiple]):not([size]) {
@ -1452,10 +1452,10 @@ label > input, label > select, label > textarea {
margin-top: -0.125em; margin-top: -0.125em;
margin-right: 0.375em; margin-right: 0.375em;
margin-left: 0; margin-left: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
border-width: var(--border-width); border-width: var(--border-width);
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -1472,8 +1472,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-checkbox); background-image: var(--icon-checkbox);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=checkbox] ~ label, [type=checkbox] ~ label,
[type=radio] ~ label { [type=radio] ~ label {
@ -1488,8 +1488,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-minus); background-image: var(--icon-minus);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=radio] { [type=radio] {
@ -1535,10 +1535,10 @@ label > input, label > select, label > textarea {
[type=checkbox][role=switch]:checked::before { [type=checkbox][role=switch]:checked::before {
margin-right: 0; margin-right: 0;
margin-left: calc(1.125em - var(--border-width)); margin-left: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
-webkit-margin-start: calc(1.125em - var(--border-width)); -webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width)); margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
} }
[type=checkbox][role=switch][aria-invalid=false] { [type=checkbox][role=switch][aria-invalid=false] {
--border-color: var(--form-element-valid-border-color); --border-color: var(--form-element-valid-border-color);
@ -1583,8 +1583,8 @@ label > input, label > select, label > textarea {
:not(:dir(rtl)) [type=week] { :not(:dir(rtl)) [type=week] {
background-image: var(--icon-date); background-image: var(--icon-date);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
:not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator,
:not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator,
@ -1614,10 +1614,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1625,8 +1625,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1639,10 +1639,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1650,8 +1650,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1671,10 +1671,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1682,8 +1682,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1700,8 +1700,8 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
margin-inline-end: calc(var(--spacing) / 2);
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1709,8 +1709,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1812,8 +1812,8 @@ label > input, label > select, label > textarea {
padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important; padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
background-image: var(--icon-search); background-image: var(--icon-search);
background-position: center left 1.125rem; background-position: center left 1.125rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[type=search]::-webkit-search-cancel-button { [type=search]::-webkit-search-cancel-button {
-webkit-appearance: none; -webkit-appearance: none;
@ -1836,8 +1836,8 @@ td {
padding: calc(var(--spacing) / 2) var(--spacing); padding: calc(var(--spacing) / 2) var(--spacing);
border-bottom: var(--border-width) solid var(--table-border-color); border-bottom: var(--border-width) solid var(--table-border-color);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
text-align: left; text-align: left;
text-align: start; text-align: start;
} }
@ -1857,8 +1857,8 @@ pre,
code, code,
kbd, kbd,
samp { samp {
font-family: var(--font-family);
font-size: 0.875em; font-size: 0.875em;
font-family: var(--font-family);
} }
pre { pre {
@ -1869,11 +1869,11 @@ pre {
pre, pre,
code, code,
kbd { kbd {
border-radius: var(--border-radius);
background: var(--code-background-color); background: var(--code-background-color);
color: var(--code-color); color: var(--code-color);
font-weight: var(--font-weight); font-weight: var(--font-weight);
line-height: initial; line-height: initial;
border-radius: var(--border-radius);
} }
code, code,
@ -1888,9 +1888,9 @@ pre {
overflow-x: auto; overflow-x: auto;
} }
pre > code { pre > code {
background: transparent;
display: block; display: block;
padding: var(--spacing); padding: var(--spacing);
background: transparent;
font-size: 14px; font-size: 14px;
line-height: var(--line-height); line-height: var(--line-height);
} }
@ -1973,8 +1973,8 @@ details summary::after {
transform: rotate(-90deg); transform: rotate(-90deg);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
content: ""; content: "";
transition: transform var(--transition); transition: transform var(--transition);
} }
@ -2171,8 +2171,8 @@ progress {
progress { progress {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none;
display: inline-block; display: inline-block;
appearance: none;
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
margin-bottom: calc(var(--spacing) * 0.5); margin-bottom: calc(var(--spacing) * 0.5);
@ -2237,20 +2237,20 @@ progress::-moz-progress-bar {
border: 0.1875em solid currentColor; border: 0.1875em solid currentColor;
border-radius: 1em; border-radius: 1em;
border-right-color: transparent; border-right-color: transparent;
content: "";
vertical-align: text-bottom; vertical-align: text-bottom;
vertical-align: -0.125em; vertical-align: -0.125em;
-webkit-animation: spinner 0.75s linear infinite; -webkit-animation: spinner 0.75s linear infinite;
animation: spinner 0.75s linear infinite; animation: spinner 0.75s linear infinite;
content: "";
opacity: var(--loading-spinner-opacity); opacity: var(--loading-spinner-opacity);
} }
[aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before { [aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before {
margin-right: calc(var(--spacing) * 0.5); margin-right: calc(var(--spacing) * 0.5);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
} }
[aria-busy=true]:not(input):not(select):not(textarea):empty { [aria-busy=true]:not(input):not(select):not(textarea):empty {
text-align: center; text-align: center;
@ -2297,14 +2297,14 @@ a[aria-busy=true] {
transform: translate(-50%, -0.25rem); transform: translate(-50%, -0.25rem);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--tooltip-background-color); background: var(--tooltip-background-color);
content: attr(data-tooltip);
color: var(--tooltip-color); color: var(--tooltip-color);
font-size: 0.875rem;
font-style: normal; font-style: normal;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 0.875rem;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
content: attr(data-tooltip);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
@ -2316,15 +2316,15 @@ a[aria-busy=true] {
border-left: 0.3rem solid transparent; border-left: 0.3rem solid transparent;
border-radius: 0; border-radius: 0;
background-color: transparent; background-color: transparent;
color: var(--tooltip-background-color);
content: ""; content: "";
color: var(--tooltip-background-color);
} }
[data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after { [data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after {
opacity: 1; opacity: 1;
-webkit-animation-name: slide;
animation-name: slide;
-webkit-animation-duration: 0.2s; -webkit-animation-duration: 0.2s;
animation-duration: 0.2s; animation-duration: 0.2s;
-webkit-animation-name: slide;
animation-name: slide;
} }
[data-tooltip]:focus::after, [data-tooltip]:hover::after { [data-tooltip]:focus::after, [data-tooltip]:hover::after {
-webkit-animation-name: slideCaret; -webkit-animation-name: slideCaret;

File diff suppressed because one or more lines are too long

View file

@ -497,18 +497,18 @@ kbd {
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
background-color: var(--background-color);
color: var(--color);
font-weight: var(--font-weight);
font-size: var(--font-size);
line-height: var(--line-height);
font-family: var(--font-family);
cursor: default;
-moz-tab-size: 4; -moz-tab-size: 4;
-o-tab-size: 4; -o-tab-size: 4;
tab-size: 4; tab-size: 4;
-ms-text-size-adjust: 100%;
background-color: var(--background-color);
color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
text-rendering: optimizeLegibility;
cursor: default;
} }
/** /**
@ -606,9 +606,9 @@ ul {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight);
font-style: normal; font-style: normal;
font-weight: var(--font-weight);
font-size: var(--font-size);
} }
a { a {
@ -640,9 +640,9 @@ h6 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
font-family: var(--font-family);
} }
h1 { h1 {
@ -736,8 +736,8 @@ hgroup > * {
hgroup > *:last-child { hgroup > *:last-child {
--color: var(--muted-color); --color: var(--muted-color);
--font-weight: unset; --font-weight: unset;
font-family: unset;
font-size: 1rem; font-size: 1rem;
font-family: unset;
} }
p { p {
@ -752,10 +752,10 @@ ul,
ol { ol {
padding-right: 0; padding-right: 0;
padding-left: var(--spacing); padding-left: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
-webkit-padding-start: var(--spacing); -webkit-padding-start: var(--spacing);
padding-inline-start: var(--spacing); padding-inline-start: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
} }
ul li, ul li,
ol li { ol li {
@ -779,10 +779,10 @@ blockquote {
padding: var(--spacing); padding: var(--spacing);
border-right: none; border-right: none;
border-left: 0.25rem solid var(--blockquote-border-color); border-left: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
-webkit-border-start: 0.25rem solid var(--blockquote-border-color); -webkit-border-start: 0.25rem solid var(--blockquote-border-color);
border-inline-start: 0.25rem solid var(--blockquote-border-color); border-inline-start: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
} }
blockquote footer { blockquote footer {
margin-top: calc(var(--typography-spacing-vertical) * 0.5); margin-top: calc(var(--typography-spacing-vertical) * 0.5);
@ -904,8 +904,8 @@ a[role=button] {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -969,10 +969,10 @@ optgroup,
select, select,
textarea { textarea {
margin: 0; margin: 0;
font-family: inherit;
font-size: 1rem; font-size: 1rem;
letter-spacing: inherit;
line-height: var(--line-height); line-height: var(--line-height);
font-family: inherit;
letter-spacing: inherit;
} }
input { input {
@ -1126,13 +1126,13 @@ select:not([type=checkbox]):not([type=radio])[aria-invalid],
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] { textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important; padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
-webkit-padding-start: var(--form-element-spacing-horizontal) !important; -webkit-padding-start: var(--form-element-spacing-horizontal) !important;
padding-inline-start: var(--form-element-spacing-horizontal) !important; padding-inline-start: var(--form-element-spacing-horizontal) !important;
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
input:not([type=checkbox]):not([type=radio])[aria-invalid=false], input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
select:not([type=checkbox]):not([type=radio])[aria-invalid=false], select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
@ -1201,14 +1201,14 @@ select::-ms-expand {
select:not([multiple]):not([size]) { select:not([multiple]):not([size]) {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
-webkit-padding-start: var(--form-element-spacing-horizontal); -webkit-padding-start: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[dir=rtl] select:not([multiple]):not([size]) { [dir=rtl] select:not([multiple]):not([size]) {
@ -1243,10 +1243,10 @@ label > input, label > select, label > textarea {
margin-top: -0.125em; margin-top: -0.125em;
margin-right: 0.375em; margin-right: 0.375em;
margin-left: 0; margin-left: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: 0.375em;
margin-inline-end: 0.375em;
border-width: var(--border-width); border-width: var(--border-width);
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -1263,8 +1263,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-checkbox); background-image: var(--icon-checkbox);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=checkbox] ~ label, [type=checkbox] ~ label,
[type=radio] ~ label { [type=radio] ~ label {
@ -1279,8 +1279,8 @@ label > input, label > select, label > textarea {
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-minus); background-image: var(--icon-minus);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
[type=radio] { [type=radio] {
@ -1326,10 +1326,10 @@ label > input, label > select, label > textarea {
[type=checkbox][role=switch]:checked::before { [type=checkbox][role=switch]:checked::before {
margin-right: 0; margin-right: 0;
margin-left: calc(1.125em - var(--border-width)); margin-left: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
-webkit-margin-start: calc(1.125em - var(--border-width)); -webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width)); margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
} }
[type=checkbox][role=switch][aria-invalid=false] { [type=checkbox][role=switch][aria-invalid=false] {
--border-color: var(--form-element-valid-border-color); --border-color: var(--form-element-valid-border-color);
@ -1374,8 +1374,8 @@ label > input, label > select, label > textarea {
:not(:dir(rtl)) [type=week] { :not(:dir(rtl)) [type=week] {
background-image: var(--icon-date); background-image: var(--icon-date);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
:not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=date]::-webkit-calendar-picker-indicator,
:not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator, :not(:dir(rtl)) [type=datetime-local]::-webkit-calendar-picker-indicator,
@ -1405,10 +1405,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1416,8 +1416,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1430,10 +1430,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1441,8 +1441,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1462,10 +1462,10 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) / 2);
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1473,8 +1473,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1491,8 +1491,8 @@ label > input, label > select, label > textarea {
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
margin-inline-end: calc(var(--spacing) / 2);
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5); padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -1500,8 +1500,8 @@ label > input, label > select, label > textarea {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1603,8 +1603,8 @@ label > input, label > select, label > textarea {
padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important; padding-left: calc(var(--form-element-spacing-horizontal) + 1.75rem) !important;
background-image: var(--icon-search); background-image: var(--icon-search);
background-position: center left 1.125rem; background-position: center left 1.125rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[type=search]::-webkit-search-cancel-button { [type=search]::-webkit-search-cancel-button {
-webkit-appearance: none; -webkit-appearance: none;
@ -1627,8 +1627,8 @@ td {
padding: calc(var(--spacing) / 2) var(--spacing); padding: calc(var(--spacing) / 2) var(--spacing);
border-bottom: var(--border-width) solid var(--table-border-color); border-bottom: var(--border-width) solid var(--table-border-color);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
text-align: left; text-align: left;
text-align: start; text-align: start;
} }
@ -1648,8 +1648,8 @@ pre,
code, code,
kbd, kbd,
samp { samp {
font-family: var(--font-family);
font-size: 0.875em; font-size: 0.875em;
font-family: var(--font-family);
} }
pre { pre {
@ -1660,11 +1660,11 @@ pre {
pre, pre,
code, code,
kbd { kbd {
border-radius: var(--border-radius);
background: var(--code-background-color); background: var(--code-background-color);
color: var(--code-color); color: var(--code-color);
font-weight: var(--font-weight); font-weight: var(--font-weight);
line-height: initial; line-height: initial;
border-radius: var(--border-radius);
} }
code, code,
@ -1679,9 +1679,9 @@ pre {
overflow-x: auto; overflow-x: auto;
} }
pre > code { pre > code {
background: transparent;
display: block; display: block;
padding: var(--spacing); padding: var(--spacing);
background: transparent;
font-size: 14px; font-size: 14px;
line-height: var(--line-height); line-height: var(--line-height);
} }
@ -1764,8 +1764,8 @@ details summary::after {
transform: rotate(-90deg); transform: rotate(-90deg);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
content: ""; content: "";
transition: transform var(--transition); transition: transform var(--transition);
} }
@ -1962,8 +1962,8 @@ progress {
progress { progress {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none;
display: inline-block; display: inline-block;
appearance: none;
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
margin-bottom: calc(var(--spacing) * 0.5); margin-bottom: calc(var(--spacing) * 0.5);
@ -2028,20 +2028,20 @@ progress::-moz-progress-bar {
border: 0.1875em solid currentColor; border: 0.1875em solid currentColor;
border-radius: 1em; border-radius: 1em;
border-right-color: transparent; border-right-color: transparent;
content: "";
vertical-align: text-bottom; vertical-align: text-bottom;
vertical-align: -0.125em; vertical-align: -0.125em;
-webkit-animation: spinner 0.75s linear infinite; -webkit-animation: spinner 0.75s linear infinite;
animation: spinner 0.75s linear infinite; animation: spinner 0.75s linear infinite;
content: "";
opacity: var(--loading-spinner-opacity); opacity: var(--loading-spinner-opacity);
} }
[aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before { [aria-busy=true]:not(input):not(select):not(textarea):not(:empty)::before {
margin-right: calc(var(--spacing) * 0.5); margin-right: calc(var(--spacing) * 0.5);
margin-left: 0; margin-left: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
-webkit-margin-start: 0; -webkit-margin-start: 0;
margin-inline-start: 0; margin-inline-start: 0;
-webkit-margin-end: calc(var(--spacing) * 0.5);
margin-inline-end: calc(var(--spacing) * 0.5);
} }
[aria-busy=true]:not(input):not(select):not(textarea):empty { [aria-busy=true]:not(input):not(select):not(textarea):empty {
text-align: center; text-align: center;
@ -2088,14 +2088,14 @@ a[aria-busy=true] {
transform: translate(-50%, -0.25rem); transform: translate(-50%, -0.25rem);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--tooltip-background-color); background: var(--tooltip-background-color);
content: attr(data-tooltip);
color: var(--tooltip-color); color: var(--tooltip-color);
font-size: 0.875rem;
font-style: normal; font-style: normal;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 0.875rem;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
content: attr(data-tooltip);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
@ -2107,15 +2107,15 @@ a[aria-busy=true] {
border-left: 0.3rem solid transparent; border-left: 0.3rem solid transparent;
border-radius: 0; border-radius: 0;
background-color: transparent; background-color: transparent;
color: var(--tooltip-background-color);
content: ""; content: "";
color: var(--tooltip-background-color);
} }
[data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after { [data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after {
opacity: 1; opacity: 1;
-webkit-animation-name: slide;
animation-name: slide;
-webkit-animation-duration: 0.2s; -webkit-animation-duration: 0.2s;
animation-duration: 0.2s; animation-duration: 0.2s;
-webkit-animation-name: slide;
animation-name: slide;
} }
[data-tooltip]:focus::after, [data-tooltip]:hover::after { [data-tooltip]:focus::after, [data-tooltip]:hover::after {
-webkit-animation-name: slideCaret; -webkit-animation-name: slideCaret;

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

2
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

View file

@ -421,18 +421,18 @@ kbd {
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
background-color: var(--background-color);
color: var(--color);
font-weight: var(--font-weight);
font-size: var(--font-size);
line-height: var(--line-height);
font-family: var(--font-family);
cursor: default;
-moz-tab-size: 4; -moz-tab-size: 4;
-o-tab-size: 4; -o-tab-size: 4;
tab-size: 4; tab-size: 4;
-ms-text-size-adjust: 100%;
background-color: var(--background-color);
color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
text-rendering: optimizeLegibility;
cursor: default;
} }
/** /**
@ -585,9 +585,9 @@ ul {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight);
font-style: normal; font-style: normal;
font-weight: var(--font-weight);
font-size: var(--font-size);
} }
a { a {
@ -634,9 +634,9 @@ h6 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
font-family: var(--font-family);
} }
h1 { h1 {
@ -730,8 +730,8 @@ hgroup > * {
hgroup > *:last-child { hgroup > *:last-child {
--color: var(--muted-color); --color: var(--muted-color);
--font-weight: unset; --font-weight: unset;
font-family: unset;
font-size: 1rem; font-size: 1rem;
font-family: unset;
} }
p { p {
@ -746,10 +746,10 @@ ul,
ol { ol {
padding-right: 0; padding-right: 0;
padding-left: var(--spacing); padding-left: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
-webkit-padding-start: var(--spacing); -webkit-padding-start: var(--spacing);
padding-inline-start: var(--spacing); padding-inline-start: var(--spacing);
-webkit-padding-end: 0;
padding-inline-end: 0;
} }
ul li, ul li,
ol li { ol li {
@ -773,10 +773,10 @@ blockquote {
padding: var(--spacing); padding: var(--spacing);
border-right: none; border-right: none;
border-left: 0.25rem solid var(--blockquote-border-color); border-left: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
-webkit-border-start: 0.25rem solid var(--blockquote-border-color); -webkit-border-start: 0.25rem solid var(--blockquote-border-color);
border-inline-start: 0.25rem solid var(--blockquote-border-color); border-inline-start: 0.25rem solid var(--blockquote-border-color);
-webkit-border-end: none;
border-inline-end: none;
} }
blockquote footer { blockquote footer {
margin-top: calc(var(--typography-spacing-vertical) * 0.5); margin-top: calc(var(--typography-spacing-vertical) * 0.5);
@ -898,8 +898,8 @@ a[role=button] {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -1098,10 +1098,10 @@ optgroup,
select, select,
textarea { textarea {
margin: 0; margin: 0;
font-family: inherit;
font-size: 1rem; font-size: 1rem;
letter-spacing: inherit;
line-height: var(--line-height); line-height: var(--line-height);
font-family: inherit;
letter-spacing: inherit;
} }
input { input {
@ -1254,13 +1254,13 @@ select:not([type=checkbox]):not([type=radio])[aria-invalid],
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] { textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
-webkit-padding-start: var(--form-element-spacing-horizontal); -webkit-padding-start: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
input:not([type=checkbox]):not([type=radio])[aria-invalid=false], input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
select:not([type=checkbox]):not([type=radio])[aria-invalid=false], select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
@ -1325,14 +1325,14 @@ select::-ms-expand {
select:not([multiple]):not([size]) { select:not([multiple]):not([size]) {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
-webkit-padding-start: var(--form-element-spacing-horizontal); -webkit-padding-start: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
[dir=rtl] select:not([multiple]):not([size]) { [dir=rtl] select:not([multiple]):not([size]) {
@ -1369,8 +1369,8 @@ td {
padding: calc(var(--spacing) / 2) var(--spacing); padding: calc(var(--spacing) / 2) var(--spacing);
border-bottom: var(--border-width) solid var(--table-border-color); border-bottom: var(--border-width) solid var(--table-border-color);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
text-align: left; text-align: left;
text-align: start; text-align: start;
} }

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

12
docs/accordions.html Normal file

File diff suppressed because one or more lines are too long

6
docs/buttons.html Normal file

File diff suppressed because one or more lines are too long

5
docs/cards.html Normal file

File diff suppressed because one or more lines are too long

5
docs/classless.html Normal file

File diff suppressed because one or more lines are too long

3
docs/containers.html Normal file

File diff suppressed because one or more lines are too long

View file

@ -55,7 +55,7 @@ body > main {
@media (min-width: 992px) { @media (min-width: 992px) {
body > main { body > main {
--block-spacing-horizontal: calc(var(--spacing) * 1.75); --block-spacing-horizontal: calc(var(--spacing) * 1.75);
grid-column-gap: calc(var(--block-spacing-horizontal) * 4); grid-column-gap: calc(var(--block-spacing-horizontal) * 3);
display: grid; display: grid;
grid-template-columns: 200px auto; grid-template-columns: 200px auto;
} }
@ -70,45 +70,14 @@ body > main div[role=document] {
min-width: 0; min-width: 0;
} }
div[role=document] > section::before {
display: block;
height: calc(2rem + 3.5rem - 0.5rem);
margin-top: calc(-2rem - 3.5rem + 0.5rem);
content: "";
}
@media (min-width: 576px) {
div[role=document] > section::before {
height: calc(2.5rem + 3.5rem - 0.5rem);
height: calc(-2.5rem - 3.5rem + 0.5rem);
}
}
@media (min-width: 768px) {
div[role=document] > section::before {
height: calc(3rem + 3.5rem - 0.5rem);
margin-top: calc(-3rem - 3.5rem + 0.5rem);
}
}
@media (min-width: 992px) {
div[role=document] > section::before {
height: calc(3.5rem + 3.5rem - 0.5rem);
margin-top: calc(-3.5rem - 3.5rem + 0.5rem);
}
}
@media (min-width: 1200px) {
div[role=document] > section::before {
height: calc(4rem + 3.5rem - 0.5rem);
margin-top: calc(-4rem - 3.5rem + 0.5rem);
}
}
div[role=document] section a[href*="//"]:not([href*="https://picocss.com"]):not([role])::after { div[role=document] section a[href*="//"]:not([href*="https://picocss.com"]):not([role])::after {
display: inline-block; display: inline-block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
background-image: var(--icon-external); background-image: var(--icon-external);
background-position: top center; background-position: top center;
background-repeat: no-repeat;
background-size: 0.66rem auto; background-size: 0.66rem auto;
background-repeat: no-repeat;
content: ""; content: "";
} }
@ -121,10 +90,7 @@ svg {
*/ */
main > aside nav { main > aside nav {
width: 100%; width: 100%;
margin-bottom: var(--block-spacing-vertical); margin-bottom: calc(var(--block-spacing-vertical) * 2);
}
main > aside nav h1 {
margin-bottom: calc(var(--typography-spacing-vertical) / 2);
} }
@media (min-width: 992px) { @media (min-width: 992px) {
main > aside nav { main > aside nav {
@ -135,10 +101,43 @@ main > aside nav h1 {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
main > aside nav h1 { }
main > aside nav a#toggle-docs-navigation {
margin: 0;
margin-bottom: var(--spacing);
padding: 0;
padding-bottom: var(--spacing);
border-bottom: var(--border-width) solid var(--accordion-border-color);
}
main > aside nav a#toggle-docs-navigation svg {
margin-right: calc(var(--spacing) * 0.5);
vertical-align: -3px;
}
@media (min-width: 992px) {
main > aside nav a#toggle-docs-navigation {
display: none; display: none;
} }
} }
main > aside nav.closed-on-mobile {
margin-bottom: var(--block-spacing-vertical);
}
main > aside nav.closed-on-mobile a#toggle-docs-navigation svg.collapse {
display: none;
}
main > aside nav.closed-on-mobile details {
display: none;
}
@media (min-width: 992px) {
main > aside nav.closed-on-mobile details {
display: block;
}
main > aside nav.closed-on-mobile > a#toggle-docs-navigation {
display: none;
}
}
main > aside nav.open a#toggle-docs-navigation svg.expand {
display: none;
}
main > aside li, main > aside li,
main > aside summary { main > aside summary {
padding-top: 0; padding-top: 0;
@ -146,7 +145,7 @@ main > aside summary {
font-size: 16px; font-size: 16px;
} }
main > aside li a { main > aside li a {
padding: 0.25rem 0.5rem; padding: 0.375rem 0.5rem;
} }
main > aside li a svg { main > aside li a svg {
vertical-align: middle; vertical-align: middle;
@ -160,18 +159,20 @@ main > aside a.active:hover {
color: var(--primary); color: var(--primary);
} }
main > aside details { main > aside details {
padding-bottom: 0.25rem;
border-bottom: none; border-bottom: none;
} }
main > aside details summary { main > aside details summary {
color: var(--h1-color); color: var(--h1-color);
font-size: 14px;
font-weight: 300; font-weight: 300;
font-size: 14px;
text-transform: uppercase; text-transform: uppercase;
} }
main > aside details summary::after { main > aside details summary::after {
display: none; display: none;
} }
main > aside details[open] > summary {
margin-bottom: calc(var(--spacing) * 0.75);
}
main > aside details[open] > summary:not(:focus) { main > aside details[open] > summary:not(:focus) {
color: var(--h1-color); color: var(--h1-color);
} }
@ -185,15 +186,15 @@ main > aside details[open] > summary:not(:focus) {
#customization figure { #customization figure {
display: grid; display: grid;
grid-template-columns: repeat(9, 1fr);
grid-template-rows: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(9, 1fr);
margin-bottom: 0; margin-bottom: 0;
overflow: hidden; overflow: hidden;
} }
@media (min-width: 576px) { @media (min-width: 576px) {
#customization figure { #customization figure {
grid-template-columns: repeat(18, 1fr);
grid-template-rows: 1fr; grid-template-rows: 1fr;
grid-template-columns: repeat(18, 1fr);
border-top-right-radius: var(--border-radius); border-top-right-radius: var(--border-radius);
border-top-left-radius: var(--border-radius); border-top-left-radius: var(--border-radius);
} }
@ -216,8 +217,8 @@ main > aside details[open] > summary:not(:focus) {
#customization figure button.picked { #customization figure button.picked {
background-image: var(--icon-check); background-image: var(--icon-check);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.66rem auto; background-size: 0.66rem auto;
background-repeat: no-repeat;
box-shadow: inset 0 0 1rem 0 rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 1rem 0 rgba(0, 0, 0, 0.25);
} }
#customization figure button[data-color=lime].picked, #customization figure button[data-color=yellow].picked, #customization figure button[data-color=amber].picked { #customization figure button[data-color=lime].picked, #customization figure button[data-color=yellow].picked, #customization figure button[data-color=amber].picked {
@ -230,39 +231,39 @@ main > aside details[open] > summary:not(:focus) {
border-color: var(--primary); border-color: var(--primary);
} }
#grids { #grid {
--grid-spacing-vertical: 1rem; --grid-spacing-vertical: 1rem;
} }
#grids button { #grid button {
display: block; display: block;
width: 100%; width: 100%;
margin-bottom: var(--spacing); margin-bottom: var(--spacing);
} }
@media (min-width: 576px) { @media (min-width: 576px) {
#grids button { #grid button {
display: inline-block; display: inline-block;
width: auto; width: auto;
margin-right: 0.5rem; margin-right: 0.5rem;
} }
} }
#grids button svg { #grid button svg {
stroke: var(--secondary); stroke: var(--secondary);
margin-right: 0.5rem; margin-right: 0.5rem;
border: 2px solid currentColor; border: 2px solid currentColor;
border-radius: 1rem; border-radius: 1rem;
background: currentColor; background: currentColor;
} }
#grids .grid > * { #grid .grid > * {
padding: calc(var(--spacing) / 2) 0; padding: calc(var(--spacing) / 2) 0;
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--code-background-color); background: var(--code-background-color);
font-size: 87.5%; font-size: 87.5%;
text-align: center; text-align: center;
} }
#grids details { #grid details {
margin-top: calc(var(--typography-spacing-vertical) * 2); margin-top: calc(var(--typography-spacing-vertical) * 2);
} }
#grids details svg { #grid details svg {
vertical-align: bottom; vertical-align: bottom;
} }
@ -273,6 +274,10 @@ main > aside details[open] > summary:not(:focus) {
/** /**
* Docs: Typography * Docs: Typography
*/ */
h1 {
margin-top: -0.25em;
}
section > hgroup { section > hgroup {
margin-bottom: calc(var(--typography-spacing-vertical) * 2); margin-bottom: calc(var(--typography-spacing-vertical) * 2);
} }
@ -297,14 +302,14 @@ article > footer.code {
article pre, article pre,
article pre code { article pre code {
background: transparent;
margin-bottom: 0; margin-bottom: 0;
background: transparent;
} }
section > pre { section > pre {
background: var(--article-code-background-color);
margin: var(--block-spacing-vertical) 0; margin: var(--block-spacing-vertical) 0;
padding: calc(var(--block-spacing-vertical) / 1.5) var(--block-spacing-horizontal); padding: calc(var(--block-spacing-vertical) / 1.5) var(--block-spacing-horizontal);
background: var(--article-code-background-color);
box-shadow: var(--card-box-shadow); box-shadow: var(--card-box-shadow);
} }
@ -411,8 +416,8 @@ body > nav ul:first-of-type li:nth-of-type(2) {
border: 0.15rem solid currentColor; border: 0.15rem solid currentColor;
border-radius: 50%; border-radius: 50%;
background: linear-gradient(to right, currentColor 0%, currentColor 50%, transparent 50%); background: linear-gradient(to right, currentColor 0%, currentColor 50%, transparent 50%);
vertical-align: bottom;
content: ""; content: "";
vertical-align: bottom;
transition: transform var(--transition); transition: transform var(--transition);
} }
.switcher i { .switcher i {
@ -420,8 +425,8 @@ body > nav ul:first-of-type li:nth-of-type(2) {
max-width: 0; max-width: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
font-size: 0.875rem;
font-style: normal; font-style: normal;
font-size: 0.875rem;
white-space: nowrap; white-space: nowrap;
} }
.switcher:hover, .switcher:focus { .switcher:hover, .switcher:focus {

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

59
docs/customization.html Normal file

File diff suppressed because one or more lines are too long

93
docs/forms.html Normal file

File diff suppressed because one or more lines are too long

6
docs/grid.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

21
docs/js/commons.js Normal file
View file

@ -0,0 +1,21 @@
/*
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
// Imports
import themeSwitcher from './src/theme-switcher.js';
import toggleNavigation from './src/toggle-navigation';
// Theme switcher
themeSwitcher.addButton({
tag: 'BUTTON',
class: 'contrast switcher theme-switcher',
target: 'body',
});
themeSwitcher.init();
// Toggle navigation
toggleNavigation.init();

1
docs/js/commons.min.js vendored Normal file
View file

@ -0,0 +1 @@
"use strict";!function(){var t={_scheme:"auto",change:{light:"<i>Turn on dark mode</i>",dark:"<i>Turn off dark mode</i>"},buttonsTarget:".theme-switcher",init:function(){this.scheme=this._scheme,this.initSwitchers()},get preferedColorScheme(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},initSwitchers:function(){document.querySelectorAll(this.buttonsTarget).forEach(function(t){t.addEventListener("click",function(t){"dark"==this.scheme?this.scheme="light":this.scheme="dark"}.bind(this),!1)}.bind(this))},addButton:function(t){var e=document.createElement(t.tag);e.className=t.class,document.querySelector(t.target).appendChild(e)},set scheme(t){"auto"==t?"dark"==this.preferedColorScheme?this._scheme="dark":this._scheme="light":"dark"!=t&&"light"!=t||(this._scheme=t),this.applyScheme()},get scheme(){return this._scheme},applyScheme:function(){var e;document.querySelector("html").setAttribute("data-theme",this.scheme),document.querySelectorAll(this.buttonsTarget).forEach(function(t){e="dark"==this.scheme?this.change.dark:this.change.light,t.innerHTML=e,t.setAttribute("aria-label",e.replace(/<[^>]*>?/gm,""))}.bind(this))}},e={_state:"closed-on-mobile",toggleLink:document.getElementById("toggle-docs-navigation"),nav:document.querySelector("main > aside > nav"),init:function(){this.onToggleClick()},onToggleClick:function(){this.toggleLink.addEventListener("click",function(t){t.preventDefault(),"closed-on-mobile"==this.state?this.state="open":this.state="closed-on-mobile",this.nav.removeAttribute("class"),this.nav.classList.add(this.state)}.bind(this),!1)},applyState:function(){},get state(){return this._state},set state(t){this._state=t}};t.addButton({tag:"BUTTON",class:"contrast switcher theme-switcher",target:"body"}),t.init(),e.init()}();

14
docs/js/customization.js Normal file
View file

@ -0,0 +1,14 @@
/*
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
// Imports
import materialDesignColors from './src/material-design-colors.js';
import colorPicker from './src/color-picker.js';
// Color Picker
colorPicker.colors = materialDesignColors;
colorPicker.init();

1
docs/js/customization.min.js vendored Normal file

File diff suppressed because one or more lines are too long

12
docs/js/grid.js Normal file
View file

@ -0,0 +1,12 @@
/*
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
// Imports
import grid from './src/grid.js';
// Grid Interaction
grid.init();

1
docs/js/grid.min.js vendored Normal file
View file

@ -0,0 +1 @@
"use strict";({buttons:{text:{add:"Add column",remove:"Remove column"},target:"#grid article"},grid:{current:4,min:1,max:12,gridTarget:"#grid .grid",codeTarget:"#grid pre code"},init:function(){this.addButtons(),this.generateGrid()},addButtons:function(){var t=document.createElement("P");t.innerHTML='\n <button class="secondary add">\n <svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">\n <line x1="12" y1="5" x2="12" y2="19"></line>\n <line x1="5" y1="12" x2="19" y2="12">\'</line>\n </svg>\n '.concat(this.buttons.text.add,'\n </button>\n\n <button class="secondary remove">\n <svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">\n <line x1="5" y1="12" x2="19" y2="12"></line>\n </svg>\n ').concat(this.buttons.text.remove,"\n </button>"),document.querySelector(this.buttons.target).before(t),document.querySelector("#grid button.add").addEventListener("click",function(){this.addColumn()}.bind(this),!1),document.querySelector("#grid button.remove").addEventListener("click",function(){this.removeColumn()}.bind(this),!1)},generateGrid:function(){for(var t="",e='&lt;<b>div</b> <i>class</i>=<u>"grid"</u>&gt;\n',n=0;n<this.grid.current;n++)t+="<div>"+(n+1)+"</div>",e+=" &lt;<b>div</b>&gt;"+(n+1)+"&lt;/<b>div</b>&gt;\n";e+="&lt;/<b>div</b>&gt;",document.querySelector(this.grid.gridTarget).innerHTML=t,document.querySelector(this.grid.codeTarget).innerHTML=e},addColumn:function(){this.grid.current<this.grid.max&&(this.grid.current++,this.generateGrid())},removeColumn:function(){this.grid.current>this.grid.min&&(this.grid.current--,this.generateGrid())}}).init();

View file

@ -1,35 +0,0 @@
/*
* Add some magic to Pico docs
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
// Imports
import aside from './src/aside.js';
import themeSwitcher from './src/theme-switcher.js';
import materialDesignColors from './src/material-design-colors.js';
import colorPicker from './src/color-picker.js';
import grid from './src/grid.js';
import scrollspy from './src/scrollspy.js';
// Aside initial state
aside.init();
// Theme switcher
themeSwitcher.addButton({
tag: 'BUTTON',
class: 'contrast switcher theme-switcher',
target: 'body',
});
themeSwitcher.init();
// Color Picker
colorPicker.colors = materialDesignColors;
colorPicker.init();
// Grid Interaction
grid.init();
// Scrollspy
scrollspy.init();

File diff suppressed because one or more lines are too long

View file

@ -1,30 +0,0 @@
/*
* Aside adjustment
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
export const aside = {
// Config
minWidth: '992px',
targets: {
nav: 'aside nav',
details: 'aside details',
},
// Init
init() {
if (window.matchMedia('(min-width: ' + this.minWidth + ')').matches) {
let nav = document.querySelector(this.targets.nav);
let details = document.querySelectorAll(this.targets.details);
if (nav.clientHeight < nav.scrollHeight) {
details.forEach(function (detail) {
detail.removeAttribute('open');
});
}
}
},
};
export default aside;

View file

@ -6,6 +6,7 @@
*/ */
export const colorPicker = { export const colorPicker = {
// Config // Config
colors: null, colors: null,
buttonsTarget: '#customization article[data-theme="generated"]', buttonsTarget: '#customization article[data-theme="generated"]',

View file

@ -6,20 +6,21 @@
*/ */
export const grid = { export const grid = {
// Config // Config
buttons: { buttons: {
text: { text: {
add: 'Add column', add: 'Add column',
remove: 'Remove column', remove: 'Remove column',
}, },
target: '#grids article', target: '#grid article',
}, },
grid: { grid: {
current: 4, current: 4,
min: 1, min: 1,
max: 12, max: 12,
gridTarget: '#grids .grid', gridTarget: '#grid .grid',
codeTarget: '#grids pre code', codeTarget: '#grid pre code',
}, },
// Init // Init
@ -50,7 +51,7 @@ export const grid = {
document.querySelector(this.buttons.target).before(buttons); document.querySelector(this.buttons.target).before(buttons);
// Add button listener // Add button listener
document.querySelector('#grids button.add').addEventListener( document.querySelector('#grid button.add').addEventListener(
'click', 'click',
function () { function () {
this.addColumn(); this.addColumn();
@ -59,7 +60,7 @@ export const grid = {
); );
// Remove button listener // Remove button listener
document.querySelector('#grids button.remove').addEventListener( document.querySelector('#grid button.remove').addEventListener(
'click', 'click',
function () { function () {
this.removeColumn(); this.removeColumn();

View file

@ -1,74 +0,0 @@
/*
* Scrollspy
* Automatically update nav targets based on scroll position
*
* Require `most-visible.js` (https://github.com/andyexeter/most-visible)
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
export const scrollspy = {
// Config
minWidth: '992px',
interval: 75,
targets: {
sections: '[role="document"] > section',
nav: 'main aside nav',
active: 'active',
},
// Init
init() {
if (window.matchMedia('(min-width: ' + this.minWidth + ')').matches) {
this.setActiveNav();
this.scrollStop();
}
},
// Set active section in nav
setActiveNav() {
// Get active section
let currentSection = mostVisible(this.targets.sections).getAttribute('id');
// Remove all active states
let links = document.querySelectorAll(
this.targets.nav + ' a.' + this.targets.active
);
links.forEach(
function (link) {
link.classList.remove(this.targets.active);
}.bind(this)
);
// Set active state
let activeLink = document.querySelector(
this.targets.nav + ' a[href="#' + currentSection + '"]'
);
activeLink.classList.add(this.targets.active);
// Open details parent
activeLink.closest('details').setAttribute('open', '');
},
// Scroll stop
scrollStop() {
let isScrolling;
window.addEventListener(
'scroll',
function (event) {
window.clearTimeout(isScrolling);
isScrolling = setTimeout(
function () {
this.setActiveNav();
}.bind(this),
this.interval
);
}.bind(this),
false
);
},
};
export default scrollspy;

View file

@ -6,6 +6,7 @@
*/ */
export const themeSwitcher = { export const themeSwitcher = {
// Config // Config
_scheme: 'auto', _scheme: 'auto',
change: { change: {

View file

@ -0,0 +1,53 @@
/*
* Toggle navigation
*
* Pico.css - https://picocss.com
* Copyright 2019-2021 - Licensed under MIT
*/
export const toggleNavigation = {
// Config
_state: 'closed-on-mobile',
toggleLink: document.getElementById('toggle-docs-navigation'),
nav: document.querySelector('main > aside > nav'),
// Init
init() {
this.onToggleClick()
},
onToggleClick() {
this.toggleLink.addEventListener(
'click',
function (event) {
event.preventDefault();
if (this.state == 'closed-on-mobile') {
this.state = 'open';
} else {
this.state = 'closed-on-mobile';
}
this.nav.removeAttribute('class');
this.nav.classList.add(this.state);
}.bind(this),
false
);
},
// Apply navigation state
applyState() {
},
// Get state
get state() {
return this._state;
},
// Set state
set state(state) {
this._state = state;
},
};
export default toggleNavigation;

2
docs/loading.html Normal file

File diff suppressed because one or more lines are too long

28
docs/navs.html Normal file

File diff suppressed because one or more lines are too long

3
docs/progress.html Normal file

File diff suppressed because one or more lines are too long

4
docs/rtl.html Normal file

File diff suppressed because one or more lines are too long

5
docs/scroller.html Normal file

File diff suppressed because one or more lines are too long

View file

@ -26,8 +26,8 @@
currentColor 50%, currentColor 50%,
transparent 50% transparent 50%
); );
vertical-align: bottom;
content: ""; content: "";
vertical-align: bottom;
transition: transform var(--transition); transition: transform var(--transition);
} }
@ -36,8 +36,8 @@
max-width: 0; max-width: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
font-size: 0.875rem;
font-style: normal; font-style: normal;
font-size: 0.875rem;
white-space: nowrap; white-space: nowrap;
} }

View file

@ -8,17 +8,17 @@ article > footer.code {
} }
article pre, article pre,
article pre code { article pre code {
background: transparent;
margin-bottom: 0; margin-bottom: 0;
background: transparent;
} }
// Code block outside article // Code block outside article
// Horizontally aligned with <article> content // Horizontally aligned with <article> content
section > pre { section > pre {
background: var(--article-code-background-color);
margin: var(--block-spacing-vertical) 0; margin: var(--block-spacing-vertical) 0;
padding: calc(var(--block-spacing-vertical) / 1.5) padding: calc(var(--block-spacing-vertical) / 1.5)
var(--block-spacing-horizontal); var(--block-spacing-horizontal);
background: var(--article-code-background-color);
box-shadow: var(--card-box-shadow); box-shadow: var(--card-box-shadow);
} }

View file

@ -2,6 +2,10 @@
* Docs: Typography * Docs: Typography
*/ */
h1 {
margin-top: -0.25em;
}
section > hgroup { section > hgroup {
margin-bottom: calc(var(--typography-spacing-vertical) * 2); margin-bottom: calc(var(--typography-spacing-vertical) * 2);
} }

View file

@ -3,13 +3,10 @@
*/ */
main > aside { main > aside {
nav { nav {
width: 100%; width: 100%;
margin-bottom: var(--block-spacing-vertical); margin-bottom: calc(var(--block-spacing-vertical) * 2);
h1 {
margin-bottom: calc(var(--typography-spacing-vertical) / 2);
}
@media (min-width: map-get($breakpoints, "lg")) { @media (min-width: map-get($breakpoints, "lg")) {
position: fixed; position: fixed;
@ -18,13 +15,59 @@ main > aside {
margin-bottom: 0; margin-bottom: 0;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
}
h1 { a#toggle-docs-navigation {
margin: 0;
margin-bottom: var(--spacing);
padding: 0;
padding-bottom: var(--spacing);
border-bottom: var(--border-width) solid var(--accordion-border-color);
svg {
margin-right: calc(var(--spacing) * 0.5);
vertical-align: -3px;
}
@media (min-width: map-get($breakpoints, "lg")) {
display: none; display: none;
} }
} }
&.closed-on-mobile {
margin-bottom: var(--block-spacing-vertical);
a#toggle-docs-navigation {
svg.collapse {
display: none;
}
}
details {
display: none;
}
@media (min-width: map-get($breakpoints, "lg")) {
details {
display: block;
}
> a#toggle-docs-navigation {
display: none;
}
}
}
&.open {
a#toggle-docs-navigation {
svg.expand {
display: none;
}
}
}
} }
li, li,
summary { summary {
padding-top: 0; padding-top: 0;
@ -33,7 +76,7 @@ main > aside {
} }
li a { li a {
padding: 0.25rem 0.5rem; padding: 0.375rem 0.5rem;
svg { svg {
vertical-align: middle; vertical-align: middle;
@ -51,13 +94,12 @@ main > aside {
} }
details { details {
padding-bottom: 0.25rem;
border-bottom: none; border-bottom: none;
summary { summary {
color: var(--h1-color); color: var(--h1-color);
font-size: 14px;
font-weight: 300; font-weight: 300;
font-size: 14px;
text-transform: uppercase; text-transform: uppercase;
&::after { &::after {
@ -66,8 +108,12 @@ main > aside {
} }
&[open] { &[open] {
> summary:not(:focus) { > summary {
color: var(--h1-color); margin-bottom: calc(var(--spacing) * 0.75);
&:not(:focus) {
color: var(--h1-color);
}
} }
} }
} }

View file

@ -13,14 +13,14 @@
#customization { #customization {
figure { figure {
display: grid; display: grid;
grid-template-columns: repeat(9, 1fr);
grid-template-rows: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(9, 1fr);
margin-bottom: 0; margin-bottom: 0;
overflow: hidden; overflow: hidden;
@media (min-width: map-get($breakpoints, "sm")) { @media (min-width: map-get($breakpoints, "sm")) {
grid-template-columns: repeat(18, 1fr);
grid-template-rows: 1fr; grid-template-rows: 1fr;
grid-template-columns: repeat(18, 1fr);
border-top-right-radius: var(--border-radius); border-top-right-radius: var(--border-radius);
border-top-left-radius: var(--border-radius); border-top-left-radius: var(--border-radius);
} }
@ -45,8 +45,8 @@
&.picked { &.picked {
background-image: var(--icon-check); background-image: var(--icon-check);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.66rem auto; background-size: 0.66rem auto;
background-repeat: no-repeat;
box-shadow: inset 0 0 1rem 0 rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 1rem 0 rgba(0, 0, 0, 0.25);
} }
&[data-color="lime"], &[data-color="lime"],
@ -68,8 +68,8 @@
} }
} }
// Docs: Grids // Docs: Grid
#grids { #grid {
--grid-spacing-vertical: 1rem; --grid-spacing-vertical: 1rem;
button { button {

View file

@ -12,7 +12,7 @@ body > main {
@if map-get($breakpoints, "lg") { @if map-get($breakpoints, "lg") {
@media (min-width: map-get($breakpoints, "lg")) { @media (min-width: map-get($breakpoints, "lg")) {
--block-spacing-horizontal: calc(var(--spacing) * 1.75); --block-spacing-horizontal: calc(var(--spacing) * 1.75);
grid-column-gap: calc(var(--block-spacing-horizontal) * 4); grid-column-gap: calc(var(--block-spacing-horizontal) * 3);
display: grid; display: grid;
grid-template-columns: 200px auto; grid-template-columns: 200px auto;
} }
@ -30,42 +30,6 @@ body > main {
} }
} }
// Anchors hacks for internal links
div[role="document"] > section::before {
display: block;
height: calc(2rem + #{$navHeight} - 0.5rem);
margin-top: calc(-2rem - #{$navHeight} + 0.5rem);
content: "";
@if map-get($breakpoints, "sm") {
@media (min-width: map-get($breakpoints, "sm")) {
height: calc(2.5rem + #{$navHeight} - 0.5rem);
height: calc(-2.5rem - #{$navHeight} + 0.5rem);
}
}
@if map-get($breakpoints, "md") {
@media (min-width: map-get($breakpoints, "md")) {
height: calc(3rem + #{$navHeight} - 0.5rem);
margin-top: calc(-3rem - #{$navHeight} + 0.5rem);
}
}
@if map-get($breakpoints, "lg") {
@media (min-width: map-get($breakpoints, "lg")) {
height: calc(3.5rem + #{$navHeight} - 0.5rem);
margin-top: calc(-3.5rem - #{$navHeight} + 0.5rem);
}
}
@if map-get($breakpoints, "xl") {
@media (min-width: map-get($breakpoints, "xl")) {
height: calc(4rem + #{$navHeight} - 0.5rem);
margin-top: calc(-4rem - #{$navHeight} + 0.5rem);
}
}
}
// External links // External links
div[role="document"] section a[href*="//"]:not([href*="https://picocss.com"]):not([role])::after div[role="document"] section a[href*="//"]:not([href*="https://picocss.com"]):not([role])::after
{ {
@ -74,8 +38,8 @@ div[role="document"] section a[href*="//"]:not([href*="https://picocss.com"]):no
height: 1rem; height: 1rem;
background-image: var(--icon-external); background-image: var(--icon-external);
background-position: top center; background-position: top center;
background-repeat: no-repeat;
background-size: 0.66rem auto; background-size: 0.66rem auto;
background-repeat: no-repeat;
content: ""; content: "";
} }

4
docs/src/_footer.html Normal file
View file

@ -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>

8
docs/src/_head.html Normal file
View file

@ -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://www.picocss.com/docs/${props.canonical}">

23
docs/src/_nav.html Normal file
View file

@ -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://picocss.com#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>

72
docs/src/_sidebar.html Normal file
View file

@ -0,0 +1,72 @@
<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 content
</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="./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.classList.add('active');
parentAccordion.setAttribute('open', 'true');
</script>
</aside>

62
docs/src/accordions.html Normal file
View file

@ -0,0 +1,62 @@
<!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>Collapsible elements 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>Collapsible elements 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>&lt;<b>details</b>&gt;
&lt;<b>summary</b>&gt;Collapsible elements 1&lt;/<b>summary</b>&gt;
&lt;<b>p</b>&gt;&lt;/<b>p</b>&gt;
&lt;/<b>details</b>&gt;
&lt;<b>details</b> <i>open</i>&gt;
&lt;<b>summary</b>&gt;Collapsible elements 2&lt;/<b>summary</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;/<b>li</b>&gt;
&lt;<b>li</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;/<b>details</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

76
docs/src/buttons.html Normal file
View file

@ -0,0 +1,76 @@
<!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>&lt;<b>button</b>&gt;Button&lt;/<b>button</b>&gt;
&lt;<b>input</b> <i>type</i>=<u>"submit"</u>&gt;</code></pre>
</footer>
</article>
<p>Buttons are <code><i>width</i>: <u>100%</u>;</code> by default. Use <code>&lt;<b>a</b> <i>role</i>=<u>"button"&gt;</u></code> if you need an inline element.</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>&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>&gt;Link&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>&gt;Link&lt;/<b>a</b>&gt;</code></pre>
</footer>
</article>
<p>Buttons come with <code>.secondary</code> and <code>.contrast</code> styles.</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>&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>&gt;Secondary&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast"</u>&gt;Contrast&lt;/<b>a</b>&gt;</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>&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"outline"</u>&gt;Primary&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary outline"</u>&gt;Secondary&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast outline"</u>&gt;Contrast&lt;/<b>a</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

48
docs/src/cards.html Normal file
View file

@ -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>&lt;<b>article</b>&gt;I'm a card!&lt;/<b>article</b>&gt;</code></pre>
<p>You can use <code>&lt;<b>header</b>&gt;</code> and footer <code>&lt;<b>footer</b>&gt;</code> inside <code>&lt;<b>article</b>&gt;</code></p>
<article aria-label="Card sectioning example">
<header>Header</header>
Body
<footer>Footer</footer>
</article>
<pre><code>&lt;<b>article</b>&gt;
&lt;<b>header</b>&gt;Header&lt;/<b>header</b>&gt;
Body
&lt;<b>footer</b>&gt;Footer&lt;/<b>footer</b>&gt;
&lt;/<b>article</b>&gt;</code></pre>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

48
docs/src/classless.html Normal file
View file

@ -0,0 +1,48 @@
<!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://picocss.com/examples/classless/">example</a>).</p>
<p>In this version, <code>&lt;<b>header</b>&gt;</code>, <code>&lt;<b>main</b>&gt;</code>, and <code>&lt;<b>footer</b>&gt;</code> act as <a href="./containers.html">containers</a> to define a centered or a fluid viewport.</p>
<p><strong>Usage:</strong></p>
<p>Use the default <code>.classless</code> version if you need centered viewports:</p>
<pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet</u>" <i>href</i>=<u>"css/pico.classless.min.css"</u>&gt;</code></pre>
<p>Or use the <code>.fluid.classless</code> version if you need a fluid container:</p>
<pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet</u>" <i>href</i>=<u>"css/pico.fluid.classless.min.css"</u>&gt;</code></pre>
<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 viewport</em>
&lt;<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>&gt;
</code></pre>
<pre><code><em>// Fluid viewport</em>
&lt;<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>&gt;
</code></pre>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

74
docs/src/containers.html Normal file
View file

@ -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>&lt;<b>body</b>&gt;
&lt;<b>main</b> <i>class</i>=<u>"container"</u>&gt;&lt;/<b>main</b>&gt;
&lt;/<b>body</b>&gt;</code></pre>
<p>Pico uses the same breakpoints and viewports sizes as <a href="https://getbootstrap.com/docs/5.0/layout/breakpoints/#available-breakpoints">Bootstrap</a>.</p>
<figure>
<table role="grid">
<thead>
<tr>
<th>Device</th>
<th>Extra&nbsp;small</th>
<th>Small</th>
<th>Medium</th>
<th>Large</th>
<th>Extra&nbsp;large</th>
</tr>
</thead>
<tbody>
<tr>
<th>Breakpoint</th>
<td>&lt;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>&lt;<b>header</b>&gt;</code>, <code>&lt;<b>main</b>&gt;</code> and <code>&lt;<b>footer</b>&gt;</code> as direct childs of <code>&lt;<b>body</b>&gt;</code> provide a responsive vertical <code><i>padding</i></code></p>
<p><code>&lt;<b>section</b>&gt;</code> provide 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>

131
docs/src/customization.html Normal file
View file

@ -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">
<h4><span class="name">Custom theme</span></h4>
<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>
<h4>Overriding CSS variables</h4>
<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=<u>"light"</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>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>
<h4>Importing Pico SASS library</h4>
<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 full Pico source code</em>
<b>@import</b> <u>"path/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 <span class="name"> </span>version */</em>
<em>// Custom theme</em>
<b>@import</b> <u>"path/themes/custom"</u>;
<em>// Import needed components</em>
<b>@import</b> <u>"path/layout/document"</u>;
<b>@import</b> <u>"path/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. Example here: <a href="https://github.com/picocss/pico/blob/master/scss/pico.slim.scss">scss/pico.slim.scss</a>.</p>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
<script src="js/customization.min.js"></script>
</body>
</html>

243
docs/src/forms.html Normal file
View file

@ -0,0 +1,243 @@
<!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 natives 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>&lt;<b>form</b>&gt;
<em>&lt;!-- Grid --&gt;</em>
&lt;<b>div</b> <i>class</i>=<u>"grid"</u>&gt;
<em>&lt;!-- Markup example 1: input is inside label --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"firstname"</u>&gt;
First name
&lt;<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>&gt;
&lt;/<b>label</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"lastname"</u>&gt;
Last name
&lt;<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>&gt;
&lt;/<b>label</b>&gt;
&lt;/<b>div</b>&gt;
<em>&lt;!-- Markup example 2: input is after label --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"email"</u>&gt;Email address&lt;/<b>label</b>&gt;
&lt;<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>&gt;
&lt;<b>small</b>&gt;We'll never share your email with anyone else.&lt;/<b>small</b>&gt;
<em>&lt;!-- Button --&gt;</em>
&lt;<b>button</b> <i>type</i>=<u>"submit"</u>&gt;Submit&lt;/<b>button</b>&gt;
&lt;/<b>form</b>&gt;</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>&lt;<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Valid"</u> <i>aria-invalid</i>=<u>"false"</u>&gt;
&lt;<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Invalid"</u> <i>aria-invalid</i>=<u>"true"</u>&gt;
&lt;<b>input</b> <i>type</i>=<u>"text"</u> <i>placeholder</i>=<u>"Disabled"</u> <i>disabled</i>&gt;
&lt;<b>input</b> <i>type</i>=<u>"text"</u> <i>value</i>=<u>"Readonly"</u> <i>readonly</i>&gt;</code></pre>
</footer>
</article>
<p><code>&lt;<b>fieldset</b>&gt;</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>
</fieldset>
<fieldset>
<label for="terms">
<input type="checkbox" id="terms" name="terms">
I agree to the Terms and Conditions
</label>
</fieldset>
<fieldset>
<label for="switch">
<input type="checkbox" id="switch" name="switch" role="switch">
Publish on my profile
</label>
</fieldset>
<footer class="code">
<pre><code><em>&lt;!-- Select --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"fruit"</u>&gt;Fruit&lt;/<b>label</b>&gt;
&lt;<b>select</b> <i>id</i>=<u>"fruit"</u> <i>required</i>&gt;
&lt;<b>option</b> <i>value</i>=<u>""</u> <i>selected</i>&gt;Select a fruit…&lt;/<b>option</b>&gt;
&lt;<b>option</b>&gt;&lt;/<b>option</b>&gt;
&lt;/<b>select</b>&gt;
<em>&lt;!-- Radios --&gt;</em>
&lt;<b>fieldset</b>&gt;
&lt;<b>legend</b>&gt;Size&lt;/<b>legend</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"small"</u>&gt;
&lt;<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>&gt;
Small
&lt;/<b>label</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"medium"</u>&gt;
&lt;<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>&gt;
Medium
&lt;/<b>label</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"large"</u>&gt;
&lt;<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>&gt;
Large
&lt;/<b>label</b>&gt;
&lt;/<b>fieldset</b>&gt;
<em>&lt;!-- Checkbox --&gt;</em>
&lt;<b>fieldset</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"terms"</u>&gt;
&lt;<b>input</b> <i>type</i>=<u>"checkbox"</u> <i>id</i>=<u>"terms"</u> <i>name</i>=<u>"terms"</u>&gt;
I agree to the Terms and Conditions
&lt;/<b>label</b>&gt;
&lt;/<b>fieldset</b>&gt;
<em>&lt;!-- Switch --&gt;</em>
&lt;<b>fieldset</b>&gt;
&lt;<b>label</b> <i>for</i>=<u>"switch"</u>&gt;
&lt;<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>&gt;
Publish on my profile
&lt;/<b>label</b>&gt;
&lt;/<b>fieldset</b>&gt;</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>&lt;<b>script</b>&gt;
<i>document</i>.<b>getElementById</b>(<u>'indeterminate-checkbox'</u>).<i>indeterminate</i> = <u>true</u>;
&lt;/<b>script</b>&gt;</code></pre>
</footer>
</article>
<p>Others input types:</p>
<article aria-label="File browser, range slider, date, time, color examples">
<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>&lt;!-- File browser --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"file"</u>&gt;File browser
&lt;<b>input</b> <i>type</i>=<u>"file"</u> <i>id</i>=<u>"file"</u> <i>name</i>=<u>"file"</u>&gt;
&lt;/<b>label</b>&gt;
<em>&lt;!-- Range slider --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"range"</u>&gt;Range slider
&lt;<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>&gt;
&lt;/<b>label</b>&gt;
<em>&lt;!-- Date --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"date"</u>&gt;Date
&lt;<b>input</b> <i>type</i>=<u>"date"</u> <i>id</i>=<u>"date"</u> <i>name</i>=<u>"date"</u>&gt;
&lt;/<b>label</b>&gt;
<em>&lt;!-- Time --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"time"</u>&gt;Time
&lt;<b>input</b> <i>type</i>=<u>"time"</u> <i>id</i>=<u>"time"</u> <i>name</i>=<u>"time"</u>&gt;
&lt;/<b>label</b>&gt;
<em>&lt;!-- Color --&gt;</em>
&lt;<b>label</b> <i>for</i>=<u>"color"</u>&gt;Color
&lt;<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>>
&lt;/<b>label</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

67
docs/src/grid.html Normal file
View file

@ -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://picocss.com/examples/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>

57
docs/src/index.html Normal file
View file

@ -0,0 +1,57 @@
<!doctype html>
<html lang="en">
<head>
${require('./_head.html')
title="Documentation"
description="Pico works without package manager or dependencies! There are 3 ways to get started with pico.css: manually, from a CDN, with NPM."
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 3 ways to get started with pico.css:</p>
<h4>Install manually</h4>
<p><a href="https://github.com/picocss/pico/archive/refs/heads/master.zip">Download Pico</a> and link <code>/css/pico.min.css</code> in the <code>&lt;<b>head</b>&gt;</code> of your website.</p>
<pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>&gt;</code></pre>
<h4>Install from CDN</h4>
<p>Alternatively, you can use <a href="https://unpkg.com/@picocss/pico@latest/">unpkg CDN</a> to link pico.css</p>
<pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"https://unpkg.com/@picocss/pico@latest/css/pico.min.css"</u>&gt;</code></pre>
<h4>Install with NPM</h4>
<pre><code><b>npm</b> <i>install</i> <u>@picocss/pico</u></code></pre>
<p>Starter HTML template:</p>
<pre><code><em>&lt;!doctype html&gt;</em>
&lt;<b>html</b> <i>lang</i>=<u>"en"</u>&gt;
&lt;<b>head</b>&gt;
&lt;<b>meta</b> <i>charset</i>=<u>"utf-8"</u>&gt;
&lt;<b>meta</b> <i>name</i>=<u>"viewport"</u> <i>content</i>=<u>"width=device-width, initial-scale=1"</u>&gt;
&lt;<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>&gt;
&lt;<b>title</b>>Hello, world!&lt;/<b>title</b>&gt;
&lt;/<b>head</b>&gt;
&lt;<b>body</b>&gt;
&lt;<b>main</b> <i>class</i>=<u>"container"</u>&gt;
&lt;<b>h1</b>&gt;Hello, world!&lt;/<b>h1</b>&gt;
&lt;/<b>main</b>&gt;
&lt;/<b>body</b>&gt;
&lt;/<b>html</b>&gt;</code></pre>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

51
docs/src/loading.html Normal file
View file

@ -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>&lt;<b>button</b> <i>aria-busy</i>=<u>"true"</u>&gt;Please wait…&lt;/<b>button</b>&gt;
&lt;<b>button</b> <i>aria-busy</i>=<u>"true"</u> <i>class</i>=<u>"secondary"</u>&gt;&lt;/<b>button</b>&gt;</code></pre>
</footer>
</article>
<p>It can be applied to any block:</p>
<article aria-busy="true"></article>
<pre><code>&lt;<b>article</b> <i>aria-busy</i>=<u>"true"</u>&gt;&lt;/<b>article</b>&gt;</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>&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>aria-busy</i>=<u>"true"</u>&gt;Generating link, please wait…&lt;/<b>a</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

127
docs/src/navs.html Normal file
View file

@ -0,0 +1,127 @@
<!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()">Link</a></li>
</ul>
</nav>
<footer class="code">
<pre><code>&lt;<b>nav</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>strong</b>&gt;Brand&lt;/<b>strong</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;/<b>nav</b>&gt;</code></pre>
</footer>
</article>
<p><code>&lt;<b>ul</b>&gt;</code> are automatically distributed horizontally.</p>
<p><code>&lt;<b>li</b>&gt;</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>&lt;<b>nav</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>&gt;&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>strong</b>&gt;Brand&lt;/<b>strong</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>&gt;&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;/<b>nav</b>&gt;</code></pre>
</footer>
</article>
<p>Inside <code>&lt;<b>aside</b>&gt;</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>&lt;<b>aside</b>&gt;
&lt;<b>nav</b>&gt;
&lt;<b>ul</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;<b>li</b>&gt;&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Link&lt;/<b>a</b>&gt;&lt;/<b>li</b>&gt;
&lt;/<b>ul</b>&gt;
&lt;/<b>nav</b>&gt;
&lt;/<b>aside</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

51
docs/src/progress.html Normal file
View file

@ -0,0 +1,51 @@
<!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>&lt;<b>progress</b> <i>value</i>=<u>"25</u>" <i>max</i>=<u>"100"</u>&gt;&lt;/<b>progress</b>&gt;</code></pre>
</footer>
</article>
<p>You can change a progress bar to an indeterminate state by setting the <code><i>indeterminate</i></code> property to <code><u>true</u></code></p>
<article aria-label="Indeterminate progress bar example">
<progress id="indeterminate-progress"></progress>
<script>document.getElementById('indeterminate-progress').indeterminate = true;</script>
<footer class="code">
<pre><code>&lt;<b>script</b>&gt;
<i>document</i>.<b>getElementById</b>(<u>'indeterminate-progress'</u>).<i>indeterminate</i> = <u>true</u>;
&lt;/<b>script</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

39
docs/src/rtl.html Normal file
View file

@ -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>&lt;<b>html</b>&gt</code> element.</p>
<pre><code><em>&lt;!doctype html&gt;</em>
&lt;<b>html</b> <i>dir</i>=<u>"rtl"</u> <i>lang</i>=<u>"ar"</u>&gt;
<em>...</em>
&lt;/<b>html</b>&gt;</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>

95
docs/src/scroller.html Normal file
View file

@ -0,0 +1,95 @@
<!doctype html>
<html lang="en">
<head>
${require('./_head.html')
title="Horizontal scroller"
description="&lt;figure&gt; 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>&lt;<b>figure</b>&gt;</code> acts as a container to make any content scrollable horizontally.</h2>
</hgroup>
<p>Useful to have responsive <code>&lt;<b>table</b>&gt;</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>&lt;<b>figure</b>&gt;
&lt;<b>table</b>&gt;
&lt;/<b>table</b>&gt;
&lt;/<b>figure</b>&gt;</code></pre>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

157
docs/src/tables.html Normal file
View file

@ -0,0 +1,157 @@
<!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>
</table>
</figure>
<pre><code>&lt;<b>table</b>&gt;
&lt;<b>thead</b>&gt;
&lt;<b>tr</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;#&lt;/<b>th</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
&lt;/<b>tr</b>&gt;
&lt;/<b>thead</b>&gt;
&lt;<b>tbody</b>&gt;
&lt;<b>tr</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;/<b>tr</b>&gt;
&lt;<b>tr</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;/<b>tr</b>&gt;
&lt;<b>tr</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;/<b>tr</b>&gt;
&lt;/<b>tbody</b>&gt;
&lt;/<b>table</b>&gt;</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>&lt;<b>table</b> <i>role</i>=<u>"grid"</u>&gt;
<em></em>
&lt;/<b>table</b>&gt;</code></pre>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

66
docs/src/themes.html Normal file
View file

@ -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>&lt;<b>html</b> <i>data-theme</i>=<u>"light"</u>&gt;</code> or on any HTML element <code>&lt;<b>article</b> <i>data-theme</i>=<u>"dark"</u>&gt;</code></p>
<article data-theme="light" aria-label="Forced light theme example">
<h4>Light theme</h4>
<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>&lt;<b>article</b> <i>data-theme</i>=<u>"light"</u>&gt;
&lt;/<b>article</b>&gt;</code></pre>
</footer>
</article>
<article data-theme="dark" aria-label="Forced dark theme example">
<h4>Dark theme</h4>
<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>&lt;<b>article</b> <i>data-theme</i>=<u>"dark"</u>&gt;
&lt;/<b>article</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

43
docs/src/tooltips.html Normal file
View file

@ -0,0 +1,43 @@
<!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>&lt;<b>p</b>&gt;Tooltip on a &lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>data-tooltip</i>=<u>"Tooltip"</u>&gt;link&lt;/<b>a</b>&gt;&lt;/<b>p</b>&gt;
&lt;<b>p</b>&gt;Tooltip on &lt;<b>em</b> <i>data-tooltip</i>=<u>"Tooltip"</u>&gt;inline element&lt;/<b>em</b>&gt;&lt;/<b>p</b>&gt;
&lt;<b>p</b>&gt;&lt;<b>button</b> <i>data-tooltip</i>=<u>"Tooltip"</u>&gt;Tooltip on a button&lt;/<b>button</b>&gt;&lt;/<b>p</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

198
docs/src/typography.html Normal file
View file

@ -0,0 +1,198 @@
<!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&nbsp;small</th>
<th>Small</th>
<th>Medium</th>
<th>Large</th>
<th>Extra&nbsp;large</th>
</tr>
</thead>
<tbody>
<tr>
<th>Base&nbsp;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>&lt;<b>h1</b>&gt;</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>&lt;<b>h2</b>&gt;</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>&lt;<b>h3</b>&gt;</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>&lt;<b>h4</b>&gt;</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>&lt;<b>h5</b>&gt;</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>&lt;<b>h6</b>&gt;</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>&lt;<b>small</b>&gt;</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>
</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>&lt;<b>h1</b>&gt;Heading 1&lt;/<b>h1</b>&gt;
&lt;<b>h2</b>&gt;Heading 2&lt;/<b>h2</b>&gt;
&lt;<b>h3</b>&gt;Heading 3&lt;/<b>h3</b>&gt;
&lt;<b>h4</b>&gt;Heading 4&lt;/<b>h4</b>&gt;
&lt;<b>h5</b>&gt;Heading 5&lt;/<b>h5</b>&gt;
&lt;<b>h6</b>&gt;Heading 6&lt;/<b>h6</b>&gt;</code></pre>
</footer>
</article>
<p>Inside a <code>&lt;<b>hgroup</b>&gt;</code> all <code><i>margin-bottom</i></code> are collapsed and the <code>:last-child</code> is muted.</p>
<article aria-label="Hgroup example">
<hgroup>
<h2>Heading 2</h2>
<h3>Subtitle for heading 2</h3>
</hgroup>
<footer class="code">
<pre><code>&lt;<b>hgroup</b>&gt;
&lt;<b>h2</b>&gt;Heading 2&lt;/<b>h2</b>&gt;
&lt;<b>h3</b>&gt;Subtitle for heading 2&lt;/<b>h3</b>&gt;
&lt;<b>hgroup</b>&gt;</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>
<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>&lt;<b>a</b> <i>href</i>=<u>"#"</u>&gt;Primary&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>&gt;Secondary&lt;/<b>a</b>&gt;
&lt;<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"contrast"</u>&gt;Contrast&lt;/<b>a</b>&gt;</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>&lt;<b>blockquote</b>&gt;
"Maecenas vehicula metus tellus, vitae congue turpis hendrerit non. Nam at dui sit amet ipsum cursus ornare."
&lt;<b>footer</b>&gt;
&lt;<b>cite</b>&gt;- Phasellus eget lacinia&lt;/<b>cite</b>&gt;
&lt;/<b>footer</b>&gt;
&lt;/<b>blockquote</b>&gt;</code></pre>
</footer>
</article>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

View file

@ -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>&lt;<b>button</b> <i>class</i>=<u>"warning"</u>&gt;Action&lt;/<b>button</b>&gt;<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>&lt;<b>button</b> <i>class</i>=<u>"button-red margin-large padding-medium"</u>&gt;Action&lt;/<b>button</b>&gt;<br></code></pre>
</div>
</section>
${require('./_footer.html')}
</div>
</main>
<script src="js/commons.min.js"></script>
</body>
</html>

40
docs/tables.html Normal file

File diff suppressed because one or more lines are too long

5
docs/themes.html Normal file

File diff suppressed because one or more lines are too long

3
docs/tooltips.html Normal file

File diff suppressed because one or more lines are too long

16
docs/typography.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

901
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -27,25 +27,48 @@
"url": "https://github.com/picocss/pico/issues" "url": "https://github.com/picocss/pico/issues"
}, },
"scripts": { "scripts": {
"watch": "npm-run-all --parallel watch:scss watch:scss:docs watch:js:docs", "watch": "npm-run-all --parallel watch:pico watch:docs:scss watch:docs:html watch:docs:js --silent ",
"build": "npm-run-all build:css build:js info:postbuild", "build": "npm-run-all --parallel build:pico build:docs --silent",
"build:css": "npm-run-all info:build:css css:compile css:compile:docs css:prefix info:css:minify css:minify", "build:docs": "npm-run-all --parallel build:docs:css build:docs:js build:docs:html --silent",
"build:js": "npm-run-all info:build:js js:bundle js:babel info:js:minify js:minify", "build:docs:css": "npm-run-all scss:sorter:docs css:compile:docs css:prefix:docs css:minify:docs --silent",
"css:compile": "sass --style expanded --source-map --embed-sources --no-error-css scss/:css/", "build:docs:html": "npm-run-all htmlincludes:docs --silent",
"build:docs:js": "npm-run-all js:bundle:docs:commons js:bundle:docs:customization js:bundle:docs:grid js:babel:docs:commons js:babel:docs:customization js:babel:docs:grid js:minify:docs:commons js:minify:docs:customization js:minify:docs:grid --silent",
"build:pico": "npm-run-all scss:sorter:pico css:compile:pico css:prefix:pico css:minify:pico --silent",
"css:compile:docs": "sass --style expanded --source-map --embed-sources --no-error-css docs/scss/:docs/css/", "css:compile:docs": "sass --style expanded --source-map --embed-sources --no-error-css docs/scss/:docs/css/",
"css:prefix": "postcss --config postcss.config.js --replace css/*.css css/*/*.css docs/css/*.css !css/*.min.css !docs/css/*.min.css", "css:compile:pico": "sass --style expanded --source-map --embed-sources --no-error-css scss/:css/",
"css:minify": "cleancss -O1 --with-rebase --source-map --source-map-inline-sources --batch --batch-suffix .min css/*.css css/*/*.css docs/css/*.css !css/*.min.css !css/*/*.min.css !docs/css/*.min.css", "css:minify:docs": "cleancss -O1 --with-rebase --source-map --source-map-inline-sources --batch --batch-suffix .min docs/css/*.css !docs/css/*.min.css",
"js:bundle": "rollup docs/js/pico.docs.js --file docs/js/pico.docs.min.js --format iife --silent", "css:minify:pico": "cleancss -O1 --with-rebase --source-map --source-map-inline-sources --batch --batch-suffix .min css/*.css css/*/*.css !css/*.min.css !css/*/*.min.css",
"js:babel": "babel docs/js/pico.docs.min.js --out-file docs/js/pico.docs.min.js --presets=@babel/preset-env", "css:prefix:docs": "postcss --config css --replace docs/css/*.css !docs/css/*.min.css",
"js:minify": "uglifyjs docs/js/pico.docs.min.js --compress --mangle --output docs/js/pico.docs.min.js", "css:prefix:pico": "postcss --config css --replace css/*.css css/*/*.css !css/*.min.css",
"watch:scss": "nodemon --watch scss/ --ext scss --exec 'npm run build:css'", "htmlincludes:docs": "html-includes --src docs/src --dest docs --minify minifyJS=true --quiet",
"watch:scss:docs": "nodemon --watch docs/scss/ --ext scss --exec 'npm run build:css'", "js:babel:docs:grid": "babel docs/js/grid.min.js --out-dir docs/js/ --presets=@babel/preset-env --quiet",
"watch:js:docs": "nodemon --watch docs/js/ --ext js --ignore 'docs/js/pico.docs.min.js' --exec 'npm run build:js'", "js:babel:docs:commons": "babel docs/js/commons.min.js --out-dir docs/js/ --presets=@babel/preset-env --quiet",
"info:build:css": "echo '\\033[32m[picocss/pico] Compile .css files\\033[0m'", "js:babel:docs:customization": "babel docs/js/customization.min.js --out-dir docs/js/ --presets=@babel/preset-env --quiet",
"info:css:minify": "echo '\\033[32m[picocss/pico] Minify .css files\\033[0m'", "js:bundle:docs:grid": "rollup docs/js/grid.js --file docs/js/grid.min.js --format iife --silent",
"info:build:js": "echo '\\033[32m[picocss/pico] Bundle .js files\\033[0m'", "js:bundle:docs:commons": "rollup docs/js/commons.js --file docs/js/commons.min.js --format iife --silent",
"info:js:minify": "echo '\\033[32m[picocss/pico] Minify .js file\\033[0m'", "js:bundle:docs:customization": "rollup docs/js/customization.js --file docs/js/customization.min.js --format iife --silent",
"info:postbuild": "echo '\\033[32m[picocss/pico] Done\\033[0m\n'" "js:minify:docs:grid": "uglifyjs docs/js/grid.min.js --compress --mangle --output docs/js/grid.min.js",
"js:minify:docs:commons": "uglifyjs docs/js/commons.min.js --compress --mangle --output docs/js/commons.min.js",
"js:minify:docs:customization": "uglifyjs docs/js/customization.min.js --compress --mangle --output docs/js/customization.min.js",
"postbuild:docs:css": "echo '\\033[32m[@picocss/pico] Documentation .css build done\\033[0m'",
"postbuild:docs:html": "echo '\\033[32m[@picocss/pico] Documentation pages done\\033[0m'",
"postbuild:docs:js": "echo '\\033[32m[@picocss/pico] Documentation .js build done\\033[0m'",
"postbuild:pico": "echo '\\033[32m[@picocss/pico] Pico library build done\\033[0m'",
"prebuild:docs:css": "echo '[@picocss/pico] Compile documentation .css file'",
"prebuild:docs:html": "echo '[@picocss/pico] Create documentation pages'",
"prebuild:docs:js": "echo '[@picocss/pico] Bundle and minify documentation .js files'",
"precss:compile:docs": "echo '[@picocss/pico] Compile documentation .css file'",
"precss:compile:pico": "echo '[@picocss/pico] Compile Pico .css files'",
"precss:minify:docs": "echo '[@picocss/pico] Minify documentation .css file'",
"precss:minify:pico": "echo '[@picocss/pico] Minify Pico .css files'",
"prescss:sorter:docs": "echo '[@picocss/pico] Order documentation .scss properties'",
"prescss:sorter:pico": "echo '[@picocss/pico] Order Pico .scss properties'",
"scss:sorter:docs": "postcss --config scss ./docs/scss/**/*.scss --replace",
"scss:sorter:pico": "postcss --config scss ./scss/**/*.scss --replace",
"watch:docs:html": "nodemon --watch docs/src/ --ext html --exec 'npm run build:docs:html'",
"watch:docs:js": "nodemon --watch docs/js/ --ext js --ignore *.min.js --exec 'npm run build:docs:js'",
"watch:docs:scss": "nodemon --watch docs/scss/ --ext scss --exec 'npm run build:docs:css'",
"watch:pico": "nodemon --watch scss/ --ext scss --exec 'npm run build:pico'"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.16.0", "@babel/cli": "^7.16.0",
@ -53,11 +76,14 @@
"@babel/preset-env": "^7.16.0", "@babel/preset-env": "^7.16.0",
"autoprefixer": "^10.4.0", "autoprefixer": "^10.4.0",
"clean-css-cli": "^5.4.2", "clean-css-cli": "^5.4.2",
"css-declaration-sorter": "^6.1.3",
"html-includes": "^4.4.1",
"nodemon": "^2.0.14", "nodemon": "^2.0.14",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"postcss": "^8.3.11", "postcss": "^8.3.11",
"postcss-cli": "^9.0.1", "postcss-cli": "^9.0.1",
"rollup": "^2.58.3", "postcss-scss": "^4.0.2",
"rollup": "^2.59.0",
"sass": "^1.43.4", "sass": "^1.43.4",
"uglify-js": "^3.14.2" "uglify-js": "^3.14.2"
} }

View file

@ -42,8 +42,8 @@ details {
transform: rotate(-90deg); transform: rotate(-90deg);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
content: ""; content: "";
@if $enable-transitions { @if $enable-transitions {

View file

@ -21,10 +21,10 @@ progress {
// Reset the default appearance // Reset the default appearance
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none;
// Styles // Styles
display: inline-block; display: inline-block;
appearance: none;
width: 100%; width: 100%;
height: 0.5rem; height: 0.5rem;
margin-bottom: calc(var(--spacing) * 0.5); margin-bottom: calc(var(--spacing) * 0.5);

View file

@ -65,8 +65,8 @@ a[role="button"] {
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;

View file

@ -13,8 +13,8 @@ pre,
code, code,
kbd, kbd,
samp { samp {
font-family: var(--font-family); // 1
font-size: 0.875em; // 2 font-size: 0.875em; // 2
font-family: var(--font-family); // 1
} }
// Prevent overflow of the container in all browsers (opinionated) // Prevent overflow of the container in all browsers (opinionated)
@ -29,11 +29,11 @@ pre {
pre, pre,
code, code,
kbd { kbd {
border-radius: var(--border-radius);
background: var(--code-background-color); background: var(--code-background-color);
color: var(--code-color); color: var(--code-color);
font-weight: var(--font-weight); font-weight: var(--font-weight);
line-height: initial; line-height: initial;
border-radius: var(--border-radius);
} }
code, code,
@ -48,9 +48,9 @@ pre {
overflow-x: auto; overflow-x: auto;
> code { > code {
background: transparent;
display: block; display: block;
padding: var(--spacing); padding: var(--spacing);
background: transparent;
font-size: 14px; font-size: 14px;
line-height: var(--line-height); line-height: var(--line-height);
} }

View file

@ -42,8 +42,8 @@
[type="week"] { [type="week"] {
background-image: var(--icon-date); background-image: var(--icon-date);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
&::-webkit-calendar-picker-indicator { &::-webkit-calendar-picker-indicator {
opacity: 0; opacity: 0;
@ -77,8 +77,8 @@
--color: var(--secondary-inverse); --color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2); margin-right: calc(var(--spacing) / 2);
margin-left: 0; margin-left: 0;
margin-inline-end: calc(var(--spacing) / 2);
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) padding: calc(var(--form-element-spacing-vertical) * 0.5)
calc(var(--form-element-spacing-horizontal) * 0.5); calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color); border: var(--border-width) solid var(--border-color);
@ -87,8 +87,8 @@
background-color: var(--background-color); background-color: var(--background-color);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
color: var(--color); color: var(--color);
font-size: 1rem;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: 1rem;
line-height: var(--line-height); line-height: var(--line-height);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -222,8 +222,8 @@
) !important; ) !important;
background-image: var(--icon-search); background-image: var(--icon-search);
background-position: center left 1.125rem; background-position: center left 1.125rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
// Cancel button // Cancel button

View file

@ -13,8 +13,8 @@
margin-top: -0.125em; margin-top: -0.125em;
margin-right: 0.375em; margin-right: 0.375em;
margin-left: 0; margin-left: 0;
margin-inline-end: 0.375em;
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: 0.375em;
border-width: var(--border-width); border-width: var(--border-width);
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -30,8 +30,8 @@
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-checkbox); background-image: var(--icon-checkbox);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
& ~ label { & ~ label {
@ -49,8 +49,8 @@
--border-color: var(--primary); --border-color: var(--primary);
background-image: var(--icon-minus); background-image: var(--icon-minus);
background-position: center; background-position: center;
background-repeat: no-repeat;
background-size: 0.75em auto; background-size: 0.75em auto;
background-repeat: no-repeat;
} }
} }
@ -115,8 +115,8 @@
&::before { &::before {
margin-right: 0; margin-right: 0;
margin-left: calc(#{$switch-width * 0.5} - var(--border-width)); margin-left: calc(#{$switch-width * 0.5} - var(--border-width));
margin-inline-end: 0;
margin-inline-start: calc(#{$switch-width * 0.5} - var(--border-width)); margin-inline-start: calc(#{$switch-width * 0.5} - var(--border-width));
margin-inline-end: 0;
} }
} }

View file

@ -14,10 +14,10 @@ optgroup,
select, select,
textarea { textarea {
margin: 0; // 2 margin: 0; // 2
font-family: inherit; // 1
font-size: 1rem; // 1 font-size: 1rem; // 1
letter-spacing: inherit; // 2
line-height: var(--line-height); // 1 line-height: var(--line-height); // 1
font-family: inherit; // 1
letter-spacing: inherit; // 2
} }
// Show the overflow in IE. // Show the overflow in IE.
@ -223,19 +223,19 @@ textarea {
var(--form-element-spacing-horizontal) + 1.5rem var(--form-element-spacing-horizontal) + 1.5rem
) !important; ) !important;
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
padding-inline-start: var(--form-element-spacing-horizontal) !important;
padding-inline-end: calc( padding-inline-end: calc(
var(--form-element-spacing-horizontal) + 1.5rem var(--form-element-spacing-horizontal) + 1.5rem
) !important; ) !important;
padding-inline-start: var(--form-element-spacing-horizontal) !important;
} @else { } @else {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
} }
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
&[aria-invalid="false"] { &[aria-invalid="false"] {
@ -316,12 +316,12 @@ select {
&:not([multiple]):not([size]) { &:not([multiple]):not([size]) {
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem); padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--form-element-spacing-horizontal); padding-left: var(--form-element-spacing-horizontal);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
padding-inline-start: var(--form-element-spacing-horizontal); padding-inline-start: var(--form-element-spacing-horizontal);
padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
background-image: var(--icon-chevron); background-image: var(--icon-chevron);
background-position: center right 0.75rem; background-position: center right 0.75rem;
background-repeat: no-repeat;
background-size: 1rem auto; background-size: 1rem auto;
background-repeat: no-repeat;
} }
} }

View file

@ -27,8 +27,8 @@ td {
padding: calc(var(--spacing) / 2) var(--spacing); padding: calc(var(--spacing) / 2) var(--spacing);
border-bottom: var(--border-width) solid var(--table-border-color); border-bottom: var(--border-width) solid var(--table-border-color);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
text-align: left; text-align: left;
text-align: start; text-align: start;
} }

View file

@ -61,9 +61,9 @@ ul {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-size: var(--font-size);
font-weight: var(--font-weight);
font-style: normal; font-style: normal;
font-weight: var(--font-weight);
font-size: var(--font-size);
} }
// Links // Links
@ -135,9 +135,9 @@ h6 {
margin-top: 0; margin-top: 0;
margin-bottom: var(--typography-spacing-vertical); margin-bottom: var(--typography-spacing-vertical);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
font-family: var(--font-family);
} }
h1 { h1 {
@ -191,8 +191,8 @@ hgroup {
> *:last-child { > *:last-child {
--color: var(--muted-color); --color: var(--muted-color);
--font-weight: unset; --font-weight: unset;
font-family: unset;
font-size: 1rem; font-size: 1rem;
font-family: unset;
} }
} }
@ -211,8 +211,8 @@ ul,
ol { ol {
padding-right: 0; padding-right: 0;
padding-left: var(--spacing); padding-left: var(--spacing);
padding-inline-end: 0;
padding-inline-start: var(--spacing); padding-inline-start: var(--spacing);
padding-inline-end: 0;
li { li {
margin-bottom: calc(var(--typography-spacing-vertical) * 0.25); margin-bottom: calc(var(--typography-spacing-vertical) * 0.25);
@ -238,8 +238,8 @@ blockquote {
padding: var(--spacing); padding: var(--spacing);
border-right: none; border-right: none;
border-left: 0.25rem solid var(--blockquote-border-color); border-left: 0.25rem solid var(--blockquote-border-color);
border-inline-end: none;
border-inline-start: 0.25rem solid var(--blockquote-border-color); border-inline-start: 0.25rem solid var(--blockquote-border-color);
border-inline-end: none;
footer { footer {
margin-top: calc(var(--typography-spacing-vertical) * 0.5); margin-top: calc(var(--typography-spacing-vertical) * 0.5);

View file

@ -32,14 +32,14 @@
html { html {
-webkit-text-size-adjust: 100%; // 2 -webkit-text-size-adjust: 100%; // 2
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 3 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 3
tab-size: 4; // 5
-ms-text-size-adjust: 100%; // 6 -ms-text-size-adjust: 100%; // 6
text-rendering: optimizeLegibility;
background-color: var(--background-color); background-color: var(--background-color);
color: var(--color); color: var(--color);
font-family: var(--font-family);
font-size: var(--font-size);
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: var(--font-size);
line-height: var(--line-height); // 1 line-height: var(--line-height); // 1
text-rendering: optimizeLegibility; font-family: var(--font-family);
cursor: default; // 4 cursor: default; // 4
tab-size: 4; // 5
} }

9
scss/postcss.config.js Normal file
View file

@ -0,0 +1,9 @@
module.exports = {
syntax: "postcss-scss",
map: false,
plugins: {
"css-declaration-sorter": {
order: "smacss"
}
}
}

View file

@ -18,10 +18,10 @@
border: 0.1875em solid currentColor; border: 0.1875em solid currentColor;
border-radius: 1em; border-radius: 1em;
border-right-color: transparent; border-right-color: transparent;
content: '';
vertical-align: text-bottom; vertical-align: text-bottom;
vertical-align: -.125em; // Visual alignment vertical-align: -.125em; // Visual alignment
animation: spinner 0.75s linear infinite; animation: spinner 0.75s linear infinite;
content: '';
opacity: var(--loading-spinner-opacity); opacity: var(--loading-spinner-opacity);
} }
@ -29,8 +29,8 @@
&::before { &::before {
margin-right: calc(var(--spacing) * 0.5); margin-right: calc(var(--spacing) * 0.5);
margin-left: 0; margin-left: 0;
margin-inline-end: calc(var(--spacing) * 0.5);
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: calc(var(--spacing) * 0.5);
} }
} }

View file

@ -23,14 +23,14 @@
transform: translate(-50%, -.25rem); transform: translate(-50%, -.25rem);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--tooltip-background-color); background: var(--tooltip-background-color);
content: attr(data-tooltip);
color: var(--tooltip-color); color: var(--tooltip-color);
font-size: .875rem;
font-style: normal; font-style: normal;
font-weight: var(--font-weight); font-weight: var(--font-weight);
font-size: .875rem;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
content: attr(data-tooltip);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
@ -44,8 +44,8 @@
border-left: .3rem solid transparent; border-left: .3rem solid transparent;
border-radius: 0; border-radius: 0;
background-color: transparent; background-color: transparent;
color: var(--tooltip-background-color);
content: ''; content: '';
color: var(--tooltip-background-color);
} }
&:focus, &:focus,
@ -55,8 +55,8 @@
opacity: 1; opacity: 1;
@if $enable-transitions { @if $enable-transitions {
animation-name: slide;
animation-duration: .2s; animation-duration: .2s;
animation-name: slide;
} }
} }