Cards keep style with form tag wrapped around header and footer in article

This commit is contained in:
Yohn 2024-12-15 11:51:19 -05:00
parent 3cfdc975d2
commit dbd9c5a44f
259 changed files with 28939 additions and 7827 deletions

View file

@ -2921,82 +2921,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header .close, dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close,
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article .close, dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form .close,
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ dialog > article .close, dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header .close, dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close,
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article .close, dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form .close,
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ dialog > article .close, dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header .close, dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close,
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article .close, dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form .close,
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ dialog > article .close, dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -195,19 +195,19 @@ input:not([type=submit],
color-scheme: light;
--pico-background-color: #fff;
--pico-color: #373c44;
--pico-text-selection-color: rgba(119, 156, 0, 0.25);
--pico-text-selection-color: rgba(71, 164, 23, 0.25);
--pico-muted-color: #646b79;
--pico-muted-border-color: rgb(231, 234, 239.5);
--pico-primary: #577400;
--pico-primary-background: #a5d601;
--pico-primary: #33790f;
--pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(87, 116, 0, 0.5);
--pico-primary-hover: #435a00;
--pico-primary-hover-background: #99c801;
--pico-primary-underline: rgba(51, 121, 15, 0.5);
--pico-primary-hover: #265e09;
--pico-primary-hover-background: #33790f;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(119, 156, 0, 0.5);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(71, 164, 23, 0.5);
--pico-primary-inverse: #fff;
--pico-secondary: #5d6b89;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -267,7 +267,7 @@ input:not([type=submit],
--pico-switch-background-color: #bfc7d9;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #dfe3eb;
--pico-range-active-border-color: #bfc7d9;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -297,12 +297,12 @@ input:not([type=submit],
[data-theme=light] details summary[role=button]::after,
:root:not([data-theme=dark]) details summary[role=button]::after,
:host(:not([data-theme=dark])) details summary[role=button]::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=light] [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:root:not([data-theme=dark]) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:host(:not([data-theme=dark])) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(0) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=light] input:is([type=submit],
[type=button],
@ -331,19 +331,19 @@ input:not([type=submit],
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(130, 171, 0, 0.1875);
--pico-text-selection-color: rgba(78, 179, 27, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #82ab00;
--pico-primary-background: #a5d601;
--pico-primary: #4eb31b;
--pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(130, 171, 0, 0.5);
--pico-primary-hover: #99c801;
--pico-primary-hover-background: #b2e51a;
--pico-primary-underline: rgba(78, 179, 27, 0.5);
--pico-primary-hover: #5dd121;
--pico-primary-hover-background: #409614;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(130, 171, 0, 0.375);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(78, 179, 27, 0.375);
--pico-primary-inverse: #fff;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -403,7 +403,7 @@ input:not([type=submit],
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -446,30 +446,30 @@ input:not([type=submit],
}
:root:not([data-theme]) details summary[role=button]::after,
:host(:not([data-theme])) details summary[role=button]::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
:root:not([data-theme]) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:host(:not([data-theme])) [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
}
[data-theme=dark] {
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(130, 171, 0, 0.1875);
--pico-text-selection-color: rgba(78, 179, 27, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #82ab00;
--pico-primary-background: #a5d601;
--pico-primary: #4eb31b;
--pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(130, 171, 0, 0.5);
--pico-primary-hover: #99c801;
--pico-primary-hover-background: #b2e51a;
--pico-primary-underline: rgba(78, 179, 27, 0.5);
--pico-primary-hover: #5dd121;
--pico-primary-hover-background: #409614;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(130, 171, 0, 0.375);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(78, 179, 27, 0.375);
--pico-primary-inverse: #fff;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -529,7 +529,7 @@ input:not([type=submit],
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -565,10 +565,10 @@ input:not([type=submit],
--pico-form-element-focus-color: var(--pico-primary-focus);
}
[data-theme=dark] details summary[role=button]::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=dark] [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
progress,
@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2223,82 +2223,202 @@ details[open] > summary::after {
/**
* Card (<article>, role="article")
*/
article,
[role=article] {
article:not(:has(> form)),
[role=article]:not(:has(> form)),
article > form,
[role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
article > footer,
[role=article] > header,
[role=article] > footer {
article:not(:has(> form)) > header,
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > footer,
article > form > header,
article > form > footer,
[role=article] > form > header,
[role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
article > header,
[role=article] > header {
article:not(:has(> form)) > header,
[role=article]:not(:has(> form)) > header,
article > form > header,
[role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
article > header > h1,
article > header > h2,
article > header > h3,
article > header > h4,
article > header > h5,
article > header > h6,
[role=article] > header > h1,
[role=article] > header > h2,
[role=article] > header > h3,
[role=article] > header > h4,
[role=article] > header > h5,
[role=article] > header > h6 {
article:not(:has(> form)) > header > h1,
article:not(:has(> form)) > header > h2,
article:not(:has(> form)) > header > h3,
article:not(:has(> form)) > header > h4,
article:not(:has(> form)) > header > h5,
article:not(:has(> form)) > header > h6,
[role=article]:not(:has(> form)) > header > h1,
[role=article]:not(:has(> form)) > header > h2,
[role=article]:not(:has(> form)) > header > h3,
[role=article]:not(:has(> form)) > header > h4,
[role=article]:not(:has(> form)) > header > h5,
[role=article]:not(:has(> form)) > header > h6,
article > form > header > h1,
article > form > header > h2,
article > form > header > h3,
article > form > header > h4,
article > form > header > h5,
article > form > header > h6,
[role=article] > form > header > h1,
[role=article] > form > header > h2,
[role=article] > form > header > h3,
[role=article] > form > header > h4,
[role=article] > form > header > h5,
[role=article] > form > header > h6 {
margin-bottom: 0;
}
article > footer,
[role=article] > footer {
article:not(:has(> form)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6,
article > form > header > hgroup > h1,
article > form > header > hgroup > h2,
article > form > header > hgroup > h3,
article > form > header > hgroup > h4,
article > form > header > hgroup > h5,
article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h1,
[role=article] > form > header > hgroup > h2,
[role=article] > form > header > hgroup > h3,
[role=article] > form > header > hgroup > h4,
[role=article] > form > header > hgroup > h5,
[role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
article:not(:has(> form)) > footer,
[role=article]:not(:has(> form)) > footer,
article > form > footer,
[role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
article > footer [type=submit],
article > footer [type=reset],
article > footer [type=button],
article > footer [role=group],
[role=article] > footer [type=submit],
[role=article] > footer [type=reset],
[role=article] > footer [type=button],
[role=article] > footer [role=group] {
article:not(:has(> form)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button],
article:not(:has(> form)) > footer [role=group],
article:not(:has(> form)) > footer p,
article:not(:has(> form)) > footer nav,
article:not(:has(> form)) > footer ul,
article:not(:has(> form)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p,
[role=article]:not(:has(> form)) > footer nav,
[role=article]:not(:has(> form)) > footer ul,
[role=article]:not(:has(> form)) > footer ol,
article > form > footer [type=submit],
article > form > footer [type=reset],
article > form > footer [type=button],
article > form > footer [role=group],
article > form > footer p,
article > form > footer nav,
article > form > footer ul,
article > form > footer ol,
[role=article] > form > footer [type=submit],
[role=article] > form > footer [type=reset],
[role=article] > form > footer [type=button],
[role=article] > form > footer [role=group],
[role=article] > form > footer p,
[role=article] > form > footer nav,
[role=article] > form > footer ul,
[role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
article > footer [type=submit]:last-child,
article > footer [type=reset]:last-child,
article > footer [type=button]:last-child,
article > footer [role=group]:last-child,
[role=article] > footer [type=submit]:last-child,
[role=article] > footer [type=reset]:last-child,
[role=article] > footer [type=button]:last-child,
[role=article] > footer [role=group]:last-child {
article:not(:has(> form)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child,
article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child,
article > form > footer [role=group]:last-child,
article > form > footer p:last-child,
article > form > footer nav:last-child,
article > form > footer ul:last-child,
article > form > footer ol:last-child,
[role=article] > form > footer [type=submit]:last-child,
[role=article] > form > footer [type=reset]:last-child,
[role=article] > form > footer [type=button]:last-child,
[role=article] > form > footer [role=group]:last-child,
[role=article] > form > footer p:last-child,
[role=article] > form > footer nav:last-child,
[role=article] > form > footer ul:last-child,
[role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
article > footer [type=submit]:has(+ [type=hidden]),
article > footer [type=reset]:has(+ [type=hidden]),
article > footer [type=button]:has(+ [type=hidden]),
article > footer [role=group]:has(+ [type=hidden]),
[role=article] > footer [type=submit]:has(+ [type=hidden]),
[role=article] > footer [type=reset]:has(+ [type=hidden]),
[role=article] > footer [type=button]:has(+ [type=hidden]),
[role=article] > footer [role=group]:has(+ [type=hidden]) {
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]),
article > form > footer [role=group]:has(+ [type=hidden]),
article > form > footer p:has(+ [type=hidden]),
article > form > footer nav:has(+ [type=hidden]),
article > form > footer ul:has(+ [type=hidden]),
article > form > footer ol:has(+ [type=hidden]),
[role=article] > form > footer [type=submit]:has(+ [type=hidden]),
[role=article] > form > footer [type=reset]:has(+ [type=hidden]),
[role=article] > form > footer [type=button]:has(+ [type=hidden]),
[role=article] > form > footer [role=group]:has(+ [type=hidden]),
[role=article] > form > footer p:has(+ [type=hidden]),
[role=article] > form > footer nav:has(+ [type=hidden]),
[role=article] > form > footer ul:has(+ [type=hidden]),
[role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -2556,40 +2676,51 @@ dialog {
transform: scale(1);
transition: transform var(--pico-transition);
}
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article > header > * {
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0;
}
dialog > article > header :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
dialog > article > footer {
dialog > article:not(:has(> form)) > footer,
dialog > article > form > footer {
text-align: right;
}
dialog > article > footer button,
dialog > article > footer [role=button] {
dialog > article:not(:has(> form)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button],
dialog > article > form > footer button,
dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
dialog > article > footer button:not(:first-of-type),
dialog > article > footer [role=button]:not(:first-of-type) {
dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
dialog > article :is(a, button)[rel=prev] {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -2605,7 +2736,8 @@ dialog > article :is(a, button)[rel=prev] {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -228,19 +228,19 @@ nav details.dropdown summary:focus-visible {
color-scheme: light;
--pico-background-color: #fff;
--pico-color: #373c44;
--pico-text-selection-color: rgba(119, 156, 0, 0.25);
--pico-text-selection-color: rgba(148, 134, 225, 0.25);
--pico-muted-color: #646b79;
--pico-muted-border-color: rgb(231, 234, 239.5);
--pico-primary: #577400;
--pico-primary-background: #a5d601;
--pico-primary: #655cd6;
--pico-primary-background: #524ed2;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(87, 116, 0, 0.5);
--pico-primary-hover: #435a00;
--pico-primary-hover-background: #99c801;
--pico-primary-underline: rgba(101, 92, 214, 0.5);
--pico-primary-hover: #4040bf;
--pico-primary-hover-background: #4040bf;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(119, 156, 0, 0.5);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(148, 134, 225, 0.5);
--pico-primary-inverse: #fff;
--pico-secondary: #5d6b89;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -300,7 +300,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #bfc7d9;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #dfe3eb;
--pico-range-active-border-color: #bfc7d9;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -335,7 +335,7 @@ nav details.dropdown summary:focus-visible {
[data-theme=light] .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after,
:root:not([data-theme=dark]) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after,
:host(:not([data-theme=dark])) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=light] .pico details summary.secondary[role=button]::after,
:root:not([data-theme=dark]) .pico details summary.secondary[role=button]::after,
@ -350,7 +350,7 @@ nav details.dropdown summary:focus-visible {
[data-theme=light] .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before,
:root:not([data-theme=dark]) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before,
:host(:not([data-theme=dark])) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before {
filter: brightness(0) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=light] input:is([type=submit],
[type=button],
@ -379,19 +379,19 @@ nav details.dropdown summary:focus-visible {
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(130, 171, 0, 0.1875);
--pico-text-selection-color: rgba(162, 148, 229, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #82ab00;
--pico-primary-background: #a5d601;
--pico-primary: #a294e5;
--pico-primary-background: #524ed2;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(130, 171, 0, 0.5);
--pico-primary-hover: #99c801;
--pico-primary-hover-background: #b2e51a;
--pico-primary-underline: rgba(162, 148, 229, 0.5);
--pico-primary-hover: #bdb2ec;
--pico-primary-hover-background: #655cd6;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(130, 171, 0, 0.375);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(162, 148, 229, 0.375);
--pico-primary-inverse: #fff;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -451,7 +451,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -511,7 +511,7 @@ nav details.dropdown summary:focus-visible {
}
:root:not([data-theme]) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after,
:host(:not([data-theme])) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
:root:not([data-theme]) .pico details summary.secondary[role=button]::after,
:host(:not([data-theme])) .pico details summary.secondary[role=button]::after {
@ -523,26 +523,26 @@ nav details.dropdown summary:focus-visible {
}
:root:not([data-theme]) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before,
:host(:not([data-theme])) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
}
[data-theme=dark] {
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(130, 171, 0, 0.1875);
--pico-text-selection-color: rgba(162, 148, 229, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #82ab00;
--pico-primary-background: #a5d601;
--pico-primary: #a294e5;
--pico-primary-background: #524ed2;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(130, 171, 0, 0.5);
--pico-primary-hover: #99c801;
--pico-primary-hover-background: #b2e51a;
--pico-primary-underline: rgba(162, 148, 229, 0.5);
--pico-primary-hover: #bdb2ec;
--pico-primary-hover-background: #655cd6;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(130, 171, 0, 0.375);
--pico-primary-inverse: #000;
--pico-primary-focus: rgba(162, 148, 229, 0.375);
--pico-primary-inverse: #fff;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -602,7 +602,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -650,7 +650,7 @@ nav details.dropdown summary:focus-visible {
--pico-form-element-focus-color: var(--pico-primary-focus);
}
[data-theme=dark] .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
[data-theme=dark] .pico details summary.secondary[role=button]::after {
filter: brightness(100) invert(0);
@ -659,7 +659,7 @@ nav details.dropdown summary:focus-visible {
filter: brightness(100) invert(1);
}
[data-theme=dark] .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
.pico progress,
@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -2921,82 +2921,202 @@ main {
/**
* Card (<article>, role="article")
*/
.pico article,
.pico [role=article] {
.pico article:not(:has(> form)),
.pico [role=article]:not(:has(> form)),
.pico article > form,
.pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical);
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
.pico article > header,
.pico article > footer,
.pico [role=article] > header,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header,
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > header,
.pico article > form > footer,
.pico [role=article] > form > header,
.pico [role=article] > form > footer {
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color);
}
.pico article > header,
.pico [role=article] > header {
.pico article:not(:has(> form)) > header,
.pico [role=article]:not(:has(> form)) > header,
.pico article > form > header,
.pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
.pico article > header > h1,
.pico article > header > h2,
.pico article > header > h3,
.pico article > header > h4,
.pico article > header > h5,
.pico article > header > h6,
.pico [role=article] > header > h1,
.pico [role=article] > header > h2,
.pico [role=article] > header > h3,
.pico [role=article] > header > h4,
.pico [role=article] > header > h5,
.pico [role=article] > header > h6 {
.pico article:not(:has(> form)) > header > h1,
.pico article:not(:has(> form)) > header > h2,
.pico article:not(:has(> form)) > header > h3,
.pico article:not(:has(> form)) > header > h4,
.pico article:not(:has(> form)) > header > h5,
.pico article:not(:has(> form)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6,
.pico article > form > header > h1,
.pico article > form > header > h2,
.pico article > form > header > h3,
.pico article > form > header > h4,
.pico article > form > header > h5,
.pico article > form > header > h6,
.pico [role=article] > form > header > h1,
.pico [role=article] > form > header > h2,
.pico [role=article] > form > header > h3,
.pico [role=article] > form > header > h4,
.pico [role=article] > form > header > h5,
.pico [role=article] > form > header > h6 {
margin-bottom: 0;
}
.pico article > footer,
.pico [role=article] > footer {
.pico article:not(:has(> form)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3,
.pico article > form > header > hgroup > h4,
.pico article > form > header > hgroup > h5,
.pico article > form > header > hgroup > h6,
.pico [role=article] > form > header > hgroup > h1,
.pico [role=article] > form > header > hgroup > h2,
.pico [role=article] > form > header > hgroup > h3,
.pico [role=article] > form > header > hgroup > h4,
.pico [role=article] > form > header > hgroup > h5,
.pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0;
}
.pico article:not(:has(> form)) > footer,
.pico [role=article]:not(:has(> form)) > footer,
.pico article > form > footer,
.pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
.pico article > footer [type=submit],
.pico article > footer [type=reset],
.pico article > footer [type=button],
.pico article > footer [role=group],
.pico [role=article] > footer [type=submit],
.pico [role=article] > footer [type=reset],
.pico [role=article] > footer [type=button],
.pico [role=article] > footer [role=group] {
.pico article:not(:has(> form)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group],
.pico article:not(:has(> form)) > footer p,
.pico article:not(:has(> form)) > footer nav,
.pico article:not(:has(> form)) > footer ul,
.pico article:not(:has(> form)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol,
.pico article > form > footer [type=submit],
.pico article > form > footer [type=reset],
.pico article > form > footer [type=button],
.pico article > form > footer [role=group],
.pico article > form > footer p,
.pico article > form > footer nav,
.pico article > form > footer ul,
.pico article > form > footer ol,
.pico [role=article] > form > footer [type=submit],
.pico [role=article] > form > footer [type=reset],
.pico [role=article] > form > footer [type=button],
.pico [role=article] > form > footer [role=group],
.pico [role=article] > form > footer p,
.pico [role=article] > form > footer nav,
.pico [role=article] > form > footer ul,
.pico [role=article] > form > footer ol {
margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */
}
.pico article > footer [type=submit]:last-child,
.pico article > footer [type=reset]:last-child,
.pico article > footer [type=button]:last-child,
.pico article > footer [role=group]:last-child,
.pico [role=article] > footer [type=submit]:last-child,
.pico [role=article] > footer [type=reset]:last-child,
.pico [role=article] > footer [type=button]:last-child,
.pico [role=article] > footer [role=group]:last-child {
.pico article:not(:has(> form)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child,
.pico article > form > footer [role=group]:last-child,
.pico article > form > footer p:last-child,
.pico article > form > footer nav:last-child,
.pico article > form > footer ul:last-child,
.pico article > form > footer ol:last-child,
.pico [role=article] > form > footer [type=submit]:last-child,
.pico [role=article] > form > footer [type=reset]:last-child,
.pico [role=article] > form > footer [type=button]:last-child,
.pico [role=article] > form > footer [role=group]:last-child,
.pico [role=article] > form > footer p:last-child,
.pico [role=article] > form > footer nav:last-child,
.pico [role=article] > form > footer ul:last-child,
.pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px;
}
.pico article > footer [type=submit]:has(+ [type=hidden]),
.pico article > footer [type=reset]:has(+ [type=hidden]),
.pico article > footer [type=button]:has(+ [type=hidden]),
.pico article > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > footer [role=group]:has(+ [type=hidden]) {
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]:has(+ [type=hidden]),
.pico article > form > footer [type=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]),
.pico article > form > footer [role=group]:has(+ [type=hidden]),
.pico article > form > footer p:has(+ [type=hidden]),
.pico article > form > footer nav:has(+ [type=hidden]),
.pico article > form > footer ul:has(+ [type=hidden]),
.pico article > form > footer ol:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article] > form > footer [type=button]:has(+ [type=hidden]),
.pico [role=article] > form > footer [role=group]:has(+ [type=hidden]),
.pico [role=article] > form > footer p:has(+ [type=hidden]),
.pico [role=article] > form > footer nav:has(+ [type=hidden]),
.pico [role=article] > form > footer ul:has(+ [type=hidden]),
.pico [role=article] > form > footer ol:has(+ [type=hidden]) {
margin-bottom: 0px;
}
@ -3422,40 +3542,53 @@ main {
transform: scale(1);
transition: transform var(--pico-transition);
}
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article > header > * {
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0;
}
.pico dialog > article > header .close, .pico dialog > article > header :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] {
margin: 0;
margin-left: var(--pico-spacing);
padding: 0;
float: right;
}
.pico dialog > article > footer {
.pico dialog > article:not(:has(> form)) > footer,
.pico dialog > article > form > footer {
text-align: right;
}
.pico dialog > article > footer button,
.pico dialog > article > footer [role=button] {
.pico dialog > article:not(:has(> form)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button],
.pico dialog > article > form > footer button,
.pico dialog > article > form > footer [role=button] {
margin-bottom: 0;
}
.pico dialog > article > footer button:not(:first-of-type),
.pico dialog > article > footer [role=button]:not(:first-of-type) {
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5);
}
.pico dialog > article .close, .pico dialog > article :is(a, button)[rel=prev] {
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev],
.pico dialog > article > form .close,
.pico dialog > article > form :is(a, button)[rel=prev] {
display: block;
width: 1rem;
height: 1rem;
@ -3471,7 +3604,9 @@ main {
opacity: 0.5;
transition: opacity var(--pico-transition);
}
.pico dialog > article .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
.pico dialog > article:not(:has(> form)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus),
.pico dialog > article > form :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1;
}
.pico dialog:not([open]), .pico dialog[open=false] {

Some files were not shown because too many files have changed in this diff Show more