Build CSS

This commit is contained in:
github-actions[bot] 2025-01-19 00:40:28 +00:00
parent 35dff83b3b
commit db3dc3b43f
255 changed files with 15414 additions and 15288 deletions

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2899,8 +2899,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2935,18 +2935,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -3006,22 +3006,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header .close, dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close, dialog > article > form:first-child > header .close,
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) .close, dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form .close, dialog > article > form:first-child .close,
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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:first-child .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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2899,8 +2899,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2935,18 +2935,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -3006,22 +3006,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header .close, dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close, dialog > article > form:first-child > header .close,
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) .close, dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form .close, dialog > article > form:first-child .close,
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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:first-child .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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2899,8 +2899,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2935,18 +2935,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -3006,22 +3006,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header .close, dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header .close, dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header .close, dialog > article > form:first-child > header .close,
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) .close, dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) .close, dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form .close, dialog > article > form:first-child .close,
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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:first-child .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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2173,8 +2173,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2209,18 +2209,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -2280,22 +2280,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -203,18 +203,18 @@ input:not([type=submit],
color-scheme: light; color-scheme: light;
--pico-background-color: #fff; --pico-background-color: #fff;
--pico-color: #373c44; --pico-color: #373c44;
--pico-text-selection-color: rgba(246, 84, 126, 0.25); --pico-text-selection-color: rgba(71, 164, 23, 0.25);
--pico-muted-color: #646b79; --pico-muted-color: #646b79;
--pico-muted-border-color: rgb(231, 234, 239.5); --pico-muted-border-color: rgb(231, 234, 239.5);
--pico-primary: #c72259; --pico-primary: #33790f;
--pico-primary-background: #d92662; --pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(199, 34, 89, 0.5); --pico-primary-underline: rgba(51, 121, 15, 0.5);
--pico-primary-hover: #9d1945; --pico-primary-hover: #265e09;
--pico-primary-hover-background: #c72259; --pico-primary-hover-background: #33790f;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(246, 84, 126, 0.5); --pico-primary-focus: rgba(71, 164, 23, 0.5);
--pico-primary-inverse: #fff; --pico-primary-inverse: #fff;
--pico-secondary: #5d6b89; --pico-secondary: #5d6b89;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
@ -343,18 +343,18 @@ input:not([type=submit],
color-scheme: dark; color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5); --pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0; --pico-color: #c2c7d0;
--pico-text-selection-color: rgba(247, 112, 142, 0.1875); --pico-text-selection-color: rgba(78, 179, 27, 0.1875);
--pico-muted-color: #7b8495; --pico-muted-color: #7b8495;
--pico-muted-border-color: #202632; --pico-muted-border-color: #202632;
--pico-primary: #f7708e; --pico-primary: #4eb31b;
--pico-primary-background: #d92662; --pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(247, 112, 142, 0.5); --pico-primary-underline: rgba(78, 179, 27, 0.5);
--pico-primary-hover: #f99eae; --pico-primary-hover: #5dd121;
--pico-primary-hover-background: #f42c6f; --pico-primary-hover-background: #409614;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(247, 112, 142, 0.375); --pico-primary-focus: rgba(78, 179, 27, 0.375);
--pico-primary-inverse: #fff; --pico-primary-inverse: #fff;
--pico-secondary: #969eaf; --pico-secondary: #969eaf;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
@ -473,18 +473,18 @@ input:not([type=submit],
color-scheme: dark; color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5); --pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0; --pico-color: #c2c7d0;
--pico-text-selection-color: rgba(247, 112, 142, 0.1875); --pico-text-selection-color: rgba(78, 179, 27, 0.1875);
--pico-muted-color: #7b8495; --pico-muted-color: #7b8495;
--pico-muted-border-color: #202632; --pico-muted-border-color: #202632;
--pico-primary: #f7708e; --pico-primary: #4eb31b;
--pico-primary-background: #d92662; --pico-primary-background: #398712;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(247, 112, 142, 0.5); --pico-primary-underline: rgba(78, 179, 27, 0.5);
--pico-primary-hover: #f99eae; --pico-primary-hover: #5dd121;
--pico-primary-hover-background: #f42c6f; --pico-primary-hover-background: #409614;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(247, 112, 142, 0.375); --pico-primary-focus: rgba(78, 179, 27, 0.375);
--pico-primary-inverse: #fff; --pico-primary-inverse: #fff;
--pico-secondary: #969eaf; --pico-secondary: #969eaf;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { 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

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2150,8 +2150,8 @@ details[open] > summary::after {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
article:not(:has(> form)), article:not(:has(> form:first-child)),
[role=article]:not(:has(> form)), [role=article]:not(:has(> form:first-child)),
article > form, article > form,
[role=article] > form { [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2160,10 +2160,10 @@ article > form,
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > header, article > form > header,
article > form > footer, article > form > footer,
[role=article] > form > header, [role=article] > form > header,
@ -2173,8 +2173,8 @@ article > form > footer,
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
article:not(:has(> form)) > header, article:not(:has(> form:first-child)) > header,
[role=article]:not(:has(> form)) > header, [role=article]:not(:has(> form:first-child)) > header,
article > form > header, article > form > header,
[role=article] > form > header { [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2183,18 +2183,18 @@ article > form > header,
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > header > h1, article:not(:has(> form:first-child)) > header > h1,
article:not(:has(> form)) > header > h2, article:not(:has(> form:first-child)) > header > h2,
article:not(:has(> form)) > header > h3, article:not(:has(> form:first-child)) > header > h3,
article:not(:has(> form)) > header > h4, article:not(:has(> form:first-child)) > header > h4,
article:not(:has(> form)) > header > h5, article:not(:has(> form:first-child)) > header > h5,
article:not(:has(> form)) > header > h6, article:not(:has(> form:first-child)) > header > h6,
[role=article]:not(:has(> form)) > header > h1, [role=article]:not(:has(> form:first-child)) > header > h1,
[role=article]:not(:has(> form)) > header > h2, [role=article]:not(:has(> form:first-child)) > header > h2,
[role=article]:not(:has(> form)) > header > h3, [role=article]:not(:has(> form:first-child)) > header > h3,
[role=article]:not(:has(> form)) > header > h4, [role=article]:not(:has(> form:first-child)) > header > h4,
[role=article]:not(:has(> form)) > header > h5, [role=article]:not(:has(> form:first-child)) > header > h5,
[role=article]:not(:has(> form)) > header > h6, [role=article]:not(:has(> form:first-child)) > header > h6,
article > form > header > h1, article > form > header > h1,
article > form > header > h2, article > form > header > h2,
article > form > header > h3, article > form > header > h3,
@ -2209,18 +2209,18 @@ article > form > header > h6,
[role=article] > form > header > h6 { [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > header > hgroup > h1, article:not(:has(> form:first-child)) > header > hgroup > h1,
article:not(:has(> form)) > header > hgroup > h2, article:not(:has(> form:first-child)) > header > hgroup > h2,
article:not(:has(> form)) > header > hgroup > h3, article:not(:has(> form:first-child)) > header > hgroup > h3,
article:not(:has(> form)) > header > hgroup > h4, article:not(:has(> form:first-child)) > header > hgroup > h4,
article:not(:has(> form)) > header > hgroup > h5, article:not(:has(> form:first-child)) > header > hgroup > h5,
article:not(:has(> form)) > header > hgroup > h6, article:not(:has(> form:first-child)) > header > hgroup > h6,
[role=article]:not(:has(> form)) > header > hgroup > h1, [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
[role=article]:not(:has(> form)) > header > hgroup > h2, [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
[role=article]:not(:has(> form)) > header > hgroup > h3, [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
[role=article]:not(:has(> form)) > header > hgroup > h4, [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
[role=article]:not(:has(> form)) > header > hgroup > h5, [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
[role=article]:not(:has(> form)) > header > hgroup > h6, [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
article > form > header > hgroup > h1, article > form > header > hgroup > h1,
article > form > header > hgroup > h2, article > form > header > hgroup > h2,
article > form > header > hgroup > h3, article > form > header > hgroup > h3,
@ -2235,8 +2235,8 @@ article > form > header > hgroup > h6,
[role=article] > form > header > hgroup > h6 { [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
article:not(:has(> form)) > footer, article:not(:has(> form:first-child)) > footer,
[role=article]:not(:has(> form)) > footer, [role=article]:not(:has(> form:first-child)) > footer,
article > form > footer, article > form > footer,
[role=article] > form > footer { [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2245,22 +2245,22 @@ article > form > footer,
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
article:not(:has(> form)) > footer [type=submit], article:not(:has(> form:first-child)) > footer [type=submit],
article:not(:has(> form)) > footer [type=reset], article:not(:has(> form:first-child)) > footer [type=reset],
article:not(:has(> form)) > footer [type=button], article:not(:has(> form:first-child)) > footer [type=button],
article:not(:has(> form)) > footer [role=group], article:not(:has(> form:first-child)) > footer [role=group],
article:not(:has(> form)) > footer p, article:not(:has(> form:first-child)) > footer p,
article:not(:has(> form)) > footer nav, article:not(:has(> form:first-child)) > footer nav,
article:not(:has(> form)) > footer ul, article:not(:has(> form:first-child)) > footer ul,
article:not(:has(> form)) > footer ol, article:not(:has(> form:first-child)) > footer ol,
[role=article]:not(:has(> form)) > footer [type=submit], [role=article]:not(:has(> form:first-child)) > footer [type=submit],
[role=article]:not(:has(> form)) > footer [type=reset], [role=article]:not(:has(> form:first-child)) > footer [type=reset],
[role=article]:not(:has(> form)) > footer [type=button], [role=article]:not(:has(> form:first-child)) > footer [type=button],
[role=article]:not(:has(> form)) > footer [role=group], [role=article]:not(:has(> form:first-child)) > footer [role=group],
[role=article]:not(:has(> form)) > footer p, [role=article]:not(:has(> form:first-child)) > footer p,
[role=article]:not(:has(> form)) > footer nav, [role=article]:not(:has(> form:first-child)) > footer nav,
[role=article]:not(:has(> form)) > footer ul, [role=article]:not(:has(> form:first-child)) > footer ul,
[role=article]:not(:has(> form)) > footer ol, [role=article]:not(:has(> form:first-child)) > footer ol,
article > form > footer [type=submit], article > form > footer [type=submit],
article > form > footer [type=reset], article > form > footer [type=reset],
article > form > footer [type=button], article > form > footer [type=button],
@ -2280,22 +2280,22 @@ article > form > footer ol,
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
article:not(:has(> form)) > footer [type=submit]:last-child, article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
article:not(:has(> form)) > footer [type=reset]:last-child, article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
article:not(:has(> form)) > footer [type=button]:last-child, article:not(:has(> form:first-child)) > footer [type=button]:last-child,
article:not(:has(> form)) > footer [role=group]:last-child, article:not(:has(> form:first-child)) > footer [role=group]:last-child,
article:not(:has(> form)) > footer p:last-child, article:not(:has(> form:first-child)) > footer p:last-child,
article:not(:has(> form)) > footer nav:last-child, article:not(:has(> form:first-child)) > footer nav:last-child,
article:not(:has(> form)) > footer ul:last-child, article:not(:has(> form:first-child)) > footer ul:last-child,
article:not(:has(> form)) > footer ol:last-child, article:not(:has(> form:first-child)) > footer ol:last-child,
[role=article]:not(:has(> form)) > footer [type=submit]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
[role=article]:not(:has(> form)) > footer [type=reset]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
[role=article]:not(:has(> form)) > footer [type=button]:last-child, [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
[role=article]:not(:has(> form)) > footer [role=group]:last-child, [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
[role=article]:not(:has(> form)) > footer p:last-child, [role=article]:not(:has(> form:first-child)) > footer p:last-child,
[role=article]:not(:has(> form)) > footer nav:last-child, [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
[role=article]:not(:has(> form)) > footer ul:last-child, [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
[role=article]:not(:has(> form)) > footer ol:last-child, [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
article > form > footer [type=submit]:last-child, article > form > footer [type=submit]:last-child,
article > form > footer [type=reset]:last-child, article > form > footer [type=reset]:last-child,
article > form > footer [type=button]:last-child, article > form > footer [type=button]:last-child,
@ -2314,22 +2314,22 @@ article > form > footer ol:last-child,
[role=article] > form > footer ol:last-child { [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
article:not(:has(> form)) > footer p:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
article:not(:has(> form)) > footer nav:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
article:not(:has(> form)) > footer ul:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
article:not(:has(> form)) > footer ol:has(+ [type=hidden]), article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
[role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
article > form > footer [type=submit]:has(+ [type=hidden]), article > form > footer [type=submit]:has(+ [type=hidden]),
article > form > footer [type=reset]:has(+ [type=hidden]), article > form > footer [type=reset]:has(+ [type=hidden]),
article > form > footer [type=button]:has(+ [type=hidden]), article > form > footer [type=button]:has(+ [type=hidden]),
@ -2700,6 +2700,23 @@ a[aria-busy=true] {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
dialog { dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -2723,51 +2740,35 @@ dialog {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
dialog > article:not(:has(> form)), dialog > article:not(:has(> form:first-child)) > header > *,
dialog > article > form { dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog > article:not(:has(> form)),
dialog > article > form {
max-width: 700px;
}
}
dialog > article:not(:has(> form)) > header > *,
dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
dialog > article > form > header :is(a, button)[rel=prev] { dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
dialog > article:not(:has(> form)) > footer, dialog > article:not(:has(> form:first-child)) > footer,
dialog > article > form > footer { dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
dialog > article:not(:has(> form)) > footer button, dialog > article:not(:has(> form:first-child)) > footer button,
dialog > article:not(:has(> form)) > footer [role=button], dialog > article:not(:has(> form:first-child)) > footer [role=button],
dialog > article > form > footer button, dialog > article > form:first-child > footer button,
dialog > article > form > footer [role=button] { dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
dialog > article:not(:has(> form)) > footer button:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
dialog > article > form > footer button:not(:first-of-type), dialog > article > form:first-child > footer button:not(:first-of-type),
dialog > article > form > footer [role=button]:not(:first-of-type) { dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev], dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
dialog > article > form :is(a, button)[rel=prev] { dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -2783,8 +2784,8 @@ dialog > article > form :is(a, button)[rel=prev] {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
dialog > article:not(:has(> form)) :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), dialog > article:not(:has(> form:first-child)) :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) { dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
dialog:not([open]), dialog[open=false] { dialog:not([open]), dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
:root, :root,

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -236,19 +236,19 @@ nav details.dropdown summary:focus-visible {
color-scheme: light; color-scheme: light;
--pico-background-color: #fff; --pico-background-color: #fff;
--pico-color: #373c44; --pico-color: #373c44;
--pico-text-selection-color: rgba(71, 164, 23, 0.25); --pico-text-selection-color: rgba(210, 122, 1, 0.25);
--pico-muted-color: #646b79; --pico-muted-color: #646b79;
--pico-muted-border-color: rgb(231, 234, 239.5); --pico-muted-border-color: rgb(231, 234, 239.5);
--pico-primary: #33790f; --pico-primary: #9c5900;
--pico-primary-background: #398712; --pico-primary-background: #ff9500;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(51, 121, 15, 0.5); --pico-primary-underline: rgba(156, 89, 0, 0.5);
--pico-primary-hover: #265e09; --pico-primary-hover: #7a4400;
--pico-primary-hover-background: #33790f; --pico-primary-hover-background: #e48500;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(71, 164, 23, 0.5); --pico-primary-focus: rgba(210, 122, 1, 0.5);
--pico-primary-inverse: #fff; --pico-primary-inverse: #000;
--pico-secondary: #5d6b89; --pico-secondary: #5d6b89;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background); --pico-secondary-border: var(--pico-secondary-background);
@ -312,7 +312,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #bfc7d9; --pico-switch-background-color: #bfc7d9;
--pico-switch-checked-background-color: var(--pico-primary-background); --pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff; --pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0); --pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #dfe3eb; --pico-range-border-color: #dfe3eb;
--pico-range-active-border-color: #bfc7d9; --pico-range-active-border-color: #bfc7d9;
--pico-range-thumb-border-color: var(--pico-background-color); --pico-range-thumb-border-color: var(--pico-background-color);
@ -347,7 +347,7 @@ nav details.dropdown summary:focus-visible {
[data-theme=light] .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after, [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, :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 { :host(:not([data-theme=dark])) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(0); filter: brightness(100) invert(1);
} }
[data-theme=light] .pico details summary.secondary[role=button]::after, [data-theme=light] .pico details summary.secondary[role=button]::after,
:root:not([data-theme=dark]) .pico details summary.secondary[role=button]::after, :root:not([data-theme=dark]) .pico details summary.secondary[role=button]::after,
@ -362,7 +362,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, [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, :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 { :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(100) invert(0); filter: brightness(0) invert(1);
} }
[data-theme=light] input:is([type=submit], [data-theme=light] input:is([type=submit],
[type=button], [type=button],
@ -391,19 +391,19 @@ nav details.dropdown summary:focus-visible {
color-scheme: dark; color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5); --pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0; --pico-color: #c2c7d0;
--pico-text-selection-color: rgba(78, 179, 27, 0.1875); --pico-text-selection-color: rgba(228, 133, 0, 0.1875);
--pico-muted-color: #7b8495; --pico-muted-color: #7b8495;
--pico-muted-border-color: #202632; --pico-muted-border-color: #202632;
--pico-primary: #4eb31b; --pico-primary: #e48500;
--pico-primary-background: #398712; --pico-primary-background: #ff9500;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(78, 179, 27, 0.5); --pico-primary-underline: rgba(228, 133, 0, 0.5);
--pico-primary-hover: #5dd121; --pico-primary-hover: #ffa23a;
--pico-primary-hover-background: #409614; --pico-primary-hover-background: #ffa23a;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(78, 179, 27, 0.375); --pico-primary-focus: rgba(228, 133, 0, 0.375);
--pico-primary-inverse: #fff; --pico-primary-inverse: #000;
--pico-secondary: #969eaf; --pico-secondary: #969eaf;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background); --pico-secondary-border: var(--pico-secondary-background);
@ -467,7 +467,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #333c4e; --pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background); --pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff; --pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0); --pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #202632; --pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140; --pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color); --pico-range-thumb-border-color: var(--pico-background-color);
@ -527,7 +527,7 @@ nav details.dropdown summary:focus-visible {
} }
:root:not([data-theme]) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after, :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 { :host(:not([data-theme])) .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(0); filter: brightness(100) invert(1);
} }
:root:not([data-theme]) .pico details summary.secondary[role=button]::after, :root:not([data-theme]) .pico details summary.secondary[role=button]::after,
:host(:not([data-theme])) .pico details summary.secondary[role=button]::after { :host(:not([data-theme])) .pico details summary.secondary[role=button]::after {
@ -539,26 +539,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, :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 { :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(1); filter: brightness(100) invert(0);
} }
} }
[data-theme=dark] { [data-theme=dark] {
color-scheme: dark; color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5); --pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0; --pico-color: #c2c7d0;
--pico-text-selection-color: rgba(78, 179, 27, 0.1875); --pico-text-selection-color: rgba(228, 133, 0, 0.1875);
--pico-muted-color: #7b8495; --pico-muted-color: #7b8495;
--pico-muted-border-color: #202632; --pico-muted-border-color: #202632;
--pico-primary: #4eb31b; --pico-primary: #e48500;
--pico-primary-background: #398712; --pico-primary-background: #ff9500;
--pico-primary-border: var(--pico-primary-background); --pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(78, 179, 27, 0.5); --pico-primary-underline: rgba(228, 133, 0, 0.5);
--pico-primary-hover: #5dd121; --pico-primary-hover: #ffa23a;
--pico-primary-hover-background: #409614; --pico-primary-hover-background: #ffa23a;
--pico-primary-hover-border: var(--pico-primary-hover-background); --pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover); --pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(78, 179, 27, 0.375); --pico-primary-focus: rgba(228, 133, 0, 0.375);
--pico-primary-inverse: #fff; --pico-primary-inverse: #000;
--pico-secondary: #969eaf; --pico-secondary: #969eaf;
--pico-secondary-background: #525f7a; --pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background); --pico-secondary-border: var(--pico-secondary-background);
@ -622,7 +622,7 @@ nav details.dropdown summary:focus-visible {
--pico-switch-background-color: #333c4e; --pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background); --pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff; --pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0); --pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #202632; --pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140; --pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color); --pico-range-thumb-border-color: var(--pico-background-color);
@ -670,7 +670,7 @@ nav details.dropdown summary:focus-visible {
--pico-form-element-focus-color: var(--pico-primary-focus); --pico-form-element-focus-color: var(--pico-primary-focus);
} }
[data-theme=dark] .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after { [data-theme=dark] .pico details summary[role=button]:not(.outline, .contrast, .secondary)::after {
filter: brightness(100) invert(0); filter: brightness(100) invert(1);
} }
[data-theme=dark] .pico details summary.secondary[role=button]::after { [data-theme=dark] .pico details summary.secondary[role=button]::after {
filter: brightness(100) invert(0); filter: brightness(100) invert(0);
@ -679,7 +679,7 @@ nav details.dropdown summary:focus-visible {
filter: brightness(100) invert(1); 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 { [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(1); filter: brightness(100) invert(0);
} }
.pico progress, .pico progress,
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
@charset "UTF-8"; @charset "UTF-8";
/*! /*!
* Pico CSS v2.2.6 (https://github.com/Yohn/PicoCSS) * Pico CSS v2.2.7 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT * Copyright 2019-2025 - Licensed under MIT
*/ */
/** /**
@ -2876,8 +2876,8 @@ main {
/** /**
* Card (<article>, role="article") * Card (<article>, role="article")
*/ */
.pico article:not(:has(> form)), .pico article:not(:has(> form:first-child)),
.pico [role=article]:not(:has(> form)), .pico [role=article]:not(:has(> form:first-child)),
.pico article > form, .pico article > form,
.pico [role=article] > form { .pico [role=article] > form {
margin-bottom: var(--pico-block-spacing-vertical); margin-bottom: var(--pico-block-spacing-vertical);
@ -2886,10 +2886,10 @@ main {
background: var(--pico-card-background-color); background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow); box-shadow: var(--pico-card-box-shadow);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > header, .pico article > form > header,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > header, .pico [role=article] > form > header,
@ -2899,8 +2899,8 @@ main {
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal); padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
background-color: var(--pico-card-sectioning-background-color); background-color: var(--pico-card-sectioning-background-color);
} }
.pico article:not(:has(> form)) > header, .pico article:not(:has(> form:first-child)) > header,
.pico [role=article]:not(:has(> form)) > header, .pico [role=article]:not(:has(> form:first-child)) > header,
.pico article > form > header, .pico article > form > header,
.pico [role=article] > form > header { .pico [role=article] > form > header {
margin-top: calc(var(--pico-block-spacing-vertical) * -1); margin-top: calc(var(--pico-block-spacing-vertical) * -1);
@ -2909,18 +2909,18 @@ main {
border-top-right-radius: var(--pico-border-radius); border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius); border-top-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > header > h1, .pico article:not(:has(> form:first-child)) > header > h1,
.pico article:not(:has(> form)) > header > h2, .pico article:not(:has(> form:first-child)) > header > h2,
.pico article:not(:has(> form)) > header > h3, .pico article:not(:has(> form:first-child)) > header > h3,
.pico article:not(:has(> form)) > header > h4, .pico article:not(:has(> form:first-child)) > header > h4,
.pico article:not(:has(> form)) > header > h5, .pico article:not(:has(> form:first-child)) > header > h5,
.pico article:not(:has(> form)) > header > h6, .pico article:not(:has(> form:first-child)) > header > h6,
.pico [role=article]:not(:has(> form)) > header > h1, .pico [role=article]:not(:has(> form:first-child)) > header > h1,
.pico [role=article]:not(:has(> form)) > header > h2, .pico [role=article]:not(:has(> form:first-child)) > header > h2,
.pico [role=article]:not(:has(> form)) > header > h3, .pico [role=article]:not(:has(> form:first-child)) > header > h3,
.pico [role=article]:not(:has(> form)) > header > h4, .pico [role=article]:not(:has(> form:first-child)) > header > h4,
.pico [role=article]:not(:has(> form)) > header > h5, .pico [role=article]:not(:has(> form:first-child)) > header > h5,
.pico [role=article]:not(:has(> form)) > header > h6, .pico [role=article]:not(:has(> form:first-child)) > header > h6,
.pico article > form > header > h1, .pico article > form > header > h1,
.pico article > form > header > h2, .pico article > form > header > h2,
.pico article > form > header > h3, .pico article > form > header > h3,
@ -2935,18 +2935,18 @@ main {
.pico [role=article] > form > header > h6 { .pico [role=article] > form > header > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > header > hgroup > h1, .pico article:not(:has(> form:first-child)) > header > hgroup > h1,
.pico article:not(:has(> form)) > header > hgroup > h2, .pico article:not(:has(> form:first-child)) > header > hgroup > h2,
.pico article:not(:has(> form)) > header > hgroup > h3, .pico article:not(:has(> form:first-child)) > header > hgroup > h3,
.pico article:not(:has(> form)) > header > hgroup > h4, .pico article:not(:has(> form:first-child)) > header > hgroup > h4,
.pico article:not(:has(> form)) > header > hgroup > h5, .pico article:not(:has(> form:first-child)) > header > hgroup > h5,
.pico article:not(:has(> form)) > header > hgroup > h6, .pico article:not(:has(> form:first-child)) > header > hgroup > h6,
.pico [role=article]:not(:has(> form)) > header > hgroup > h1, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h1,
.pico [role=article]:not(:has(> form)) > header > hgroup > h2, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h2,
.pico [role=article]:not(:has(> form)) > header > hgroup > h3, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h3,
.pico [role=article]:not(:has(> form)) > header > hgroup > h4, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h4,
.pico [role=article]:not(:has(> form)) > header > hgroup > h5, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h5,
.pico [role=article]:not(:has(> form)) > header > hgroup > h6, .pico [role=article]:not(:has(> form:first-child)) > header > hgroup > h6,
.pico article > form > header > hgroup > h1, .pico article > form > header > hgroup > h1,
.pico article > form > header > hgroup > h2, .pico article > form > header > hgroup > h2,
.pico article > form > header > hgroup > h3, .pico article > form > header > hgroup > h3,
@ -2961,8 +2961,8 @@ main {
.pico [role=article] > form > header > hgroup > h6 { .pico [role=article] > form > header > hgroup > h6 {
margin-bottom: 0; margin-bottom: 0;
} }
.pico article:not(:has(> form)) > footer, .pico article:not(:has(> form:first-child)) > footer,
.pico [role=article]:not(:has(> form)) > footer, .pico [role=article]:not(:has(> form:first-child)) > footer,
.pico article > form > footer, .pico article > form > footer,
.pico [role=article] > form > footer { .pico [role=article] > form > footer {
margin-top: var(--pico-block-spacing-vertical); margin-top: var(--pico-block-spacing-vertical);
@ -2971,22 +2971,22 @@ main {
border-bottom-right-radius: var(--pico-border-radius); border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius); border-bottom-left-radius: var(--pico-border-radius);
} }
.pico article:not(:has(> form)) > footer [type=submit], .pico article:not(:has(> form:first-child)) > footer [type=submit],
.pico article:not(:has(> form)) > footer [type=reset], .pico article:not(:has(> form:first-child)) > footer [type=reset],
.pico article:not(:has(> form)) > footer [type=button], .pico article:not(:has(> form:first-child)) > footer [type=button],
.pico article:not(:has(> form)) > footer [role=group], .pico article:not(:has(> form:first-child)) > footer [role=group],
.pico article:not(:has(> form)) > footer p, .pico article:not(:has(> form:first-child)) > footer p,
.pico article:not(:has(> form)) > footer nav, .pico article:not(:has(> form:first-child)) > footer nav,
.pico article:not(:has(> form)) > footer ul, .pico article:not(:has(> form:first-child)) > footer ul,
.pico article:not(:has(> form)) > footer ol, .pico article:not(:has(> form:first-child)) > footer ol,
.pico [role=article]:not(:has(> form)) > footer [type=submit], .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit],
.pico [role=article]:not(:has(> form)) > footer [type=reset], .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset],
.pico [role=article]:not(:has(> form)) > footer [type=button], .pico [role=article]:not(:has(> form:first-child)) > footer [type=button],
.pico [role=article]:not(:has(> form)) > footer [role=group], .pico [role=article]:not(:has(> form:first-child)) > footer [role=group],
.pico [role=article]:not(:has(> form)) > footer p, .pico [role=article]:not(:has(> form:first-child)) > footer p,
.pico [role=article]:not(:has(> form)) > footer nav, .pico [role=article]:not(:has(> form:first-child)) > footer nav,
.pico [role=article]:not(:has(> form)) > footer ul, .pico [role=article]:not(:has(> form:first-child)) > footer ul,
.pico [role=article]:not(:has(> form)) > footer ol, .pico [role=article]:not(:has(> form:first-child)) > footer ol,
.pico article > form > footer [type=submit], .pico article > form > footer [type=submit],
.pico article > form > footer [type=reset], .pico article > form > footer [type=reset],
.pico article > form > footer [type=button], .pico article > form > footer [type=button],
@ -3006,22 +3006,22 @@ main {
margin-bottom: 0px; margin-bottom: 0px;
/* Also remove if next input after button is a hidden input */ /* Also remove if next input after button is a hidden input */
} }
.pico article:not(:has(> form)) > footer [type=submit]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico article:not(:has(> form)) > footer [type=reset]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico article:not(:has(> form)) > footer [type=button]:last-child, .pico article:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico article:not(:has(> form)) > footer [role=group]:last-child, .pico article:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico article:not(:has(> form)) > footer p:last-child, .pico article:not(:has(> form:first-child)) > footer p:last-child,
.pico article:not(:has(> form)) > footer nav:last-child, .pico article:not(:has(> form:first-child)) > footer nav:last-child,
.pico article:not(:has(> form)) > footer ul:last-child, .pico article:not(:has(> form:first-child)) > footer ul:last-child,
.pico article:not(:has(> form)) > footer ol:last-child, .pico article:not(:has(> form:first-child)) > footer ol:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=submit]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=reset]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:last-child,
.pico [role=article]:not(:has(> form)) > footer [type=button]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:last-child,
.pico [role=article]:not(:has(> form)) > footer [role=group]:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:last-child,
.pico [role=article]:not(:has(> form)) > footer p:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer p:last-child,
.pico [role=article]:not(:has(> form)) > footer nav:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer nav:last-child,
.pico [role=article]:not(:has(> form)) > footer ul:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ul:last-child,
.pico [role=article]:not(:has(> form)) > footer ol:last-child, .pico [role=article]:not(:has(> form:first-child)) > footer ol:last-child,
.pico article > form > footer [type=submit]:last-child, .pico article > form > footer [type=submit]:last-child,
.pico article > form > footer [type=reset]:last-child, .pico article > form > footer [type=reset]:last-child,
.pico article > form > footer [type=button]:last-child, .pico article > form > footer [type=button]:last-child,
@ -3040,22 +3040,22 @@ main {
.pico [role=article] > form > footer ol:last-child { .pico [role=article] > form > footer ol:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.pico article:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico article:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico article:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=submit]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=submit]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=reset]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=reset]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [type=button]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [type=button]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer [role=group]:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer [role=group]:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer p:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer p:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer nav:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer nav:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ul:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ul:has(+ [type=hidden]),
.pico [role=article]:not(:has(> form)) > footer ol:has(+ [type=hidden]), .pico [role=article]:not(:has(> form:first-child)) > footer ol:has(+ [type=hidden]),
.pico article > form > footer [type=submit]: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=reset]:has(+ [type=hidden]),
.pico article > form > footer [type=button]:has(+ [type=hidden]), .pico article > form > footer [type=button]:has(+ [type=hidden]),
@ -3589,6 +3589,23 @@ main {
--pico-scrollbar-width: 0px; --pico-scrollbar-width: 0px;
} }
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article:not(:has(> form:first-child)),
.pico dialog:not(.modal-fs, .modal-xlg, .modal-lg, .modal-md, .modal-sm) > article > form:first-child {
max-width: 700px;
}
}
.pico dialog { .pico dialog {
display: grid; display: grid;
z-index: 999; z-index: 999;
@ -3612,53 +3629,37 @@ main {
transform: scale(1); transform: scale(1);
transition: transform var(--pico-transition); transition: transform var(--pico-transition);
} }
.pico dialog > article:not(:has(> form)), .pico dialog > article:not(:has(> form:first-child)) > header > *,
.pico dialog > article > form { .pico dialog > article > form:first-child > header > * {
width: 100%;
}
@media (min-width: 576px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 510px;
}
}
@media (min-width: 768px) {
.pico dialog > article:not(:has(> form)),
.pico dialog > article > form {
max-width: 700px;
}
}
.pico dialog > article:not(:has(> form)) > header > *,
.pico dialog > article > form > header > * {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > header .close, .pico dialog > article:not(:has(> form)) > header :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) > header .close, .pico dialog > article:not(:has(> form:first-child)) > header :is(a, button)[rel=prev],
.pico dialog > article > form > header .close, .pico dialog > article > form:first-child > header .close,
.pico dialog > article > form > header :is(a, button)[rel=prev] { .pico dialog > article > form:first-child > header :is(a, button)[rel=prev] {
margin: 0; margin: 0;
margin-left: var(--pico-spacing); margin-left: var(--pico-spacing);
padding: 0; padding: 0;
float: right; float: right;
} }
.pico dialog > article:not(:has(> form)) > footer, .pico dialog > article:not(:has(> form:first-child)) > footer,
.pico dialog > article > form > footer { .pico dialog > article > form:first-child > footer {
text-align: right; text-align: right;
} }
.pico dialog > article:not(:has(> form)) > footer button, .pico dialog > article:not(:has(> form:first-child)) > footer button,
.pico dialog > article:not(:has(> form)) > footer [role=button], .pico dialog > article:not(:has(> form:first-child)) > footer [role=button],
.pico dialog > article > form > footer button, .pico dialog > article > form:first-child > footer button,
.pico dialog > article > form > footer [role=button] { .pico dialog > article > form:first-child > footer [role=button] {
margin-bottom: 0; margin-bottom: 0;
} }
.pico dialog > article:not(:has(> form)) > footer button:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer button:not(:first-of-type),
.pico dialog > article:not(:has(> form)) > footer [role=button]:not(:first-of-type), .pico dialog > article:not(:has(> form:first-child)) > footer [role=button]:not(:first-of-type),
.pico dialog > article > form > footer button:not(:first-of-type), .pico dialog > article > form:first-child > footer button:not(:first-of-type),
.pico dialog > article > form > footer [role=button]:not(:first-of-type) { .pico dialog > article > form:first-child > footer [role=button]:not(:first-of-type) {
margin-left: calc(var(--pico-spacing) * 0.5); margin-left: calc(var(--pico-spacing) * 0.5);
} }
.pico dialog > article:not(:has(> form)) .close, .pico dialog > article:not(:has(> form)) :is(a, button)[rel=prev], .pico dialog > article:not(:has(> form:first-child)) .close, .pico dialog > article:not(:has(> form:first-child)) :is(a, button)[rel=prev],
.pico dialog > article > form .close, .pico dialog > article > form:first-child .close,
.pico dialog > article > form :is(a, button)[rel=prev] { .pico dialog > article > form:first-child :is(a, button)[rel=prev] {
display: block; display: block;
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
@ -3674,9 +3675,9 @@ main {
opacity: 0.5; opacity: 0.5;
transition: opacity var(--pico-transition); transition: opacity var(--pico-transition);
} }
.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:not(:has(> form:first-child)) .close:is([aria-current]:not([aria-current=false]), :hover, :active, :focus), .pico dialog > article:not(:has(> form:first-child)) :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:first-child .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) { .pico dialog > article > form:first-child :is(a, button)[rel=prev]:is([aria-current]:not([aria-current=false]), :hover, :active, :focus) {
opacity: 1; opacity: 1;
} }
.pico dialog:not([open]), .pico dialog[open=false] { .pico dialog:not([open]), .pico dialog[open=false] {

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