picocss/css/pico.css

2846 lines
90 KiB
CSS
Raw Normal View History

2022-03-06 15:12:55 +07:00
@charset "UTF-8";
2019-11-27 15:31:49 +07:00
/*!
2022-10-22 13:11:51 +07:00
* Pico v2.0.0-alpha1 (https://picocss.com)
2023-03-28 21:42:34 +07:00
* Copyright 2019-2023 - Licensed under MIT
2019-11-27 15:31:49 +07:00
*/
2023-03-28 21:59:51 +07:00
/**
* Styles
*/
:root {
--pico-font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--pico-line-height: 1.5;
--pico-font-weight: 400;
--pico-font-size: 100%;
--pico-text-underline-offset: 0.1rem;
--pico-border-radius: 0.25rem;
2023-04-02 10:36:52 +07:00
--pico-border-width: 0.0625rem;
2023-03-28 21:59:51 +07:00
--pico-outline-width: 0.1875rem;
--pico-transition: 0.2s ease-in-out;
--pico-spacing: 1rem;
--pico-typography-spacing-vertical: 1rem;
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
--pico-block-spacing-horizontal: var(--pico-spacing);
2023-04-02 17:40:20 +07:00
--pico-grid-column-gap: var(--pico-spacing);
--pico-grid-row-gap: var(--pico-spacing);
2023-03-28 21:59:51 +07:00
--pico-form-element-spacing-vertical: 0.75rem;
--pico-form-element-spacing-horizontal: 1rem;
--pico-modal-overlay-backdrop-filter: blur(0.375rem);
--pico-nav-element-spacing-vertical: 1rem;
--pico-nav-element-spacing-horizontal: 0.5rem;
--pico-nav-link-spacing-vertical: 0.5rem;
--pico-nav-link-spacing-horizontal: 0.5rem;
--pico-nav-breadcrumb-divider: ">";
--pico-icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
--pico-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
--pico-icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
--pico-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
--pico-icon-loading: url("data:image/svg+xml,%3Csvg fill='none' height='24' width='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E g %7B animation: rotate 2s linear infinite; transform-origin: center center; %7D circle %7B stroke-dasharray: 75,100; stroke-dashoffset: -5; animation: dash 1.5s ease-in-out infinite; stroke-linecap: round; %7D @keyframes rotate %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D @keyframes dash %7B 0%25 %7B stroke-dasharray: 1,100; stroke-dashoffset: 0; %7D 50%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -17.5; %7D 100%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -62; %7D %7D %3C/style%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='rgb(136, 145, 164)' stroke-width='4' /%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 576px) {
:root {
--pico-font-size: 106.25%;
}
}
@media (min-width: 768px) {
:root {
--pico-font-size: 112.5%;
}
}
@media (min-width: 1024px) {
:root {
--pico-font-size: 118.75%;
}
}
@media (min-width: 1280px) {
:root {
--pico-font-size: 125%;
}
}
@media (min-width: 1536px) {
:root {
--pico-font-size: 131.25%;
}
}
:root details summary[role=button]:not(.outline)::after {
filter: brightness(0) invert(1);
}
:root [aria-busy=true]:not(input, select, textarea):is(button, [type=submit], [type=button], [type=reset], [role=button]):not(.outline)::before {
filter: brightness(0) invert(1);
}
@media (min-width: 576px) {
body > header,
body > main,
body > footer,
section {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2.5);
}
}
@media (min-width: 768px) {
body > header,
body > main,
body > footer,
section {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 3);
}
}
@media (min-width: 1024px) {
body > header,
body > main,
body > footer,
section {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 3.5);
}
}
@media (min-width: 1280px) {
body > header,
body > main,
body > footer,
section {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4);
}
}
@media (min-width: 1536px) {
body > header,
body > main,
body > footer,
section {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4.5);
}
}
@media (min-width: 576px) {
article {
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 1.25);
}
}
@media (min-width: 768px) {
article {
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 1.5);
}
}
@media (min-width: 1024px) {
article {
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 1.75);
}
}
@media (min-width: 1280px) {
article {
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2);
}
}
@media (min-width: 1536px) {
article {
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2.25);
}
}
dialog > article {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
--pico-block-spacing-horizontal: var(--pico-spacing);
}
@media (min-width: 576px) {
dialog > article {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2.5);
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 1.25);
}
}
@media (min-width: 768px) {
dialog > article {
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 3);
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 1.5);
}
}
a {
--pico-text-decoration: underline;
}
a.secondary, a.contrast {
--pico-text-decoration: underline;
}
small {
--pico-font-size: 0.875em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
--pico-font-weight: 700;
}
h1 {
--pico-font-size: 2rem;
--pico-line-height: 1.25;
--pico-typography-spacing-top: 3rem;
}
h2 {
--pico-font-size: 1.75rem;
--pico-line-height: 1.3;
--pico-typography-spacing-top: 2.625rem;
}
h3 {
--pico-font-size: 1.5rem;
--pico-line-height: 1.35;
--pico-typography-spacing-top: 2.25rem;
}
h4 {
--pico-font-size: 1.25rem;
--pico-line-height: 1.4;
--pico-typography-spacing-top: 1.874rem;
}
h5 {
--pico-font-size: 1.125rem;
--pico-line-height: 1.45;
--pico-typography-spacing-top: 1.6875rem;
}
h6 {
--pico-font-size: 1rem;
--pico-typography-spacing-top: 1.5rem;
}
thead th,
thead td,
tfoot th,
tfoot td {
--pico-font-weight: 600;
2023-04-02 10:36:52 +07:00
--pico-border-width: 0.1875rem;
2023-03-28 21:59:51 +07:00
}
pre,
code,
kbd,
samp {
--pico-font-family: "Menlo", "Consolas", "Roboto Mono", "Ubuntu Monospace", "Noto Mono", "Oxygen Mono", "Liberation Mono", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
kbd {
--pico-font-weight: bolder;
}
input:not([type=submit],
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[type=file]),
:where(select, textarea) {
--pico-outline-width: 0.0625rem;
}
2023-04-02 10:36:52 +07:00
[type=search] {
--pico-border-radius: 5rem;
}
2023-03-28 21:59:51 +07:00
[type=checkbox],
[type=radio] {
--pico-border-width: 0.125rem;
}
[type=checkbox][role=switch] {
--pico-border-width: 0.1875rem;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role=button]) {
2023-03-28 21:59:51 +07:00
--pico-outline-width: 0.0625rem;
}
2023-04-02 22:37:00 +07:00
nav details.dropdown summary:focus-visible {
2023-04-01 10:10:09 +07:00
--pico-outline-width: 0.1875rem;
}
2023-04-02 10:36:52 +07:00
[role=search] {
--pico-border-radius: 5rem;
}
[role=search],
[role=group] {
--pico-group-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
2023-04-02 11:04:23 +07:00
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
--pico-group-box-shadow-focus-with-input: 0 0 0 0.0625rem var(--pico-form-element-border-color);
2023-04-02 10:36:52 +07:00
}
[role=search]:has(button.secondary:focus,
[type=submit].secondary:focus,
[type=button].secondary:focus,
[role=button].secondary:focus),
[role=group]:has(button.secondary:focus,
[type=submit].secondary:focus,
[type=button].secondary:focus,
[role=button].secondary:focus) {
2023-04-02 11:04:23 +07:00
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
2023-04-02 10:36:52 +07:00
}
[role=search]:has(button.contrast:focus,
[type=submit].contrast:focus,
[type=button].contrast:focus,
[role=button].contrast:focus),
[role=group]:has(button.contrast:focus,
[type=submit].contrast:focus,
[type=button].contrast:focus,
[role=button].contrast:focus) {
2023-04-02 11:04:23 +07:00
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
2023-04-02 10:36:52 +07:00
}
[role=search] button,
[role=search] [type=submit],
[role=search] [type=button],
[role=search] [role=button],
[role=group] button,
[role=group] [type=submit],
[role=group] [type=button],
[role=group] [role=button] {
--pico-form-element-spacing-horizontal: 2rem;
}
2022-10-23 10:47:50 +07:00
/**
* Color schemes
*/
2021-09-12 10:58:05 +07:00
[data-theme=light],
:root:not([data-theme=dark]) {
2022-10-22 13:11:51 +07:00
--pico-background-color: #fff;
2022-12-26 11:35:56 +07:00
--pico-color: #373c44;
2023-01-28 12:22:55 +07:00
--pico-text-selection-color: rgba(2, 154, 232, 0.25);
2022-12-26 11:35:56 +07:00
--pico-muted-color: #646b79;
--pico-muted-border-color: #e7eaf0;
--pico-primary: #0172ad;
--pico-primary-background: #0172ad;
--pico-primary-border: var(--pico-primary-background);
2023-04-02 11:04:23 +07:00
--pico-primary-underline: rgba(1, 114, 173, 0.5);
--pico-primary-hover: #015887;
--pico-primary-hover-background: #02659a;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
2023-01-28 12:22:55 +07:00
--pico-primary-focus: rgba(2, 154, 232, 0.5);
2022-10-22 13:11:51 +07:00
--pico-primary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-secondary: #5d6b89;
2023-01-01 14:03:50 +07:00
--pico-secondary-background: #525f7a;
2022-12-26 11:35:56 +07:00
--pico-secondary-border: var(--pico-secondary-background);
2023-04-02 11:04:23 +07:00
--pico-secondary-underline: rgba(93, 107, 137, 0.5);
--pico-secondary-hover: #48536b;
--pico-secondary-hover-background: #48536b;
--pico-secondary-hover-border: var(--pico-secondary-hover-background);
--pico-secondary-hover-underline: var(--pico-secondary-hover);
2022-12-26 11:35:56 +07:00
--pico-secondary-focus: rgba(93, 107, 137, 0.25);
2022-10-22 13:11:51 +07:00
--pico-secondary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-contrast: #181c25;
--pico-contrast-background: #181c25;
--pico-contrast-border: var(--pico-contrast-background);
2023-04-02 11:04:23 +07:00
--pico-contrast-underline: rgba(24, 28, 37, 0.5);
--pico-contrast-hover: #000;
--pico-contrast-hover-background: #000;
--pico-contrast-hover-border: var(--pico-contrast-hover-background);
--pico-contrast-hover-underline: var(--pico-secondary-hover);
2022-12-26 11:35:56 +07:00
--pico-contrast-focus: rgba(93, 107, 137, 0.25);
2022-10-22 13:11:51 +07:00
--pico-contrast-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(104, 120, 153, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(104, 120, 153, 0.024), 0.0625rem 0.125rem 0.75rem rgba(104, 120, 153, 0.03), 0.1125rem 0.225rem 1.35rem rgba(104, 120, 153, 0.036), 0.2085rem 0.417rem 2.502rem rgba(104, 120, 153, 0.04302), 0.5rem 1rem 6rem rgba(104, 120, 153, 0.06), 0 0 0 0.0625rem rgba(104, 120, 153, 0.015);
--pico-h1-color: #2d3138;
--pico-h2-color: #373c44;
--pico-h3-color: #424751;
--pico-h4-color: #4d535e;
--pico-h5-color: #5c6370;
--pico-h6-color: #646b79;
--pico-mark-background-color: #fde7c0;
--pico-mark-color: #0f1114;
2023-03-15 22:16:47 +07:00
--pico-ins-color: #1d6a54;
--pico-del-color: #883935;
2022-10-22 13:11:51 +07:00
--pico-blockquote-border-color: var(--pico-muted-border-color);
--pico-blockquote-footer-color: var(--pico-muted-color);
--pico-button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
2022-10-23 10:47:50 +07:00
--pico-table-border-color: var(--pico-muted-border-color);
2022-12-26 11:35:56 +07:00
--pico-table-row-stripped-background-color: rgba(111, 120, 135, 0.0375);
2022-12-29 18:16:36 +07:00
--pico-code-background-color: #f3f5f7;
2023-03-13 22:10:27 +07:00
--pico-code-color: #646b79;
2022-12-26 11:35:56 +07:00
--pico-code-kbd-background-color: var(--pico-color);
--pico-code-kbd-color: var(--pico-background-color);
--pico-form-element-background-color: #fbfcfc;
--pico-form-element-selected-background-color: #dfe3eb;
2022-12-26 11:35:56 +07:00
--pico-form-element-border-color: #cfd5e2;
--pico-form-element-color: #23262c;
2022-10-22 13:11:51 +07:00
--pico-form-element-placeholder-color: var(--pico-muted-color);
2022-12-26 11:35:56 +07:00
--pico-form-element-active-background-color: #fff;
--pico-form-element-active-border-color: var(--pico-primary-border);
--pico-form-element-focus-color: var(--pico-primary-border);
--pico-form-element-disabled-background-color: var(--pico-form-element-background-color);
--pico-form-element-disabled-border-color: var(--pico-form-element-border-color);
2022-10-22 13:11:51 +07:00
--pico-form-element-disabled-opacity: 0.5;
2023-03-15 22:16:47 +07:00
--pico-form-element-invalid-border-color: #b86a6b;
--pico-form-element-invalid-active-border-color: #c84f48;
2022-12-26 11:35:56 +07:00
--pico-form-element-invalid-focus-color: var(--pico-form-element-invalid-active-border-color);
2023-03-15 22:16:47 +07:00
--pico-form-element-valid-border-color: #4c9b8a;
--pico-form-element-valid-active-border-color: #279977;
2022-12-26 11:35:56 +07:00
--pico-form-element-valid-focus-color: var(--pico-form-element-valid-active-border-color);
--pico-switch-background-color: #bfc7d9;
2022-10-22 13:11:51 +07:00
--pico-switch-color: var(--pico-primary-inverse);
2022-12-26 11:35:56 +07:00
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-range-border-color: #dfe3eb;
--pico-range-active-border-color: #bfc7d9;
2022-10-22 13:11:51 +07:00
--pico-range-thumb-border-color: var(--pico-background-color);
2022-12-26 11:35:56 +07:00
--pico-range-thumb-color: var(--pico-secondary-background);
2023-03-18 08:23:23 +07:00
--pico-range-thumb-active-color: var(--pico-primary-background);
2022-10-22 13:11:51 +07:00
--pico-accordion-border-color: var(--pico-muted-border-color);
2023-01-01 14:03:50 +07:00
--pico-accordion-active-summary-color: var(--pico-primary-hover);
2022-10-22 13:11:51 +07:00
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: var(--pico-background-color);
--pico-card-border-color: var(--pico-muted-border-color);
2022-10-23 10:47:50 +07:00
--pico-card-box-shadow: var(--pico-box-shadow);
2023-03-18 13:00:50 +07:00
--pico-card-sectioning-background-color: #fbfcfc;
2022-12-26 11:35:56 +07:00
--pico-dropdown-background-color: #fff;
--pico-dropdown-border-color: #eff1f4;
2022-10-23 10:47:50 +07:00
--pico-dropdown-box-shadow: var(--pico-box-shadow);
2022-10-22 13:11:51 +07:00
--pico-dropdown-color: var(--pico-color);
2022-12-29 18:16:36 +07:00
--pico-dropdown-hover-background-color: #eff1f4;
2022-10-23 10:47:50 +07:00
--pico-loading-spinner-opacity: 0.5;
2023-03-25 12:35:22 +07:00
--pico-modal-overlay-background-color: rgba(232, 234, 237, 0.75);
2022-12-26 11:35:56 +07:00
--pico-progress-background-color: #dfe3eb;
--pico-progress-color: var(--pico-primary-background);
--pico-tooltip-background-color: var(--pico-contrast-background);
2022-10-22 13:11:51 +07:00
--pico-tooltip-color: var(--pico-contrast-inverse);
2023-03-15 22:16:47 +07:00
--pico-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(29, 106, 84)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 57, 53)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2022-06-12 12:35:03 +02:00
color-scheme: light;
2019-11-27 15:31:49 +07:00
}
2022-12-26 13:37:20 +07:00
[data-theme=light] input:is([type=submit],
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[type=file]),
:root:not([data-theme=dark]) input:is([type=submit],
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[type=file]) {
2022-12-26 11:35:56 +07:00
--pico-form-element-focus-color: var(--pico-primary-focus);
}
2019-11-27 15:31:49 +07:00
@media only screen and (prefers-color-scheme: dark) {
2022-12-29 18:16:36 +07:00
:root:not([data-theme]) {
2022-12-26 11:35:56 +07:00
--pico-background-color: #13171f;
--pico-color: #c2c7d0;
2023-01-28 12:22:55 +07:00
--pico-text-selection-color: rgba(1, 170, 255, 0.1875);
2022-12-26 11:35:56 +07:00
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #01aaff;
2023-01-01 14:03:50 +07:00
--pico-primary-background: #0172ad;
2022-12-26 11:35:56 +07:00
--pico-primary-border: var(--pico-primary-background);
2023-04-02 11:04:23 +07:00
--pico-primary-underline: rgba(1, 170, 255, 0.5);
--pico-primary-hover: #79c0ff;
--pico-primary-hover-background: #017fc0;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
2023-01-28 12:22:55 +07:00
--pico-primary-focus: rgba(1, 170, 255, 0.375);
2022-10-22 13:11:51 +07:00
--pico-primary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-secondary: #969eaf;
2023-01-01 14:03:50 +07:00
--pico-secondary-background: #525f7a;
2022-12-26 11:35:56 +07:00
--pico-secondary-border: var(--pico-secondary-background);
2023-04-02 11:04:23 +07:00
--pico-secondary-underline: rgba(150, 158, 175, 0.5);
--pico-secondary-hover: #b3b9c5;
--pico-secondary-hover-background: #5d6b89;
--pico-secondary-hover-border: var(--pico-secondary-hover-background);
--pico-secondary-hover-underline: var(--pico-secondary-hover);
2022-12-26 11:35:56 +07:00
--pico-secondary-focus: rgba(144, 158, 190, 0.25);
2022-10-22 13:11:51 +07:00
--pico-secondary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-contrast: #dfe3eb;
--pico-contrast-background: #eff1f4;
--pico-contrast-border: var(--pico-contrast-background);
2023-04-02 11:04:23 +07:00
--pico-contrast-underline: rgba(223, 227, 235, 0.5);
--pico-contrast-hover: #fff;
--pico-contrast-hover-background: #fff;
--pico-contrast-hover-border: var(--pico-contrast-hover-background);
--pico-contrast-hover-underline: var(--pico-contrast-hover);
2022-12-26 11:35:56 +07:00
--pico-contrast-focus: rgba(207, 213, 226, 0.25);
2022-10-22 13:11:51 +07:00
--pico-contrast-inverse: #000;
2022-10-23 10:47:50 +07:00
--pico-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(0, 0, 0, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(0, 0, 0, 0.024), 0.0625rem 0.125rem 0.75rem rgba(0, 0, 0, 0.03), 0.1125rem 0.225rem 1.35rem rgba(0, 0, 0, 0.036), 0.2085rem 0.417rem 2.502rem rgba(0, 0, 0, 0.04302), 0.5rem 1rem 6rem rgba(0, 0, 0, 0.06), 0 0 0 0.0625rem rgba(0, 0, 0, 0.015);
2022-12-26 11:35:56 +07:00
--pico-h1-color: #f0f1f3;
--pico-h2-color: #e0e3e7;
--pico-h3-color: #c2c7d0;
--pico-h4-color: #b3b9c5;
--pico-h5-color: #a4acba;
--pico-h6-color: #8891a4;
--pico-mark-background-color: #014063;
--pico-mark-color: #fff;
2023-03-15 22:16:47 +07:00
--pico-ins-color: #62af9a;
--pico-del-color: #ce7e7b;
2022-10-22 13:11:51 +07:00
--pico-blockquote-border-color: var(--pico-muted-border-color);
--pico-blockquote-footer-color: var(--pico-muted-color);
--pico-button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
2022-10-23 10:47:50 +07:00
--pico-table-border-color: var(--pico-muted-border-color);
2022-12-26 11:35:56 +07:00
--pico-table-row-stripped-background-color: rgba(111, 120, 135, 0.0375);
--pico-code-background-color: #1a1f28;
2023-03-13 22:10:27 +07:00
--pico-code-color: #8891a4;
2022-12-26 11:35:56 +07:00
--pico-code-kbd-background-color: var(--pico-color);
--pico-code-kbd-color: var(--pico-background-color);
--pico-form-element-background-color: #1c212c;
--pico-form-element-selected-background-color: #2a3140;
2022-12-26 11:35:56 +07:00
--pico-form-element-border-color: #2a3140;
--pico-form-element-color: #e0e3e7;
--pico-form-element-placeholder-color: #8891a4;
--pico-form-element-active-background-color: #1a1f28;
--pico-form-element-active-border-color: var(--pico-primary-border);
--pico-form-element-focus-color: var(--pico-primary-border);
--pico-form-element-disabled-background-color: var(--pico-form-element-background-color);
--pico-form-element-disabled-border-color: var(--pico-form-element-border-color);
2022-10-22 13:11:51 +07:00
--pico-form-element-disabled-opacity: 0.5;
2023-03-15 22:16:47 +07:00
--pico-form-element-invalid-border-color: #964a50;
--pico-form-element-invalid-active-border-color: #b7403b;
2022-12-26 11:35:56 +07:00
--pico-form-element-invalid-focus-color: var(--pico-form-element-invalid-active-border-color);
2023-03-15 22:16:47 +07:00
--pico-form-element-valid-border-color: #2a7b6f;
--pico-form-element-valid-active-border-color: #16896a;
2022-12-26 11:35:56 +07:00
--pico-form-element-valid-focus-color: var(--pico-form-element-valid-active-border-color);
--pico-switch-background-color: #333c4e;
2022-10-22 13:11:51 +07:00
--pico-switch-color: var(--pico-primary-inverse);
2022-12-26 11:35:56 +07:00
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
2022-10-22 13:11:51 +07:00
--pico-range-thumb-border-color: var(--pico-background-color);
2022-12-26 11:35:56 +07:00
--pico-range-thumb-color: var(--pico-secondary-background);
2023-03-18 08:23:23 +07:00
--pico-range-thumb-active-color: var(--pico-primary-background);
2022-10-22 13:11:51 +07:00
--pico-accordion-border-color: var(--pico-muted-border-color);
2023-01-01 14:03:50 +07:00
--pico-accordion-active-summary-color: var(--pico-primary-hover);
2022-10-22 13:11:51 +07:00
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
2022-12-26 11:35:56 +07:00
--pico-card-background-color: #181c25;
2022-10-22 13:11:51 +07:00
--pico-card-border-color: var(--pico-card-background-color);
2022-10-23 10:47:50 +07:00
--pico-card-box-shadow: var(--pico-box-shadow);
2023-03-18 13:00:50 +07:00
--pico-card-sectioning-background-color: #1a1f28;
2022-12-26 11:35:56 +07:00
--pico-dropdown-background-color: #181c25;
--pico-dropdown-border-color: #202632;
2022-10-23 10:47:50 +07:00
--pico-dropdown-box-shadow: var(--pico-box-shadow);
2022-10-22 13:11:51 +07:00
--pico-dropdown-color: var(--pico-color);
2022-12-26 11:35:56 +07:00
--pico-dropdown-hover-background-color: #202632;
2022-10-23 10:47:50 +07:00
--pico-loading-spinner-opacity: 0.5;
2023-03-25 12:35:22 +07:00
--pico-modal-overlay-background-color: rgba(8, 9, 10, 0.75);
2022-12-26 11:35:56 +07:00
--pico-progress-background-color: #202632;
--pico-progress-color: var(--pico-primary-background);
--pico-tooltip-background-color: var(--pico-contrast-background);
2022-10-22 13:11:51 +07:00
--pico-tooltip-color: var(--pico-contrast-inverse);
2023-03-15 22:16:47 +07:00
--pico-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(98, 175, 154)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(206, 126, 123)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2022-06-12 12:35:03 +02:00
color-scheme: dark;
2019-11-27 15:31:49 +07:00
}
2022-12-29 18:16:36 +07:00
:root:not([data-theme]) input:is([type=submit],
2022-12-26 13:37:20 +07:00
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[type=file]) {
2022-12-26 11:35:56 +07:00
--pico-form-element-focus-color: var(--pico-primary-focus);
}
2023-03-28 20:34:28 +07:00
:root:not([data-theme]) details summary[role=button].contrast:not(.outline)::after {
filter: brightness(0);
}
:root:not([data-theme]) [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before {
filter: brightness(0);
}
2019-11-27 15:31:49 +07:00
}
2022-10-23 10:47:50 +07:00
[data-theme=dark] {
2022-12-26 11:35:56 +07:00
--pico-background-color: #13171f;
--pico-color: #c2c7d0;
2023-01-28 12:22:55 +07:00
--pico-text-selection-color: rgba(1, 170, 255, 0.1875);
2022-12-26 11:35:56 +07:00
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #01aaff;
2023-01-01 14:03:50 +07:00
--pico-primary-background: #0172ad;
2022-12-26 11:35:56 +07:00
--pico-primary-border: var(--pico-primary-background);
2023-04-02 11:04:23 +07:00
--pico-primary-underline: rgba(1, 170, 255, 0.5);
--pico-primary-hover: #79c0ff;
--pico-primary-hover-background: #017fc0;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
2023-01-28 12:22:55 +07:00
--pico-primary-focus: rgba(1, 170, 255, 0.375);
2022-10-23 10:47:50 +07:00
--pico-primary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-secondary: #969eaf;
2023-01-01 14:03:50 +07:00
--pico-secondary-background: #525f7a;
2022-12-26 11:35:56 +07:00
--pico-secondary-border: var(--pico-secondary-background);
2023-04-02 11:04:23 +07:00
--pico-secondary-underline: rgba(150, 158, 175, 0.5);
--pico-secondary-hover: #b3b9c5;
--pico-secondary-hover-background: #5d6b89;
--pico-secondary-hover-border: var(--pico-secondary-hover-background);
--pico-secondary-hover-underline: var(--pico-secondary-hover);
2022-12-26 11:35:56 +07:00
--pico-secondary-focus: rgba(144, 158, 190, 0.25);
2022-10-23 10:47:50 +07:00
--pico-secondary-inverse: #fff;
2022-12-26 11:35:56 +07:00
--pico-contrast: #dfe3eb;
--pico-contrast-background: #eff1f4;
--pico-contrast-border: var(--pico-contrast-background);
2023-04-02 11:04:23 +07:00
--pico-contrast-underline: rgba(223, 227, 235, 0.5);
--pico-contrast-hover: #fff;
--pico-contrast-hover-background: #fff;
--pico-contrast-hover-border: var(--pico-contrast-hover-background);
--pico-contrast-hover-underline: var(--pico-contrast-hover);
2022-12-26 11:35:56 +07:00
--pico-contrast-focus: rgba(207, 213, 226, 0.25);
2022-10-23 10:47:50 +07:00
--pico-contrast-inverse: #000;
--pico-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(0, 0, 0, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(0, 0, 0, 0.024), 0.0625rem 0.125rem 0.75rem rgba(0, 0, 0, 0.03), 0.1125rem 0.225rem 1.35rem rgba(0, 0, 0, 0.036), 0.2085rem 0.417rem 2.502rem rgba(0, 0, 0, 0.04302), 0.5rem 1rem 6rem rgba(0, 0, 0, 0.06), 0 0 0 0.0625rem rgba(0, 0, 0, 0.015);
2022-12-26 11:35:56 +07:00
--pico-h1-color: #f0f1f3;
--pico-h2-color: #e0e3e7;
--pico-h3-color: #c2c7d0;
--pico-h4-color: #b3b9c5;
--pico-h5-color: #a4acba;
--pico-h6-color: #8891a4;
--pico-mark-background-color: #014063;
--pico-mark-color: #fff;
2023-03-15 22:16:47 +07:00
--pico-ins-color: #62af9a;
--pico-del-color: #ce7e7b;
2022-10-23 10:47:50 +07:00
--pico-blockquote-border-color: var(--pico-muted-border-color);
--pico-blockquote-footer-color: var(--pico-muted-color);
--pico-button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-table-border-color: var(--pico-muted-border-color);
2022-12-26 11:35:56 +07:00
--pico-table-row-stripped-background-color: rgba(111, 120, 135, 0.0375);
--pico-code-background-color: #1a1f28;
2023-03-13 22:10:27 +07:00
--pico-code-color: #8891a4;
2022-12-26 11:35:56 +07:00
--pico-code-kbd-background-color: var(--pico-color);
--pico-code-kbd-color: var(--pico-background-color);
--pico-form-element-background-color: #1c212c;
--pico-form-element-selected-background-color: #2a3140;
2022-12-26 11:35:56 +07:00
--pico-form-element-border-color: #2a3140;
--pico-form-element-color: #e0e3e7;
--pico-form-element-placeholder-color: #8891a4;
--pico-form-element-active-background-color: #1a1f28;
--pico-form-element-active-border-color: var(--pico-primary-border);
--pico-form-element-focus-color: var(--pico-primary-border);
--pico-form-element-disabled-background-color: var(--pico-form-element-background-color);
--pico-form-element-disabled-border-color: var(--pico-form-element-border-color);
2022-10-23 10:47:50 +07:00
--pico-form-element-disabled-opacity: 0.5;
2023-03-15 22:16:47 +07:00
--pico-form-element-invalid-border-color: #964a50;
--pico-form-element-invalid-active-border-color: #b7403b;
2022-12-26 11:35:56 +07:00
--pico-form-element-invalid-focus-color: var(--pico-form-element-invalid-active-border-color);
2023-03-15 22:16:47 +07:00
--pico-form-element-valid-border-color: #2a7b6f;
--pico-form-element-valid-active-border-color: #16896a;
2022-12-26 11:35:56 +07:00
--pico-form-element-valid-focus-color: var(--pico-form-element-valid-active-border-color);
--pico-switch-background-color: #333c4e;
2022-10-23 10:47:50 +07:00
--pico-switch-color: var(--pico-primary-inverse);
2022-12-26 11:35:56 +07:00
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
2022-10-23 10:47:50 +07:00
--pico-range-thumb-border-color: var(--pico-background-color);
2022-12-26 11:35:56 +07:00
--pico-range-thumb-color: var(--pico-secondary-background);
2023-03-18 08:23:23 +07:00
--pico-range-thumb-active-color: var(--pico-primary-background);
2022-10-23 10:47:50 +07:00
--pico-accordion-border-color: var(--pico-muted-border-color);
2023-01-01 14:03:50 +07:00
--pico-accordion-active-summary-color: var(--pico-primary-hover);
2022-10-23 10:47:50 +07:00
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
2022-12-26 11:35:56 +07:00
--pico-card-background-color: #181c25;
2022-10-23 10:47:50 +07:00
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-box-shadow: var(--pico-box-shadow);
2023-03-18 13:00:50 +07:00
--pico-card-sectioning-background-color: #1a1f28;
2022-12-26 11:35:56 +07:00
--pico-dropdown-background-color: #181c25;
--pico-dropdown-border-color: #202632;
2022-10-23 10:47:50 +07:00
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
2022-12-26 11:35:56 +07:00
--pico-dropdown-hover-background-color: #202632;
2022-10-23 10:47:50 +07:00
--pico-loading-spinner-opacity: 0.5;
2023-03-25 12:35:22 +07:00
--pico-modal-overlay-background-color: rgba(8, 9, 10, 0.75);
2022-12-26 11:35:56 +07:00
--pico-progress-background-color: #202632;
--pico-progress-color: var(--pico-primary-background);
--pico-tooltip-background-color: var(--pico-contrast-background);
2022-10-23 10:47:50 +07:00
--pico-tooltip-color: var(--pico-contrast-inverse);
2023-03-15 22:16:47 +07:00
--pico-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(98, 175, 154)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
--pico-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(206, 126, 123)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
2022-10-23 10:47:50 +07:00
color-scheme: dark;
}
2022-12-26 13:37:20 +07:00
[data-theme=dark] input:is([type=submit],
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[type=file]) {
2022-12-26 11:35:56 +07:00
--pico-form-element-focus-color: var(--pico-primary-focus);
}
2023-03-28 20:34:28 +07:00
[data-theme=dark] details summary[role=button].contrast:not(.outline)::after {
filter: brightness(0);
}
[data-theme=dark] [aria-busy=true]:not(input, select, textarea).contrast:is(button,
[type=submit],
[type=button],
[type=reset],
[role=button]):not(.outline)::before {
filter: brightness(0);
}
2022-10-23 10:47:50 +07:00
progress,
[type=checkbox],
[type=radio],
[type=range] {
accent-color: var(--pico-primary);
}
2019-11-27 15:31:49 +07:00
/**
* Document
* Content-box & Responsive typography
*/
*,
*::before,
*::after {
box-sizing: border-box;
2022-03-06 15:12:55 +07:00
background-repeat: no-repeat;
2019-11-27 15:31:49 +07:00
}
::before,
::after {
text-decoration: inherit;
vertical-align: inherit;
}
2022-03-06 15:12:55 +07:00
:where(:root) {
-webkit-tap-highlight-color: transparent;
2019-11-27 15:31:49 +07:00
-webkit-text-size-adjust: 100%;
2023-03-12 09:56:59 +07:00
-moz-text-size-adjust: 100%;
2022-03-06 15:12:55 +07:00
text-size-adjust: 100%;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-background-color);
color: var(--pico-color);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
line-height: var(--pico-line-height);
font-family: var(--pico-font-family);
2022-12-26 11:35:56 +07:00
text-underline-offset: var(--pico-text-underline-offset);
2022-09-11 17:24:21 +07:00
text-rendering: optimizeLegibility;
2022-03-06 15:12:55 +07:00
overflow-wrap: break-word;
cursor: default;
2021-11-02 02:54:52 +07:00
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
2019-11-27 15:31:49 +07:00
}
/**
2022-10-23 10:47:50 +07:00
* Landmarks
2019-11-27 15:31:49 +07:00
*/
body {
width: 100%;
margin: 0;
}
2022-10-23 10:47:50 +07:00
main {
display: block;
}
2019-11-27 15:31:49 +07:00
body > header,
body > main,
body > footer {
2022-10-22 13:11:51 +07:00
padding: var(--pico-block-spacing-vertical) 0;
2019-11-27 15:31:49 +07:00
}
/**
2022-10-23 10:47:50 +07:00
* Container
*/
2019-11-27 15:31:49 +07:00
.container,
.container-fluid {
width: 100%;
margin-right: auto;
margin-left: auto;
2022-10-22 13:11:51 +07:00
padding-right: var(--pico-spacing);
padding-left: var(--pico-spacing);
2019-11-27 15:31:49 +07:00
}
@media (min-width: 576px) {
.container {
max-width: 510px;
2019-11-27 15:31:49 +07:00
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 768px) {
.container {
max-width: 700px;
}
}
2023-02-20 23:47:39 +07:00
@media (min-width: 1024px) {
2019-11-27 15:31:49 +07:00
.container {
2023-02-20 23:47:39 +07:00
max-width: 950px;
2019-11-27 15:31:49 +07:00
}
}
2023-02-20 23:47:39 +07:00
@media (min-width: 1280px) {
2019-11-27 15:31:49 +07:00
.container {
2023-02-20 23:47:39 +07:00
max-width: 1200px;
2019-11-27 15:31:49 +07:00
}
}
2023-03-20 20:31:27 +07:00
@media (min-width: 1536px) {
.container {
max-width: 1450px;
}
}
2019-11-27 15:31:49 +07:00
/**
* Section
*/
section {
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-block-spacing-vertical);
2019-11-27 15:31:49 +07:00
}
/**
2022-10-23 10:47:50 +07:00
* Grid
* Minimal grid system with auto-layout columns
*/
2019-11-27 15:31:49 +07:00
.grid {
2023-04-02 17:40:20 +07:00
grid-column-gap: var(--pico-grid-column-gap);
grid-row-gap: var(--pico-grid-row-gap);
display: grid;
grid-template-columns: 1fr;
2019-11-27 15:31:49 +07:00
margin: 0;
}
2023-04-02 17:40:20 +07:00
@media (min-width: 768px) {
2019-11-27 15:31:49 +07:00
.grid {
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
}
}
.grid > * {
min-width: 0;
}
/**
* Horizontal scroller (<figure>)
*/
figure {
display: block;
2019-12-03 09:51:37 +07:00
margin: 0;
2019-11-27 15:31:49 +07:00
padding: 0;
overflow-x: auto;
}
figure figcaption {
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-spacing) * 0.5) 0;
color: var(--pico-muted-color);
2019-11-27 15:31:49 +07:00
}
/**
2022-10-23 10:47:50 +07:00
* Link
2019-11-27 15:31:49 +07:00
*/
2022-03-06 09:37:03 +07:00
a,
[role=link] {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-primary);
--pico-background-color: transparent;
2022-12-26 11:35:56 +07:00
--pico-underline: var(--pico-primary-underline);
2021-07-02 16:54:41 +07:00
outline: none;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-background-color);
color: var(--pico-color);
-webkit-text-decoration: var(--pico-text-decoration);
text-decoration: var(--pico-text-decoration);
2022-12-26 11:35:56 +07:00
text-decoration-color: var(--pico-underline);
text-underline-offset: 0.125em;
2022-10-22 13:11:51 +07:00
transition: background-color var(--pico-transition), color var(--pico-transition), box-shadow var(--pico-transition), -webkit-text-decoration var(--pico-transition);
transition: background-color var(--pico-transition), color var(--pico-transition), text-decoration var(--pico-transition), box-shadow var(--pico-transition);
transition: background-color var(--pico-transition), color var(--pico-transition), text-decoration var(--pico-transition), box-shadow var(--pico-transition), -webkit-text-decoration var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2023-04-02 10:36:52 +07:00
a:is([aria-current], :hover, :active, :focus),
[role=link]:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-primary-hover);
2023-04-02 11:04:23 +07:00
--pico-underline: var(--pico-primary-hover-underline);
2022-10-22 13:11:51 +07:00
--pico-text-decoration: underline;
2019-11-27 15:31:49 +07:00
}
2023-01-01 14:03:50 +07:00
a:focus-visible,
[role=link]:focus-visible {
2023-01-28 12:22:55 +07:00
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
2019-11-27 15:31:49 +07:00
}
2022-03-06 09:37:03 +07:00
a.secondary,
[role=link].secondary {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary);
2022-12-26 11:35:56 +07:00
--pico-underline: var(--pico-secondary-underline);
2019-11-27 15:31:49 +07:00
}
2023-04-02 10:36:52 +07:00
a.secondary:is([aria-current], :hover, :active, :focus),
[role=link].secondary:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary-hover);
2023-04-02 11:04:23 +07:00
--pico-underline: var(--pico-secondary-hover-underline);
2019-11-27 15:31:49 +07:00
}
2022-03-06 09:37:03 +07:00
a.contrast,
[role=link].contrast {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast);
2022-12-26 11:35:56 +07:00
--pico-underline: var(--pico-contrast-underline);
}
2023-04-02 10:36:52 +07:00
a.contrast:is([aria-current], :hover, :active, :focus),
[role=link].contrast:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast-hover);
2023-04-02 11:04:23 +07:00
--pico-underline: var(--pico-contrast-hover-underline);
}
2023-03-12 12:12:18 +07:00
a[role=button] {
display: inline-block;
}
2022-10-23 10:47:50 +07:00
/**
* Typography
*/
b,
strong {
font-weight: bolder;
}
sub,
sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
address,
blockquote,
dl,
ol,
p,
pre,
table,
ul {
margin-top: 0;
margin-bottom: var(--pico-typography-spacing-vertical);
color: var(--pico-color);
font-style: normal;
font-weight: var(--pico-font-weight);
}
2019-11-27 15:31:49 +07:00
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-typography-spacing-vertical);
color: var(--pico-color);
font-weight: var(--pico-font-weight);
font-size: var(--pico-font-size);
2023-03-05 09:20:24 +07:00
line-height: var(--pico-line-height);
2022-10-22 13:11:51 +07:00
font-family: var(--pico-font-family);
2019-11-27 15:31:49 +07:00
}
h1 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h1-color);
2019-11-27 15:31:49 +07:00
}
h2 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h2-color);
2019-11-27 15:31:49 +07:00
}
h3 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h3-color);
2019-11-27 15:31:49 +07:00
}
h4 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h4-color);
2019-11-27 15:31:49 +07:00
}
h5 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h5-color);
2019-11-27 15:31:49 +07:00
}
h6 {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-h6-color);
2019-11-27 15:31:49 +07:00
}
2022-12-29 18:16:36 +07:00
:where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
margin-top: var(--pico-typography-spacing-top);
2020-09-12 10:38:23 +07:00
}
2023-02-20 23:47:39 +07:00
p {
margin-bottom: var(--pico-typography-spacing-vertical);
}
2023-02-19 10:30:07 +07:00
hgroup {
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-typography-spacing-vertical);
2020-09-12 10:38:23 +07:00
}
2023-02-19 10:30:07 +07:00
hgroup > * {
2023-02-20 23:47:39 +07:00
margin-top: 0;
margin-bottom: 0;
2020-09-12 10:38:23 +07:00
}
2023-02-19 12:23:18 +07:00
hgroup > *:not(:first-child):last-child {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-muted-color);
--pico-font-weight: unset;
2021-07-02 16:54:41 +07:00
font-size: 1rem;
2021-11-02 02:54:52 +07:00
font-family: unset;
2020-09-12 10:38:23 +07:00
}
2023-04-02 10:36:52 +07:00
:where(ol, ul) li {
2022-10-22 13:11:51 +07:00
margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.25);
2019-11-27 15:31:49 +07:00
}
2023-04-02 10:36:52 +07:00
:where(dl, ol, ul) :where(dl, ol, ul) {
2022-03-06 12:11:41 +07:00
margin: 0;
2022-10-22 13:11:51 +07:00
margin-top: calc(var(--pico-typography-spacing-vertical) * 0.25);
2022-03-06 12:11:41 +07:00
}
2019-11-27 15:31:49 +07:00
ul li {
list-style: square;
}
mark {
2021-09-12 10:58:05 +07:00
padding: 0.125rem 0.25rem;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-mark-background-color);
color: var(--pico-mark-color);
2021-12-19 17:22:47 -05:00
vertical-align: baseline;
2019-11-27 15:31:49 +07:00
}
blockquote {
display: block;
2022-10-22 13:11:51 +07:00
margin: var(--pico-typography-spacing-vertical) 0;
padding: var(--pico-spacing);
2021-10-24 02:06:00 +07:00
border-right: none;
2022-10-22 13:11:51 +07:00
border-left: 0.25rem solid var(--pico-blockquote-border-color);
-webkit-border-start: 0.25rem solid var(--pico-blockquote-border-color);
border-inline-start: 0.25rem solid var(--pico-blockquote-border-color);
2021-11-02 02:54:52 +07:00
-webkit-border-end: none;
border-inline-end: none;
2019-11-27 15:31:49 +07:00
}
blockquote footer {
2022-10-22 13:11:51 +07:00
margin-top: calc(var(--pico-typography-spacing-vertical) * 0.5);
color: var(--pico-blockquote-footer-color);
2019-11-27 15:31:49 +07:00
}
abbr[title] {
border-bottom: 1px dotted;
text-decoration: none;
cursor: help;
}
ins {
2022-10-22 13:11:51 +07:00
color: var(--pico-ins-color);
2019-11-27 15:31:49 +07:00
text-decoration: none;
}
del {
2022-10-22 13:11:51 +07:00
color: var(--pico-del-color);
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
::-moz-selection {
2023-01-28 12:22:55 +07:00
background-color: var(--pico-text-selection-color);
2021-09-12 10:58:05 +07:00
}
::selection {
2023-01-28 12:22:55 +07:00
background-color: var(--pico-text-selection-color);
}
/**
* Embedded content
*/
2022-03-06 15:12:55 +07:00
:where(audio, canvas, iframe, img, svg, video) {
vertical-align: middle;
}
audio,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
2022-03-06 15:12:55 +07:00
:where(iframe) {
border-style: none;
}
img {
max-width: 100%;
height: auto;
border-style: none;
}
2022-03-06 15:12:55 +07:00
:where(svg:not([fill])) {
fill: currentColor;
}
svg:not(:root) {
overflow: hidden;
}
/**
* Button
*/
button {
margin: 0;
overflow: visible;
font-family: inherit;
text-transform: none;
}
button,
2023-03-12 12:12:18 +07:00
[type=submit],
2023-04-02 10:36:52 +07:00
[type=reset],
[type=button] {
-webkit-appearance: button;
}
2022-03-06 12:17:34 +07:00
button,
2023-03-12 12:12:18 +07:00
[type=submit],
2023-04-02 10:36:52 +07:00
[type=reset],
[type=button],
[type=file]::file-selector-button,
2022-03-06 12:17:34 +07:00
[role=button] {
2022-12-26 11:35:56 +07:00
--pico-background-color: var(--pico-primary-background);
--pico-border-color: var(--pico-primary-border);
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-primary-inverse);
--pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
outline: none;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-background-color);
box-shadow: var(--pico-box-shadow);
color: var(--pico-color);
font-weight: var(--pico-font-weight);
2021-11-02 02:54:52 +07:00
font-size: 1rem;
2022-10-22 13:11:51 +07:00
line-height: var(--pico-line-height);
text-align: center;
2023-03-12 11:39:53 +07:00
text-decoration: none;
cursor: pointer;
2023-01-01 14:03:50 +07:00
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
2022-10-22 13:11:51 +07:00
transition: background-color var(--pico-transition), border-color var(--pico-transition), color var(--pico-transition), box-shadow var(--pico-transition);
}
2023-04-02 10:36:52 +07:00
button:is([aria-current], :hover, :active, :focus),
[type=submit]:is([aria-current], :hover, :active, :focus),
[type=reset]:is([aria-current], :hover, :active, :focus),
[type=button]:is([aria-current], :hover, :active, :focus),
[type=file]::file-selector-button:is([aria-current], :hover, :active, :focus),
[role=button]:is([aria-current], :hover, :active, :focus) {
2023-04-02 11:04:23 +07:00
--pico-background-color: var(--pico-primary-hover-background);
--pico-border-color: var(--pico-primary-hover-border);
2022-10-22 13:11:51 +07:00
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
--pico-color: var(--pico-primary-inverse);
}
2022-03-06 12:17:34 +07:00
button:focus,
2023-03-12 12:12:18 +07:00
[type=submit]:focus,
2023-04-02 10:36:52 +07:00
[type=reset]:focus,
[type=button]:focus,
[type=file]::file-selector-button:focus,
2022-03-06 12:17:34 +07:00
[role=button]:focus {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
}
2023-03-12 12:12:18 +07:00
[type=submit],
2023-04-02 10:36:52 +07:00
[type=reset],
[type=button] {
2023-03-12 12:12:18 +07:00
margin-bottom: var(--pico-spacing);
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).secondary,
[type=reset],
[type=file]::file-selector-button {
2022-12-26 11:35:56 +07:00
--pico-background-color: var(--pico-secondary-background);
--pico-border-color: var(--pico-secondary-border);
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary-inverse);
2021-07-02 16:54:41 +07:00
cursor: pointer;
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).secondary:is([aria-current], :hover, :active, :focus),
[type=reset]:is([aria-current], :hover, :active, :focus),
[type=file]::file-selector-button:is([aria-current], :hover, :active, :focus) {
2023-04-02 11:04:23 +07:00
--pico-background-color: var(--pico-secondary-hover-background);
--pico-border-color: var(--pico-secondary-hover-border);
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary-inverse);
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).secondary:focus,
[type=reset]:focus,
[type=file]::file-selector-button:focus {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
}
2022-03-06 12:17:34 +07:00
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).contrast {
2022-12-26 11:35:56 +07:00
--pico-background-color: var(--pico-contrast-background);
--pico-border-color: var(--pico-contrast-border);
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast-inverse);
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).contrast:is([aria-current], :hover, :active, :focus) {
2023-04-02 11:04:23 +07:00
--pico-background-color: var(--pico-contrast-hover-background);
--pico-border-color: var(--pico-contrast-hover-border);
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast-inverse);
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).contrast:focus {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
}
2022-03-06 12:17:34 +07:00
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline,
[type=reset].outline {
2022-10-22 13:11:51 +07:00
--pico-background-color: transparent;
--pico-color: var(--pico-primary);
2022-12-26 11:35:56 +07:00
--pico-border-color: currentColor;
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline:is([aria-current], :hover, :active, :focus),
[type=reset].outline:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-background-color: transparent;
--pico-color: var(--pico-primary-hover);
}
2022-03-06 12:17:34 +07:00
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline.secondary,
[type=reset].outline {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary);
2022-12-26 11:35:56 +07:00
--pico-border-color: currentColor;
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline.secondary:is([aria-current], :hover, :active, :focus),
[type=reset].outline:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-secondary-hover);
}
2022-03-06 12:17:34 +07:00
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline.contrast {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast);
}
2023-04-02 10:36:52 +07:00
:is(button, [type=submit], [type=button], [role=button]).outline.contrast:is([aria-current], :hover, :active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-contrast-hover);
2021-07-02 16:54:41 +07:00
}
2023-04-02 10:36:52 +07:00
:where(button, [type=submit], [type=reset], [type=button], [role=button])[disabled],
:where(fieldset[disabled]) :is(button, [type=submit], [type=button], [type=reset], [role=button]) {
2021-09-12 10:58:05 +07:00
opacity: 0.5;
2021-07-02 16:54:41 +07:00
pointer-events: none;
}
2019-11-27 15:31:49 +07:00
/**
2022-10-22 11:44:10 +07:00
* Table
*/
:where(table) {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
text-indent: 0;
}
th,
td {
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
2023-03-18 08:23:23 +07:00
background-color: var(--pico-background-color);
2022-10-22 13:11:51 +07:00
color: var(--pico-color);
font-weight: var(--pico-font-weight);
2022-10-22 11:44:10 +07:00
text-align: left;
text-align: start;
}
tfoot th,
tfoot td {
2022-10-22 13:11:51 +07:00
border-top: var(--pico-border-width) solid var(--pico-table-border-color);
2022-10-22 11:44:10 +07:00
border-bottom: 0;
}
2023-03-18 08:23:23 +07:00
table.striped tbody tr:nth-child(odd) th,
table.striped tbody tr:nth-child(odd) td {
2022-10-22 13:11:51 +07:00
background-color: var(--pico-table-row-stripped-background-color);
2022-10-22 11:44:10 +07:00
}
/**
* Code
*/
2023-03-19 10:04:19 +07:00
pre,
2022-10-22 11:44:10 +07:00
code,
kbd,
samp {
font-size: 0.875em;
2022-10-22 13:11:51 +07:00
font-family: var(--pico-font-family);
2022-10-22 11:44:10 +07:00
}
2023-03-19 10:04:19 +07:00
pre code {
font-size: inherit;
font-family: inherit;
}
2022-10-22 11:44:10 +07:00
pre {
-ms-overflow-style: scrollbar;
overflow: auto;
}
pre,
code,
kbd {
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background: var(--pico-code-background-color);
color: var(--pico-code-color);
font-weight: var(--pico-font-weight);
2022-10-22 11:44:10 +07:00
line-height: initial;
}
code,
kbd {
display: inline-block;
2023-03-13 22:10:27 +07:00
padding: 0.375rem;
2022-10-22 11:44:10 +07:00
}
pre {
display: block;
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-spacing);
2022-10-22 11:44:10 +07:00
overflow-x: auto;
}
pre > code {
display: block;
2022-10-22 13:11:51 +07:00
padding: var(--pico-spacing);
2022-10-22 11:44:10 +07:00
background: none;
2022-10-22 13:11:51 +07:00
line-height: var(--pico-line-height);
2022-10-22 11:44:10 +07:00
}
kbd {
2022-10-22 13:11:51 +07:00
background-color: var(--pico-code-kbd-background-color);
color: var(--pico-code-kbd-color);
2022-10-22 11:44:10 +07:00
vertical-align: baseline;
}
/**
* Miscs
*/
hr {
height: 0;
margin: var(--pico-typography-spacing-vertical) 0;
2022-10-22 11:44:10 +07:00
border: 0;
2022-10-22 13:11:51 +07:00
border-top: 1px solid var(--pico-muted-border-color);
2022-10-22 11:44:10 +07:00
color: inherit;
}
[hidden],
template {
display: none !important;
}
canvas {
display: inline-block;
}
/**
* Basics form elements
2019-11-27 15:31:49 +07:00
*/
input,
optgroup,
select,
textarea {
margin: 0;
font-size: 1rem;
2022-10-22 13:11:51 +07:00
line-height: var(--pico-line-height);
2021-11-02 02:54:52 +07:00
font-family: inherit;
letter-spacing: inherit;
2019-11-27 15:31:49 +07:00
}
input {
overflow: visible;
}
select {
text-transform: none;
}
legend {
max-width: 100%;
padding: 0;
color: inherit;
white-space: normal;
}
textarea {
overflow: auto;
}
2021-09-12 10:58:05 +07:00
[type=checkbox],
[type=radio] {
2019-11-27 15:31:49 +07:00
padding: 0;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
2019-11-27 15:31:49 +07:00
height: auto;
}
2021-09-12 10:58:05 +07:00
[type=search] {
2019-11-27 15:31:49 +07:00
-webkit-appearance: textfield;
outline-offset: -2px;
}
2021-09-12 10:58:05 +07:00
[type=search]::-webkit-search-decoration {
2019-11-27 15:31:49 +07:00
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
::-moz-focus-inner {
padding: 0;
border-style: none;
}
:-moz-focusring {
2021-07-02 16:54:41 +07:00
outline: none;
}
:-moz-ui-invalid {
box-shadow: none;
}
::-ms-expand {
display: none;
}
2021-09-12 10:58:05 +07:00
[type=file],
[type=range] {
padding: 0;
border-width: 0;
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range]) {
2022-10-22 13:11:51 +07:00
height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
}
2019-11-27 15:31:49 +07:00
fieldset {
margin: 0;
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-spacing);
2019-11-27 15:31:49 +07:00
padding: 0;
border: 0;
}
label,
fieldset legend {
display: block;
2023-03-15 22:16:47 +07:00
margin-bottom: calc(var(--pico-spacing) * 0.375);
2022-10-22 13:11:51 +07:00
font-weight: var(--pico-form-label-font-weight, var(--pico-font-weight));
}
2023-03-15 22:16:47 +07:00
fieldset legend {
margin-bottom: calc(var(--pico-spacing) * 0.5);
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio]),
2019-11-27 15:31:49 +07:00
select,
2021-07-02 16:54:41 +07:00
textarea {
2019-11-27 15:31:49 +07:00
width: 100%;
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file]),
2019-11-27 15:31:49 +07:00
select,
textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
2022-10-22 13:11:51 +07:00
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
}
input,
select,
textarea {
2022-10-22 13:11:51 +07:00
--pico-background-color: var(--pico-form-element-background-color);
--pico-border-color: var(--pico-form-element-border-color);
--pico-color: var(--pico-form-element-color);
--pico-box-shadow: none;
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: var(--pico-border-radius);
2019-11-27 15:31:49 +07:00
outline: none;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-background-color);
box-shadow: var(--pico-box-shadow);
color: var(--pico-color);
font-weight: var(--pico-font-weight);
transition: background-color var(--pico-transition), border-color var(--pico-transition), color var(--pico-transition), box-shadow var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2022-12-26 13:37:20 +07:00
input:not([type=submit],
[type=button],
[type=reset],
[type=checkbox],
[type=radio],
[readonly]):is(:active, :focus),
2022-03-06 11:18:12 +07:00
:where(select, textarea):is(:active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-background-color: var(--pico-form-element-active-background-color);
2019-11-27 15:31:49 +07:00
}
2022-09-11 18:30:49 +07:00
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
2022-03-06 11:18:12 +07:00
:where(select, textarea):is(:active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-active-border-color);
2020-09-29 08:38:35 +07:00
}
2022-12-26 13:37:20 +07:00
input:not([type=submit],
[type=button],
[type=reset],
[type=range],
[type=file],
[readonly]):focus,
2022-12-26 11:35:56 +07:00
:where(select, textarea):focus {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
}
2022-09-11 18:30:49 +07:00
input:not([type=submit], [type=button], [type=reset])[disabled],
2019-11-27 15:31:49 +07:00
select[disabled],
2022-03-06 18:25:58 +07:00
textarea[disabled],
2023-03-19 10:04:19 +07:00
label[aria-disabled=true],
2022-09-11 18:30:49 +07:00
:where(fieldset[disabled]) :is(input:not([type=submit], [type=button], [type=reset]), select, textarea) {
2022-10-22 13:11:51 +07:00
--pico-background-color: var(--pico-form-element-disabled-background-color);
--pico-border-color: var(--pico-form-element-disabled-border-color);
opacity: var(--pico-form-element-disabled-opacity);
2022-03-06 18:25:58 +07:00
pointer-events: none;
2019-11-27 15:31:49 +07:00
}
2023-03-19 10:04:19 +07:00
label[aria-disabled=true] input[disabled] {
opacity: 1;
}
2022-12-26 13:37:20 +07:00
:where(input, select, textarea):not([type=checkbox],
[type=radio],
[type=date],
[type=datetime-local],
[type=month],
[type=time],
2023-03-18 08:23:23 +07:00
[type=week],
[type=range])[aria-invalid] {
2022-10-22 13:11:51 +07:00
padding-right: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(--pico-form-element-spacing-horizontal);
-webkit-padding-start: var(--pico-form-element-spacing-horizontal) !important;
padding-inline-start: var(--pico-form-element-spacing-horizontal) !important;
-webkit-padding-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem) !important;
padding-inline-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem) !important;
2021-09-12 10:58:05 +07:00
background-position: center right 0.75rem;
2019-11-27 15:31:49 +07:00
background-size: 1rem auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2019-11-27 15:31:49 +07:00
}
2022-12-26 13:37:20 +07:00
:where(input, select, textarea):not([type=checkbox],
[type=radio],
[type=date],
[type=datetime-local],
[type=month],
[type=time],
2023-03-18 08:23:23 +07:00
[type=week],
[type=range])[aria-invalid=false]:not(select) {
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-valid);
}
2022-12-26 13:37:20 +07:00
:where(input, select, textarea):not([type=checkbox],
[type=radio],
[type=date],
[type=datetime-local],
[type=month],
[type=time],
2023-03-18 08:23:23 +07:00
[type=week],
[type=range])[aria-invalid=true]:not(select) {
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-invalid);
}
2022-03-06 11:18:12 +07:00
:where(input, select, textarea)[aria-invalid=false] {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-valid-border-color);
2019-11-27 15:31:49 +07:00
}
2022-03-06 12:26:25 +07:00
:where(input, select, textarea)[aria-invalid=false]:is(:active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-valid-active-border-color) !important;
2023-03-15 22:16:47 +07:00
}
:where(input, select, textarea)[aria-invalid=false]:is(:active, :focus):not([type=checkbox], [type=radio]) {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-valid-focus-color) !important;
2021-07-02 16:54:41 +07:00
}
2022-03-06 11:18:12 +07:00
:where(input, select, textarea)[aria-invalid=true] {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-invalid-border-color);
2019-11-28 07:20:36 +07:00
}
2022-03-06 12:26:25 +07:00
:where(input, select, textarea)[aria-invalid=true]:is(:active, :focus) {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-invalid-active-border-color) !important;
2023-03-15 22:16:47 +07:00
}
:where(input, select, textarea)[aria-invalid=true]:is(:active, :focus):not([type=checkbox], [type=radio]) {
2022-10-22 13:11:51 +07:00
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-invalid-focus-color) !important;
2021-07-02 16:54:41 +07:00
}
2022-09-11 18:30:49 +07:00
[dir=rtl] :where(input, select, textarea):not([type=checkbox], [type=radio]):is([aria-invalid], [aria-invalid=true], [aria-invalid=false]) {
2021-10-24 02:06:00 +07:00
background-position: center left 0.75rem;
}
2021-07-02 16:54:41 +07:00
input::placeholder,
input::-webkit-input-placeholder,
textarea::placeholder,
textarea::-webkit-input-placeholder,
select:invalid {
2022-10-22 13:11:51 +07:00
color: var(--pico-form-element-placeholder-color);
2021-07-02 16:54:41 +07:00
opacity: 1;
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio]),
select,
textarea {
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-spacing);
}
2019-11-27 15:31:49 +07:00
select::-ms-expand {
border: 0;
background-color: transparent;
}
2022-09-11 18:30:49 +07:00
select:not([multiple], [size]) {
2022-10-22 13:11:51 +07:00
padding-right: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem);
padding-left: var(--pico-form-element-spacing-horizontal);
-webkit-padding-start: var(--pico-form-element-spacing-horizontal);
padding-inline-start: var(--pico-form-element-spacing-horizontal);
-webkit-padding-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem);
padding-inline-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem);
background-image: var(--pico-icon-chevron);
2021-09-12 10:58:05 +07:00
background-position: center right 0.75rem;
2019-11-27 15:31:49 +07:00
background-size: 1rem auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2019-11-27 15:31:49 +07:00
}
select[multiple] option:checked {
background: var(--pico-form-element-selected-background-color);
}
2019-11-27 15:31:49 +07:00
2022-09-11 18:30:49 +07:00
[dir=rtl] select:not([multiple], [size]) {
2021-10-24 02:06:00 +07:00
background-position: center left 0.75rem;
}
2023-03-13 01:38:56 +07:00
textarea {
display: block;
resize: vertical;
}
textarea[aria-invalid] {
--pico-icon-height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
background-position: top right 0.75rem !important;
background-size: 1rem var(--pico-icon-height) !important;
}
2022-03-06 11:18:12 +07:00
:where(input, select, textarea) + small {
2021-07-02 16:54:41 +07:00
display: block;
width: 100%;
2023-03-13 01:38:56 +07:00
margin-top: calc(var(--pico-spacing) * -0.75);
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-spacing);
color: var(--pico-muted-color);
}
2022-12-29 18:16:36 +07:00
:where(input, select, textarea)[aria-invalid=false] + small {
color: var(--pico-ins-color);
}
:where(input, select, textarea)[aria-invalid=true] + small {
color: var(--pico-del-color);
}
2022-03-06 11:18:12 +07:00
label > :where(input, select, textarea) {
2022-10-22 13:11:51 +07:00
margin-top: calc(var(--pico-spacing) * 0.25);
}
/**
2022-10-22 11:44:10 +07:00
* Checkboxes, Radios and Switches
*/
2023-03-15 22:16:47 +07:00
label:has([type=checkbox], [type=radio]) {
width: -moz-fit-content;
width: fit-content;
cursor: pointer;
}
2021-09-12 10:58:05 +07:00
[type=checkbox],
[type=radio] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 1.25em;
height: 1.25em;
2021-09-12 10:58:05 +07:00
margin-top: -0.125em;
2023-03-15 22:16:47 +07:00
-webkit-margin-end: 0.5em;
margin-inline-end: 0.5em;
2022-10-22 13:11:51 +07:00
border-width: var(--pico-border-width);
vertical-align: middle;
2019-11-27 15:31:49 +07:00
cursor: pointer;
}
2021-09-12 10:58:05 +07:00
[type=checkbox]::-ms-check,
[type=radio]::-ms-check {
2019-11-27 15:31:49 +07:00
display: none;
}
2021-09-12 10:58:05 +07:00
[type=checkbox]:checked, [type=checkbox]:checked:active, [type=checkbox]:checked:focus,
[type=radio]:checked,
[type=radio]:checked:active,
[type=radio]:checked:focus {
2022-12-26 11:35:56 +07:00
--pico-background-color: var(--pico-primary-background);
--pico-border-color: var(--pico-primary-border);
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-checkbox);
2019-11-27 15:31:49 +07:00
background-position: center;
2021-09-12 10:58:05 +07:00
background-size: 0.75em auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=checkbox] ~ label,
[type=radio] ~ label {
2019-11-27 15:31:49 +07:00
display: inline-block;
margin-bottom: 0;
cursor: pointer;
}
2023-03-15 22:16:47 +07:00
[type=checkbox] ~ label:not(:last-of-type),
[type=radio] ~ label:not(:last-of-type) {
-webkit-margin-end: 1em;
margin-inline-end: 1em;
}
2019-11-27 15:31:49 +07:00
2021-09-12 10:58:05 +07:00
[type=checkbox]:indeterminate {
2022-12-26 11:35:56 +07:00
--pico-background-color: var(--pico-primary-background);
--pico-border-color: var(--pico-primary-border);
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-minus);
2021-07-02 16:54:41 +07:00
background-position: center;
2021-09-12 10:58:05 +07:00
background-size: 0.75em auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2021-07-02 16:54:41 +07:00
}
2021-09-12 10:58:05 +07:00
[type=radio] {
2019-11-27 15:31:49 +07:00
border-radius: 50%;
}
2021-09-12 10:58:05 +07:00
[type=radio]:checked, [type=radio]:checked:active, [type=radio]:checked:focus {
2022-10-22 13:11:51 +07:00
--pico-background-color: var(--pico-primary-inverse);
2021-09-12 10:58:05 +07:00
border-width: 0.35em;
2019-11-27 15:31:49 +07:00
background-image: none;
}
2021-09-12 10:58:05 +07:00
[type=checkbox][role=switch] {
2022-10-22 13:11:51 +07:00
--pico-background-color: var(--pico-switch-background-color);
--pico-color: var(--pico-switch-color);
width: 2.25em;
height: 1.25em;
2022-10-22 13:11:51 +07:00
border: var(--pico-border-width) solid var(--pico-border-color);
border-radius: 1.25em;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-background-color);
line-height: 1.25em;
2019-11-27 15:31:49 +07:00
}
2023-03-15 22:16:47 +07:00
[type=checkbox][role=switch]:not([aria-invalid]) {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-switch-background-color);
2021-07-02 16:54:41 +07:00
}
2021-09-12 10:58:05 +07:00
[type=checkbox][role=switch]:before {
2019-11-27 15:31:49 +07:00
display: block;
2022-10-22 13:11:51 +07:00
width: calc(1.25em - (var(--pico-border-width) * 2));
2019-11-27 15:31:49 +07:00
height: 100%;
border-radius: 50%;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-color);
2021-09-12 10:58:05 +07:00
content: "";
2019-11-27 15:31:49 +07:00
transition: margin 0.1s ease-in-out;
}
2023-03-15 22:16:47 +07:00
[type=checkbox][role=switch]:focus {
--pico-background-color: var(--pico-switch-background-color);
--pico-border-color: var(--pico-switch-background-color);
}
2021-09-12 10:58:05 +07:00
[type=checkbox][role=switch]:checked {
2023-03-15 22:16:47 +07:00
--pico-background-color: var(--pico-switch-checked-background-color);
--pico-border-color: var(--pico-switch-checked-background-color);
2019-11-27 15:31:49 +07:00
background-image: none;
}
2021-09-12 10:58:05 +07:00
[type=checkbox][role=switch]:checked::before {
2022-10-22 13:11:51 +07:00
-webkit-margin-start: calc(1.125em - var(--pico-border-width));
margin-inline-start: calc(1.125em - var(--pico-border-width));
2019-11-27 15:31:49 +07:00
}
2023-03-15 22:16:47 +07:00
[type=checkbox][role=switch][disabled] {
--pico-background-color: var(--pico-border-color);
}
[type=checkbox][aria-invalid=false]:checked, [type=checkbox][aria-invalid=false]:checked:active, [type=checkbox][aria-invalid=false]:checked:focus,
[type=checkbox][role=switch][aria-invalid=false]:checked,
[type=checkbox][role=switch][aria-invalid=false]:checked:active,
[type=checkbox][role=switch][aria-invalid=false]:checked:focus {
--pico-background-color: var(--pico-form-element-valid-border-color);
}
[type=checkbox]:checked[aria-invalid=true], [type=checkbox]:checked:active[aria-invalid=true], [type=checkbox]:checked:focus[aria-invalid=true],
[type=checkbox][role=switch]:checked[aria-invalid=true],
[type=checkbox][role=switch]:checked:active[aria-invalid=true],
[type=checkbox][role=switch]:checked:focus[aria-invalid=true] {
--pico-background-color: var(--pico-form-element-invalid-border-color);
}
2023-03-15 22:16:47 +07:00
[type=checkbox][aria-invalid=false]:checked, [type=checkbox][aria-invalid=false]:checked:active, [type=checkbox][aria-invalid=false]:checked:focus,
[type=radio][aria-invalid=false]:checked,
[type=radio][aria-invalid=false]:checked:active,
[type=radio][aria-invalid=false]:checked:focus,
[type=checkbox][role=switch][aria-invalid=false]:checked,
[type=checkbox][role=switch][aria-invalid=false]:checked:active,
[type=checkbox][role=switch][aria-invalid=false]:checked:focus {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-valid-border-color);
}
2023-03-15 22:16:47 +07:00
[type=checkbox]:checked[aria-invalid=true], [type=checkbox]:checked:active[aria-invalid=true], [type=checkbox]:checked:focus[aria-invalid=true],
[type=radio]:checked[aria-invalid=true],
2023-03-15 22:16:47 +07:00
[type=radio]:checked:active[aria-invalid=true],
[type=radio]:checked:focus[aria-invalid=true],
[type=checkbox][role=switch]:checked[aria-invalid=true],
[type=checkbox][role=switch]:checked:active[aria-invalid=true],
[type=checkbox][role=switch]:checked:focus[aria-invalid=true] {
2022-10-22 13:11:51 +07:00
--pico-border-color: var(--pico-form-element-invalid-border-color);
}
2019-11-27 15:31:49 +07:00
/**
2022-10-22 11:44:10 +07:00
* Input type color
2019-11-27 15:31:49 +07:00
*/
2021-09-12 10:58:05 +07:00
[type=color]::-webkit-color-swatch-wrapper {
2019-11-27 15:31:49 +07:00
padding: 0;
}
2021-09-12 10:58:05 +07:00
[type=color]::-moz-focus-inner {
padding: 0;
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=color]::-webkit-color-swatch {
2022-03-06 15:12:55 +07:00
border: 0;
2022-10-22 13:11:51 +07:00
border-radius: calc(var(--pico-border-radius) * 0.5);
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=color]::-moz-color-swatch {
2022-03-06 15:12:55 +07:00
border: 0;
2022-10-22 13:11:51 +07:00
border-radius: calc(var(--pico-border-radius) * 0.5);
2019-11-27 15:31:49 +07:00
}
2022-10-22 11:44:10 +07:00
/**
* Input type datetime
*/
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file]):is([type=date], [type=datetime-local], [type=month], [type=time], [type=week]) {
2022-10-22 13:11:51 +07:00
--pico-icon-position: 0.75rem;
--pico-icon-width: 1rem;
padding-right: calc(var(--pico-icon-width) + var(--pico-icon-position));
background-image: var(--pico-icon-date);
background-position: center right var(--pico-icon-position);
background-size: var(--pico-icon-width) auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2019-11-27 15:31:49 +07:00
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=time] {
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-time);
2022-01-01 13:40:31 +07:00
}
[type=date]::-webkit-calendar-picker-indicator,
[type=datetime-local]::-webkit-calendar-picker-indicator,
[type=month]::-webkit-calendar-picker-indicator,
[type=time]::-webkit-calendar-picker-indicator,
[type=week]::-webkit-calendar-picker-indicator {
2022-10-22 13:11:51 +07:00
width: var(--pico-icon-width);
margin-right: calc(var(--pico-icon-width) * -1);
margin-left: var(--pico-icon-position);
opacity: 0;
2019-11-27 15:31:49 +07:00
}
2022-01-01 13:40:31 +07:00
2022-03-06 12:53:40 +07:00
[dir=rtl] :is([type=date], [type=datetime-local], [type=month], [type=time], [type=week]) {
2022-01-01 13:40:31 +07:00
text-align: right;
}
2019-11-27 15:31:49 +07:00
2022-10-22 11:44:10 +07:00
/**
* Input type file
*/
2023-04-02 10:36:52 +07:00
[type=file] {
2022-10-22 13:11:51 +07:00
--pico-color: var(--pico-muted-color);
2023-02-19 10:30:07 +07:00
margin-left: calc(var(--pico-outline-width) * -1);
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5) 0;
2023-02-19 10:30:07 +07:00
padding-left: var(--pico-outline-width);
2022-03-06 15:12:55 +07:00
border: 0;
border-radius: 0;
background: none;
}
2023-04-02 10:36:52 +07:00
[type=file]::file-selector-button {
2022-10-22 13:11:51 +07:00
margin-right: calc(var(--pico-spacing) / 2);
2022-12-26 11:35:56 +07:00
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5) var(--pico-form-element-spacing-horizontal);
}
2023-04-02 10:36:52 +07:00
[type=file]:is(:hover, :active, :focus)::file-selector-button {
2023-04-02 11:04:23 +07:00
--pico-background-color: var(--pico-secondary-hover-background);
--pico-border-color: var(--pico-secondary-hover-border);
2022-12-26 11:35:56 +07:00
}
2023-04-02 10:36:52 +07:00
[type=file]:focus::file-selector-button {
2023-02-19 10:30:07 +07:00
--pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
2019-11-27 15:31:49 +07:00
}
2022-10-22 11:44:10 +07:00
/**
* Input type range
*/
2021-09-12 10:58:05 +07:00
[type=range] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 100%;
height: 1.25rem;
2022-03-06 15:12:55 +07:00
background: none;
}
2021-09-12 10:58:05 +07:00
[type=range]::-webkit-slider-runnable-track {
width: 100%;
2023-03-18 08:23:23 +07:00
height: 0.375rem;
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background-color: var(--pico-range-border-color);
-webkit-transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
}
2021-09-12 10:58:05 +07:00
[type=range]::-moz-range-track {
width: 100%;
2023-03-18 08:23:23 +07:00
height: 0.375rem;
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background-color: var(--pico-range-border-color);
-moz-transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
}
2021-09-12 10:58:05 +07:00
[type=range]::-ms-track {
width: 100%;
2023-03-18 08:23:23 +07:00
height: 0.375rem;
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background-color: var(--pico-range-border-color);
-ms-transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
transition: background-color var(--pico-transition), box-shadow var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 1.25rem;
height: 1.25rem;
2023-03-18 08:23:23 +07:00
margin-top: -0.4375rem;
2022-10-22 13:11:51 +07:00
border: 2px solid var(--pico-range-thumb-border-color);
border-radius: 50%;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-range-thumb-color);
cursor: pointer;
2022-10-22 13:11:51 +07:00
-webkit-transition: background-color var(--pico-transition), transform var(--pico-transition);
transition: background-color var(--pico-transition), transform var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=range]::-moz-range-thumb {
-webkit-appearance: none;
width: 1.25rem;
height: 1.25rem;
2023-03-18 08:23:23 +07:00
margin-top: -0.4375rem;
2022-10-22 13:11:51 +07:00
border: 2px solid var(--pico-range-thumb-border-color);
border-radius: 50%;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-range-thumb-color);
cursor: pointer;
2022-10-22 13:11:51 +07:00
-moz-transition: background-color var(--pico-transition), transform var(--pico-transition);
transition: background-color var(--pico-transition), transform var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2021-09-12 10:58:05 +07:00
[type=range]::-ms-thumb {
-webkit-appearance: none;
width: 1.25rem;
height: 1.25rem;
2023-03-18 08:23:23 +07:00
margin-top: -0.4375rem;
2022-10-22 13:11:51 +07:00
border: 2px solid var(--pico-range-thumb-border-color);
border-radius: 50%;
2022-10-22 13:11:51 +07:00
background-color: var(--pico-range-thumb-color);
cursor: pointer;
2022-10-22 13:11:51 +07:00
-ms-transition: background-color var(--pico-transition), transform var(--pico-transition);
transition: background-color var(--pico-transition), transform var(--pico-transition);
2020-09-29 08:38:35 +07:00
}
2023-03-18 08:23:23 +07:00
[type=range]:active, [type=range]:focus-within {
2022-10-22 13:11:51 +07:00
--pico-range-border-color: var(--pico-range-active-border-color);
--pico-range-thumb-color: var(--pico-range-thumb-active-color);
2020-10-01 09:56:08 +07:00
}
2021-09-12 10:58:05 +07:00
[type=range]:active::-webkit-slider-thumb {
transform: scale(1.25);
}
2021-09-12 10:58:05 +07:00
[type=range]:active::-moz-range-thumb {
transform: scale(1.25);
}
2021-09-12 10:58:05 +07:00
[type=range]:active::-ms-thumb {
transform: scale(1.25);
}
2022-10-22 11:44:10 +07:00
/**
* Input type search
*/
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
2022-10-22 13:11:51 +07:00
-webkit-padding-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem);
padding-inline-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem);
background-image: var(--pico-icon-search);
2021-07-02 16:54:41 +07:00
background-position: center left 1.125rem;
background-size: 1rem auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search][aria-invalid] {
2022-10-22 13:11:51 +07:00
-webkit-padding-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem) !important;
padding-inline-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem) !important;
2022-03-09 04:42:36 +03:00
background-position: center left 1.125rem, center right 0.75rem;
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search][aria-invalid=false] {
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-search), var(--pico-icon-valid);
2022-03-09 04:42:36 +03:00
}
2022-09-11 18:30:49 +07:00
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search][aria-invalid=true] {
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-search), var(--pico-icon-invalid);
2022-03-09 04:42:36 +03:00
}
2022-01-01 13:40:31 +07:00
2022-09-11 18:30:49 +07:00
[dir=rtl] :where(input):not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
2022-03-09 04:42:36 +03:00
background-position: center right 1.125rem;
}
2022-09-11 18:30:49 +07:00
[dir=rtl] :where(input):not([type=checkbox], [type=radio], [type=range], [type=file])[type=search][aria-invalid] {
2022-03-09 04:42:36 +03:00
background-position: center right 1.125rem, center left 0.75rem;
}
2019-11-27 15:31:49 +07:00
/**
* Accordion (<details>)
*/
details {
display: block;
2022-10-22 13:11:51 +07:00
margin-bottom: var(--pico-spacing);
2022-12-29 18:16:36 +07:00
}
2019-11-27 15:31:49 +07:00
details summary {
line-height: 1rem;
2019-11-27 15:31:49 +07:00
list-style-type: none;
cursor: pointer;
2022-10-22 13:11:51 +07:00
transition: color var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
2022-03-06 09:37:03 +07:00
details summary:not([role]) {
2022-10-22 13:11:51 +07:00
color: var(--pico-accordion-close-summary-color);
2022-01-23 12:45:00 +07:00
}
2019-11-27 15:31:49 +07:00
details summary::-webkit-details-marker {
display: none;
}
details summary::marker {
display: none;
}
details summary::-moz-list-bullet {
list-style-type: none;
}
details summary::after {
2021-10-23 17:37:17 +07:00
display: block;
2022-03-06 16:24:19 +07:00
width: 1rem;
2019-11-27 15:31:49 +07:00
height: 1rem;
2022-10-22 13:11:51 +07:00
-webkit-margin-start: calc(var(--pico-spacing, 1rem) * 0.5);
margin-inline-start: calc(var(--pico-spacing, 1rem) * 0.5);
2019-11-27 15:31:49 +07:00
float: right;
transform: rotate(-90deg);
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-chevron);
2022-03-06 16:24:19 +07:00
background-position: right center;
2019-11-27 15:31:49 +07:00
background-size: 1rem auto;
2021-11-02 02:54:52 +07:00
background-repeat: no-repeat;
2021-09-12 10:58:05 +07:00
content: "";
2022-10-22 13:11:51 +07:00
transition: transform var(--pico-transition);
2019-11-27 15:31:49 +07:00
}
details summary:focus {
outline: none;
2022-01-23 12:45:00 +07:00
}
2023-01-01 14:03:50 +07:00
details summary:focus:not([role]) {
2022-10-22 13:11:51 +07:00
color: var(--pico-accordion-active-summary-color);
2019-11-27 15:31:49 +07:00
}
2023-01-01 14:03:50 +07:00
details summary:focus-visible:not([role]) {
2023-01-28 12:22:55 +07:00
outline: var(--pico-outline-width) solid var(--pico-primary-focus);
outline-offset: calc(var(--pico-spacing, 1rem) * 0.5);
2023-01-01 14:03:50 +07:00
color: var(--pico-primary);
}
2022-01-23 12:45:00 +07:00
details summary[role=button] {
width: 100%;
text-align: left;
2019-11-27 18:35:03 +07:00
}
2022-01-23 12:45:00 +07:00
details summary[role=button]::after {
2022-10-22 13:11:51 +07:00
height: calc(1rem * var(--pico-line-height, 1.5));
2019-11-27 18:35:03 +07:00
}
2021-06-30 11:52:49 +07:00
details[open] > summary {
2023-01-01 14:03:50 +07:00
margin-bottom: var(--pico-spacing);
2021-07-02 16:54:41 +07:00
}
2022-03-06 09:37:03 +07:00
details[open] > summary:not([role]):not(:focus) {
2022-10-22 13:11:51 +07:00
color: var(--pico-accordion-open-summary-color);
2019-11-27 15:31:49 +07:00
}
2021-06-30 11:52:49 +07:00
details[open] > summary::after {
2019-11-27 15:31:49 +07:00
transform: rotate(0);
}
2022-01-23 12:45:00 +07:00
[dir=rtl] details summary {
text-align: right;
}
2021-10-24 02:06:00 +07:00
[dir=rtl] details summary::after {
float: left;
2022-03-06 16:24:19 +07:00
background-position: left center;
2021-10-24 02:06:00 +07:00
}
2019-11-27 15:31:49 +07:00
/**
* Card (<article>)
*/
article {
2022-12-29 18:16:36 +07:00
margin-bottom: var(--pico-block-spacing-vertical);
2022-10-22 13:11:51 +07:00
padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
border-radius: var(--pico-border-radius);
background: var(--pico-card-background-color);
box-shadow: var(--pico-card-box-shadow);
}
article > header,
2021-10-23 17:28:31 +07:00
article > footer {
2022-10-22 13:11:51 +07:00
margin-right: calc(var(--pico-block-spacing-horizontal) * -1);
margin-left: calc(var(--pico-block-spacing-horizontal) * -1);
padding: calc(var(--pico-block-spacing-vertical) * 0.66) var(--pico-block-spacing-horizontal);
2023-03-18 13:00:50 +07:00
background-color: var(--pico-card-sectioning-background-color);
}
article > header {
2022-10-22 13:11:51 +07:00
margin-top: calc(var(--pico-block-spacing-vertical) * -1);
margin-bottom: var(--pico-block-spacing-vertical);
border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
border-top-right-radius: var(--pico-border-radius);
border-top-left-radius: var(--pico-border-radius);
}
2021-10-23 17:28:31 +07:00
article > footer {
2022-10-22 13:11:51 +07:00
margin-top: var(--pico-block-spacing-vertical);
margin-bottom: calc(var(--pico-block-spacing-vertical) * -1);
border-top: var(--pico-border-width) solid var(--pico-card-border-color);
border-bottom-right-radius: var(--pico-border-radius);
border-bottom-left-radius: var(--pico-border-radius);
}
2021-10-24 15:24:57 +07:00
/**
2023-04-02 22:37:00 +07:00
* Dropdown (details.dropdown)
2021-10-24 15:24:57 +07:00
*/
2023-04-02 22:37:00 +07:00
details.dropdown {
2022-10-22 11:44:10 +07:00
position: relative;
2023-01-01 14:03:50 +07:00
border-bottom: none;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary::after,
details.dropdown > button::after,
details.dropdown > a::after {
2023-01-01 14:03:50 +07:00
display: block;
width: 1rem;
height: calc(1rem * var(--pico-line-height, 1.5));
-webkit-margin-start: 0.25rem;
margin-inline-start: 0.25rem;
float: right;
transform: rotate(0deg) translateX(0.2rem);
background-image: var(--pico-icon-chevron);
background-position: right center;
background-size: 1rem auto;
background-repeat: no-repeat;
content: "";
}
2023-04-02 22:37:00 +07:00
nav details.dropdown {
2023-01-01 14:03:50 +07:00
margin-bottom: 0;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role]) {
2023-01-01 14:03:50 +07:00
height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
border: var(--pico-border-width) solid var(--pico-form-element-border-color);
border-radius: var(--pico-border-radius);
background-color: var(--pico-form-element-background-color);
color: var(--pico-form-element-placeholder-color);
line-height: inherit;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
transition: background-color var(--pico-transition), border-color var(--pico-transition), color var(--pico-transition), box-shadow var(--pico-transition);
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role]):active, details.dropdown summary:not([role]):focus {
2023-01-01 14:03:50 +07:00
border-color: var(--pico-form-element-active-border-color);
background-color: var(--pico-form-element-active-background-color);
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role]):focus {
2023-01-01 14:03:50 +07:00
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role]):focus-visible {
2023-01-28 12:22:55 +07:00
outline: none;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role])[aria-invalid=false] {
2023-01-01 14:03:50 +07:00
--pico-form-element-border-color: var(--pico-form-element-valid-border-color);
--pico-form-element-active-border-color: var(--pico-form-element-valid-focus-color);
--pico-form-element-focus-color: var(--pico-form-element-valid-focus-color);
}
2023-04-02 22:37:00 +07:00
details.dropdown summary:not([role])[aria-invalid=true] {
2023-01-01 14:03:50 +07:00
--pico-form-element-border-color: var(--pico-form-element-invalid-border-color);
--pico-form-element-active-border-color: var(--pico-form-element-invalid-focus-color);
--pico-form-element-focus-color: var(--pico-form-element-invalid-focus-color);
}
2023-04-02 22:37:00 +07:00
nav details.dropdown {
2023-04-01 10:10:09 +07:00
display: inline;
margin: calc(var(--pico-nav-element-spacing-vertical) * -1) 0;
}
2023-04-02 22:37:00 +07:00
nav details.dropdown summary:not([role]) {
2023-04-01 10:10:09 +07:00
height: calc(1rem * var(--pico-line-height) + var(--pico-nav-link-spacing-vertical) * 2);
2023-01-01 14:03:50 +07:00
padding: calc(var(--pico-nav-link-spacing-vertical) - var(--pico-border-width) * 2) var(--pico-nav-link-spacing-horizontal);
}
2023-04-02 22:37:00 +07:00
nav details.dropdown summary:not([role]):focus-visible {
2023-04-01 10:10:09 +07:00
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul {
2022-10-22 11:44:10 +07:00
display: flex;
z-index: 99;
position: absolute;
left: 0;
flex-direction: column;
2023-01-01 14:03:50 +07:00
width: 100%;
min-width: -moz-fit-content;
min-width: fit-content;
2022-10-22 11:44:10 +07:00
margin: 0;
2023-01-01 14:03:50 +07:00
margin-top: var(--pico-outline-width);
2022-10-22 11:44:10 +07:00
padding: 0;
2022-10-22 13:11:51 +07:00
border: var(--pico-border-width) solid var(--pico-dropdown-border-color);
border-radius: var(--pico-border-radius);
background-color: var(--pico-dropdown-background-color);
2022-10-23 10:47:50 +07:00
box-shadow: var(--pico-dropdown-box-shadow);
2022-10-22 13:11:51 +07:00
color: var(--pico-dropdown-color);
2022-10-22 11:44:10 +07:00
white-space: nowrap;
2023-01-01 14:03:50 +07:00
opacity: 0;
transition: opacity var(--pico-transition), transform 0s ease-in-out 1s;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul[dir=rtl] {
2023-01-01 14:03:50 +07:00
right: 0;
left: auto;
2022-10-22 11:44:10 +07:00
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li {
2022-10-22 11:44:10 +07:00
width: 100%;
margin-bottom: 0;
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5) var(--pico-form-element-spacing-horizontal);
2022-10-22 11:44:10 +07:00
list-style: none;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li:first-of-type {
2022-10-22 13:11:51 +07:00
margin-top: calc(var(--pico-form-element-spacing-vertical) * 0.5);
2022-10-22 11:44:10 +07:00
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li:last-of-type {
2022-10-22 13:11:51 +07:00
margin-bottom: calc(var(--pico-form-element-spacing-vertical) * 0.5);
2022-10-22 11:44:10 +07:00
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li a {
2022-10-22 11:44:10 +07:00
display: block;
2022-10-22 13:11:51 +07:00
margin: calc(var(--pico-form-element-spacing-vertical) * -0.5) calc(var(--pico-form-element-spacing-horizontal) * -1);
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5) var(--pico-form-element-spacing-horizontal);
2022-10-22 11:44:10 +07:00
overflow: hidden;
2023-01-01 14:03:50 +07:00
border-radius: 0;
2022-10-22 13:11:51 +07:00
color: var(--pico-dropdown-color);
2022-10-22 11:44:10 +07:00
text-decoration: none;
text-overflow: ellipsis;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li a:hover, details.dropdown summary + ul li a:focus, details.dropdown summary + ul li a:active, details.dropdown summary + ul li a:focus-visible, details.dropdown summary + ul li a[aria-current] {
2022-10-22 13:11:51 +07:00
background-color: var(--pico-dropdown-hover-background-color);
2022-10-22 11:44:10 +07:00
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li label {
2023-03-19 01:51:49 +07:00
width: 100%;
}
2023-04-02 22:37:00 +07:00
details.dropdown summary + ul li:has(label):hover {
2022-12-29 18:16:36 +07:00
background-color: var(--pico-dropdown-hover-background-color);
}
2022-10-22 11:44:10 +07:00
2023-04-02 22:37:00 +07:00
details.dropdown[open] summary {
2023-01-01 14:03:50 +07:00
margin-bottom: 0;
2022-10-22 11:44:10 +07:00
}
2023-01-01 14:03:50 +07:00
2023-04-02 22:37:00 +07:00
details.dropdown[open] summary + ul {
2023-01-01 14:03:50 +07:00
transform: scaleY(1);
opacity: 1;
transition: opacity var(--pico-transition), transform 0s ease-in-out 0s;
2022-12-29 18:16:36 +07:00
}
2023-01-01 14:03:50 +07:00
2023-04-02 22:37:00 +07:00
details.dropdown[open] summary::before {
2022-10-22 11:44:10 +07:00
display: block;
z-index: 1;
position: fixed;
2023-01-01 14:03:50 +07:00
width: 100vw;
height: 100vh;
inset: 0;
2022-10-22 11:44:10 +07:00
background: none;
content: "";
cursor: default;
}
2023-04-02 10:36:52 +07:00
/**
* Group ([role="group"], [role="search"])
*/
form[role=search], form[role=group] {
width: 100%;
}
[role=search] > *:first-child {
border-top-left-radius: 5rem;
border-bottom-left-radius: 5rem;
}
[role=search] > *:last-child {
border-top-right-radius: 5rem;
border-bottom-right-radius: 5rem;
}
[role=search],
[role=group] {
display: inline-flex;
position: relative;
margin-bottom: var(--pico-spacing);
border-radius: var(--pico-border-radius);
box-shadow: var(--pico-group-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
vertical-align: middle;
transition: box-shadow var(--pico-transition);
}
[role=search] > *,
[role=search] input:not([type=checkbox], [type=radio]),
[role=search] select,
[role=group] > *,
[role=group] input:not([type=checkbox], [type=radio]),
[role=group] select {
position: relative;
flex: 1 1 auto;
margin-bottom: 0;
}
[role=search] > *:not(:first-child),
[role=search] input:not([type=checkbox], [type=radio]):not(:first-child),
[role=search] select:not(:first-child),
[role=group] > *:not(:first-child),
[role=group] input:not([type=checkbox], [type=radio]):not(:first-child),
[role=group] select:not(:first-child) {
margin-left: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
[role=search] > *:not(:last-child),
[role=search] input:not([type=checkbox], [type=radio]):not(:last-child),
[role=search] select:not(:last-child),
[role=group] > *:not(:last-child),
[role=group] input:not([type=checkbox], [type=radio]):not(:last-child),
[role=group] select:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
[role=search] > *:focus,
[role=search] input:not([type=checkbox], [type=radio]):focus,
[role=search] select:focus,
[role=group] > *:focus,
[role=group] input:not([type=checkbox], [type=radio]):focus,
[role=group] select:focus {
z-index: 2;
}
[role=search] button:not(:first-child),
[role=search] [type=submit]:not(:first-child),
[role=search] [type=reset]:not(:first-child),
[role=search] [type=button]:not(:first-child),
[role=search] [role=button]:not(:first-child),
[role=search] input:not([type=checkbox], [type=radio]):not(:first-child),
[role=search] select:not(:first-child),
[role=group] button:not(:first-child),
[role=group] [type=submit]:not(:first-child),
[role=group] [type=reset]:not(:first-child),
[role=group] [type=button]:not(:first-child),
[role=group] [role=button]:not(:first-child),
[role=group] input:not([type=checkbox], [type=radio]):not(:first-child),
[role=group] select:not(:first-child) {
margin-left: calc(var(--pico-border-width) * -1);
}
[role=search] button,
[role=search] [type=submit],
[role=search] [type=reset],
[role=search] [type=button],
[role=search] [role=button],
[role=group] button,
[role=group] [type=submit],
[role=group] [type=reset],
[role=group] [type=button],
[role=group] [role=button] {
width: auto;
}
@supports selector(:has(*)) {
[role=search]:has(button:focus, [type=submit]:focus, [type=button]:focus, [role=button]:focus),
[role=group]:has(button:focus, [type=submit]:focus, [type=button]:focus, [role=button]:focus) {
2023-04-02 11:04:23 +07:00
--pico-group-box-shadow: var(--pico-group-box-shadow-focus-with-button);
2023-04-02 10:36:52 +07:00
}
[role=search]:has(input:not([type=submit], [type=button]):focus, select:focus),
[role=group]:has(input:not([type=submit], [type=button]):focus, select:focus) {
2023-04-02 11:04:23 +07:00
--pico-group-box-shadow: var(--pico-group-box-shadow-focus-with-input);
2023-04-02 10:36:52 +07:00
}
[role=search]:has(input:not([type=submit], [type=button]):focus, select:focus) button,
[role=search]:has(input:not([type=submit], [type=button]):focus, select:focus) [type=submit],
[role=search]:has(input:not([type=submit], [type=button]):focus, select:focus) [type=button],
[role=search]:has(input:not([type=submit], [type=button]):focus, select:focus) [role=button],
[role=group]:has(input:not([type=submit], [type=button]):focus, select:focus) button,
[role=group]:has(input:not([type=submit], [type=button]):focus, select:focus) [type=submit],
[role=group]:has(input:not([type=submit], [type=button]):focus, select:focus) [type=button],
[role=group]:has(input:not([type=submit], [type=button]):focus, select:focus) [role=button] {
--pico-button-box-shadow: 0 0 0 var(--pico-border-width) var(--pico-primary-border);
2023-04-02 11:04:23 +07:00
--pico-button-hover-box-shadow: 0 0 0 var(--pico-border-width) var(--pico-primary-hover-border);
2023-04-02 10:36:52 +07:00
}
[role=search] button:focus,
[role=search] [type=submit]:focus,
[role=search] [type=button]:focus,
[role=search] [role=button]:focus,
[role=group] button:focus,
[role=group] [type=submit]:focus,
[role=group] [type=button]:focus,
[role=group] [role=button]:focus {
box-shadow: none;
}
}
2022-10-22 11:44:10 +07:00
/**
* Loading ([aria-busy=true])
*/
[aria-busy=true]:not(input, select, textarea)::before {
display: inline-block;
width: 1em;
height: 1em;
2023-03-27 10:28:30 +07:00
background-image: var(--pico-icon-loading);
background-size: 1rem auto;
background-repeat: no-repeat;
2022-10-22 11:44:10 +07:00
content: "";
vertical-align: -0.125em;
}
[aria-busy=true]:not(input, select, textarea):not(:empty)::before {
2023-03-28 21:40:12 +07:00
-webkit-margin-end: calc(var(--pico-spacing) * 0.5);
margin-inline-end: calc(var(--pico-spacing) * 0.5);
2022-10-22 11:44:10 +07:00
}
[aria-busy=true]:not(input, select, textarea):empty {
text-align: center;
}
button[aria-busy=true],
2023-03-12 12:12:18 +07:00
[type=submit][aria-busy=true],
2023-03-27 10:28:30 +07:00
[type=button][aria-busy=true],
[type=reset][aria-busy=true],
[role=button][aria-busy=true],
2022-10-22 11:44:10 +07:00
a[aria-busy=true] {
pointer-events: none;
}
/**
* Modal (<dialog>)
*/
:root {
2022-10-22 13:11:51 +07:00
--pico-scrollbar-width: 0px;
2022-10-22 11:44:10 +07:00
}
dialog {
2021-11-02 11:04:48 +07:00
display: flex;
2021-11-08 00:10:16 +07:00
z-index: 999;
2021-10-24 15:24:57 +07:00
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
align-items: center;
justify-content: center;
2021-11-02 11:04:48 +07:00
width: inherit;
min-width: 100%;
height: inherit;
min-height: 100%;
2022-03-06 15:12:55 +07:00
border: 0;
2022-10-22 13:11:51 +07:00
-webkit-backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
backdrop-filter: var(--pico-modal-overlay-backdrop-filter);
background-color: var(--pico-modal-overlay-background-color);
color: var(--pico-color);
2021-10-24 15:24:57 +07:00
}
2022-01-16 12:43:16 +07:00
dialog article {
2023-02-13 17:45:24 +07:00
width: 100%;
2022-10-22 13:11:51 +07:00
max-height: calc(100vh - var(--pico-spacing) * 2);
2023-02-13 17:45:24 +07:00
margin: var(--pico-spacing);
2022-01-16 12:43:16 +07:00
overflow: auto;
}
2021-10-24 15:24:57 +07:00
@media (min-width: 576px) {
dialog article {
max-width: 510px;
}
}
@media (min-width: 768px) {
dialog article {
max-width: 700px;
}
}
2021-11-08 00:10:16 +07:00
dialog article > header,
dialog article > footer {
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-block-spacing-vertical) * 0.5) var(--pico-block-spacing-horizontal);
2021-11-08 00:10:16 +07:00
}
dialog article > header .close {
margin: 0;
2022-10-22 13:11:51 +07:00
margin-left: var(--pico-spacing);
2021-11-08 00:10:16 +07:00
float: right;
}
2021-10-24 15:24:57 +07:00
dialog article > footer {
text-align: right;
}
2023-03-25 12:35:22 +07:00
dialog article > footer button,
2021-11-08 00:10:16 +07:00
dialog article > footer [role=button] {
margin-bottom: 0;
}
2023-03-25 12:35:22 +07:00
dialog article > footer button:not(:first-of-type),
2021-10-24 15:24:57 +07:00
dialog article > footer [role=button]:not(:first-of-type) {
2022-10-22 13:11:51 +07:00
margin-left: calc(var(--pico-spacing) * 0.5);
2021-10-24 15:24:57 +07:00
}
2021-11-08 00:10:16 +07:00
dialog article .close {
2021-10-31 09:24:46 +07:00
display: block;
width: 1rem;
height: 1rem;
2022-10-23 10:47:50 +07:00
margin-top: calc(var(--pico-spacing) * -1);
margin-bottom: var(--pico-spacing);
2021-10-31 09:24:46 +07:00
margin-left: auto;
2022-10-22 13:11:51 +07:00
background-image: var(--pico-icon-close);
2021-10-31 09:24:46 +07:00
background-position: center;
2021-11-08 00:10:16 +07:00
background-size: auto 1rem;
2021-11-02 11:04:48 +07:00
background-repeat: no-repeat;
2021-10-31 09:24:46 +07:00
opacity: 0.5;
2022-10-22 13:11:51 +07:00
transition: opacity var(--pico-transition);
2021-10-31 09:24:46 +07:00
}
2023-04-02 10:36:52 +07:00
dialog article .close:is([aria-current], :hover, :active, :focus) {
2021-10-31 09:24:46 +07:00
opacity: 1;
}
2021-11-08 00:10:16 +07:00
dialog:not([open]), dialog[open=false] {
display: none;
}
2021-10-24 15:24:57 +07:00
2021-11-08 00:10:16 +07:00
.modal-is-open {
2022-10-22 13:11:51 +07:00
padding-right: var(--pico-scrollbar-width, 0px);
2021-10-24 15:24:57 +07:00
overflow: hidden;
2021-11-02 11:04:48 +07:00
pointer-events: none;
touch-action: none;
2021-10-24 15:24:57 +07:00
}
2021-11-08 00:10:16 +07:00
.modal-is-open dialog {
2021-10-24 15:24:57 +07:00
pointer-events: auto;
2023-04-01 10:10:09 +07:00
touch-action: auto;
2021-10-24 15:24:57 +07:00
}
2022-03-06 13:37:20 +07:00
:where(.modal-is-opening, .modal-is-closing) dialog,
:where(.modal-is-opening, .modal-is-closing) dialog > article {
2021-11-08 00:10:16 +07:00
animation-duration: 0.2s;
animation-timing-function: ease-in-out;
2021-11-08 00:10:16 +07:00
animation-fill-mode: both;
}
2022-03-06 13:37:20 +07:00
:where(.modal-is-opening, .modal-is-closing) dialog {
animation-duration: 0.8s;
animation-name: modal-overlay;
2021-11-08 00:10:16 +07:00
}
2022-03-06 13:37:20 +07:00
:where(.modal-is-opening, .modal-is-closing) dialog > article {
animation-delay: 0.2s;
2022-06-05 10:37:48 +07:00
animation-name: modal;
2021-11-08 00:10:16 +07:00
}
.modal-is-closing dialog,
.modal-is-closing dialog > article {
animation-delay: 0s;
2021-11-08 00:10:16 +07:00
animation-direction: reverse;
}
@keyframes modal-overlay {
2021-11-08 00:10:16 +07:00
from {
2022-06-05 10:37:48 +07:00
-webkit-backdrop-filter: none;
backdrop-filter: none;
2021-11-08 00:10:16 +07:00
background-color: transparent;
}
}
2022-06-05 10:37:48 +07:00
@keyframes modal {
2021-11-08 00:10:16 +07:00
from {
transform: translateY(-100%);
opacity: 0;
}
}
2019-11-27 15:31:49 +07:00
/**
* Nav
*/
2022-03-06 15:12:55 +07:00
:where(nav li)::before {
float: left;
content: "";
}
2019-11-27 15:31:49 +07:00
nav,
nav ul {
display: flex;
}
nav {
justify-content: space-between;
}
nav ol,
2019-11-27 15:31:49 +07:00
nav ul {
align-items: center;
margin-bottom: 0;
padding: 0;
list-style: none;
}
nav ol:first-of-type,
2019-11-27 15:31:49 +07:00
nav ul:first-of-type {
2022-10-22 13:11:51 +07:00
margin-left: calc(var(--pico-nav-element-spacing-horizontal) * -1);
2019-11-27 15:31:49 +07:00
}
nav ol:last-of-type,
2019-11-27 15:31:49 +07:00
nav ul:last-of-type {
2022-10-22 13:11:51 +07:00
margin-right: calc(var(--pico-nav-element-spacing-horizontal) * -1);
2019-11-27 15:31:49 +07:00
}
nav li {
display: inline-block;
margin: 0;
2022-10-22 13:11:51 +07:00
padding: var(--pico-nav-element-spacing-vertical) var(--pico-nav-element-spacing-horizontal);
2019-11-27 15:31:49 +07:00
}
2023-01-01 14:03:50 +07:00
nav li :where(a, [role=link]) {
2022-02-27 14:41:34 +07:00
display: inline-block;
2022-10-22 13:11:51 +07:00
margin: calc(var(--pico-nav-link-spacing-vertical) * -1) calc(var(--pico-nav-link-spacing-horizontal) * -1);
padding: var(--pico-nav-link-spacing-vertical) var(--pico-nav-link-spacing-horizontal);
border-radius: var(--pico-border-radius);
2019-11-27 15:31:49 +07:00
}
2023-01-01 14:03:50 +07:00
nav li :where(a, [role=link]):not(:hover) {
2021-07-02 16:54:41 +07:00
text-decoration: none;
}
2023-01-01 14:03:50 +07:00
nav li button,
nav li [role=button],
nav li input:not([type=checkbox], [type=radio], [type=range], [type=file]),
nav li select {
height: auto;
margin-right: inherit;
margin-bottom: 0;
margin-left: inherit;
padding: calc(var(--pico-nav-link-spacing-vertical) - var(--pico-border-width) * 2) var(--pico-nav-link-spacing-horizontal);
}
2022-06-12 12:35:03 +02:00
nav[aria-label=breadcrumb] {
align-items: center;
2022-09-13 02:16:29 +07:00
justify-content: start;
2022-06-12 12:35:03 +02:00
}
2022-09-13 02:16:29 +07:00
nav[aria-label=breadcrumb] ul li:not(:first-child) {
2022-10-22 13:11:51 +07:00
-webkit-margin-start: var(--pico-nav-link-spacing-horizontal);
margin-inline-start: var(--pico-nav-link-spacing-horizontal);
2022-06-12 12:35:03 +02:00
}
2023-03-05 09:20:24 +07:00
nav[aria-label=breadcrumb] ul li:not(:last-child)::after {
2022-09-13 02:16:29 +07:00
position: absolute;
2022-10-22 13:11:51 +07:00
width: calc(var(--pico-nav-link-spacing-horizontal) * 2);
-webkit-margin-start: calc(var(--pico-nav-link-spacing-horizontal) / 2);
margin-inline-start: calc(var(--pico-nav-link-spacing-horizontal) / 2);
2023-03-25 19:41:13 +07:00
content: var(--pico-nav-breadcrumb-divider);
2022-10-22 13:11:51 +07:00
color: var(--pico-muted-color);
2022-09-13 02:16:29 +07:00
text-align: center;
2023-01-01 14:03:50 +07:00
text-decoration: none;
2022-06-12 12:35:03 +02:00
}
2023-04-02 10:36:52 +07:00
nav[aria-label=breadcrumb] a[aria-current] {
2022-09-13 02:16:29 +07:00
background-color: transparent;
2022-06-12 12:35:03 +02:00
color: inherit;
2022-09-13 02:16:29 +07:00
text-decoration: none;
pointer-events: none;
2022-06-12 12:35:03 +02:00
}
2019-11-27 15:31:49 +07:00
aside nav,
aside ol,
2019-11-27 15:31:49 +07:00
aside ul,
aside li {
display: block;
}
aside li {
2022-10-22 13:11:51 +07:00
padding: calc(var(--pico-nav-element-spacing-vertical) * 0.5) var(--pico-nav-element-spacing-horizontal);
2019-11-27 15:31:49 +07:00
}
aside li a {
2022-02-27 14:41:34 +07:00
display: block;
}
aside li [role=button] {
margin: inherit;
2019-11-27 15:31:49 +07:00
}
2022-09-13 02:16:29 +07:00
[dir=rtl] nav[aria-label=breadcrumb] ul li:not(:last-child) ::after {
content: "\\";
}
2020-09-30 10:28:06 +07:00
/**
* Progress
*/
progress {
display: inline-block;
vertical-align: baseline;
}
progress {
-webkit-appearance: none;
-moz-appearance: none;
display: inline-block;
2021-11-02 02:54:52 +07:00
appearance: none;
2020-09-30 10:28:06 +07:00
width: 100%;
2021-09-12 10:58:05 +07:00
height: 0.5rem;
2022-10-22 13:11:51 +07:00
margin-bottom: calc(var(--pico-spacing) * 0.5);
2020-09-30 10:28:06 +07:00
overflow: hidden;
border: 0;
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background-color: var(--pico-progress-background-color);
color: var(--pico-progress-color);
2020-09-30 10:28:06 +07:00
}
progress::-webkit-progress-bar {
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
2022-03-06 15:12:55 +07:00
background: none;
2020-09-30 10:28:06 +07:00
}
progress[value]::-webkit-progress-value {
2022-10-22 13:11:51 +07:00
background-color: var(--pico-progress-color);
2023-03-19 01:51:49 +07:00
-webkit-transition: inline-size var(--pico-transition);
transition: inline-size var(--pico-transition);
2020-09-30 10:28:06 +07:00
}
progress::-moz-progress-bar {
2022-10-22 13:11:51 +07:00
background-color: var(--pico-progress-color);
2020-09-30 10:28:06 +07:00
}
@media (prefers-reduced-motion: no-preference) {
progress:indeterminate {
2022-10-22 13:11:51 +07:00
background: var(--pico-progress-background-color) linear-gradient(to right, var(--pico-progress-color) 30%, var(--pico-progress-background-color) 30%) top left/150% 150% no-repeat;
animation: progress-indeterminate 1s linear infinite;
}
progress:indeterminate[value]::-webkit-progress-value {
background-color: transparent;
}
progress:indeterminate::-moz-progress-bar {
background-color: transparent;
}
2020-09-30 10:28:06 +07:00
}
2022-02-06 10:25:10 +07:00
@media (prefers-reduced-motion: no-preference) {
[dir=rtl] progress:indeterminate {
animation-direction: reverse;
}
}
@keyframes progress-indeterminate {
2021-09-12 10:58:05 +07:00
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
2019-11-27 15:31:49 +07:00
/**
* Tooltip ([data-tooltip])
*/
[data-tooltip] {
position: relative;
}
2022-09-11 18:30:49 +07:00
[data-tooltip]:not(a, button, input) {
2019-11-27 15:31:49 +07:00
border-bottom: 1px dotted;
text-decoration: none;
cursor: help;
}
2022-06-21 17:26:52 +08:00
[data-tooltip][data-placement=top]::before, [data-tooltip][data-placement=top]::after, [data-tooltip]::before, [data-tooltip]::after {
2019-11-27 15:31:49 +07:00
display: block;
z-index: 99;
position: absolute;
bottom: 100%;
left: 50%;
2021-09-12 10:58:05 +07:00
padding: 0.25rem 0.5rem;
2019-11-27 15:31:49 +07:00
overflow: hidden;
transform: translate(-50%, -0.25rem);
2022-10-22 13:11:51 +07:00
border-radius: var(--pico-border-radius);
background: var(--pico-tooltip-background-color);
2021-11-02 02:54:52 +07:00
content: attr(data-tooltip);
2022-10-22 13:11:51 +07:00
color: var(--pico-tooltip-color);
2019-11-27 15:31:49 +07:00
font-style: normal;
2022-10-22 13:11:51 +07:00
font-weight: var(--pico-font-weight);
2021-11-02 02:54:52 +07:00
font-size: 0.875rem;
2019-11-27 15:31:49 +07:00
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0;
pointer-events: none;
}
2022-06-21 17:26:52 +08:00
[data-tooltip][data-placement=top]::after, [data-tooltip]::after {
2019-11-27 15:31:49 +07:00
padding: 0;
transform: translate(-50%, 0rem);
2021-09-12 10:58:05 +07:00
border-top: 0.3rem solid;
border-right: 0.3rem solid transparent;
border-left: 0.3rem solid transparent;
2019-11-27 15:31:49 +07:00
border-radius: 0;
background-color: transparent;
2021-09-12 10:58:05 +07:00
content: "";
2022-10-22 13:11:51 +07:00
color: var(--pico-tooltip-background-color);
2019-11-27 15:31:49 +07:00
}
2022-06-21 17:26:52 +08:00
[data-tooltip][data-placement=bottom]::before, [data-tooltip][data-placement=bottom]::after {
top: 100%;
bottom: auto;
transform: translate(-50%, 0.25rem);
}
[data-tooltip][data-placement=bottom]:after {
transform: translate(-50%, -0.3rem);
border: 0.3rem solid transparent;
border-bottom: 0.3rem solid;
}
[data-tooltip][data-placement=left]::before, [data-tooltip][data-placement=left]::after {
top: 50%;
right: 100%;
bottom: auto;
left: auto;
transform: translate(-0.25rem, -50%);
}
[data-tooltip][data-placement=left]:after {
transform: translate(0.3rem, -50%);
border: 0.3rem solid transparent;
border-left: 0.3rem solid;
}
[data-tooltip][data-placement=right]::before, [data-tooltip][data-placement=right]::after {
top: 50%;
right: auto;
bottom: auto;
left: 100%;
transform: translate(0.25rem, -50%);
}
[data-tooltip][data-placement=right]:after {
transform: translate(-0.3rem, -50%);
border: 0.3rem solid transparent;
border-right: 0.3rem solid;
}
2019-11-27 15:31:49 +07:00
[data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after {
opacity: 1;
}
2021-11-08 00:10:16 +07:00
@media (hover: hover) and (pointer: fine) {
2023-03-25 19:41:13 +07:00
[data-tooltip]:focus::before, [data-tooltip]:focus::after, [data-tooltip]:hover::before, [data-tooltip]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-slide-to: translate(-50%, -0.25rem);
transform: translate(-50%, 0.75rem);
2021-11-08 00:10:16 +07:00
animation-duration: 0.2s;
2023-03-28 21:28:51 +07:00
animation-fill-mode: forwards;
animation-name: tooltip-slide;
opacity: 0;
2021-11-08 00:10:16 +07:00
}
2023-03-25 19:41:13 +07:00
[data-tooltip]:focus::after, [data-tooltip]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-caret-slide-to: translate(-50%, 0rem);
transform: translate(-50%, -0.25rem);
animation-name: tooltip-caret-slide;
2022-06-21 17:26:52 +08:00
}
[data-tooltip][data-placement=bottom]:focus::before, [data-tooltip][data-placement=bottom]:focus::after, [data-tooltip][data-placement=bottom]:hover::before, [data-tooltip][data-placement=bottom]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-slide-to: translate(-50%, 0.25rem);
transform: translate(-50%, -0.75rem);
animation-name: tooltip-slide;
2022-06-21 17:26:52 +08:00
}
[data-tooltip][data-placement=bottom]:focus::after, [data-tooltip][data-placement=bottom]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-caret-slide-to: translate(-50%, -0.3rem);
transform: translate(-50%, -0.5rem);
animation-name: tooltip-caret-slide;
2021-11-08 00:10:16 +07:00
}
2022-06-21 17:26:52 +08:00
[data-tooltip][data-placement=left]:focus::before, [data-tooltip][data-placement=left]:focus::after, [data-tooltip][data-placement=left]:hover::before, [data-tooltip][data-placement=left]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-slide-to: translate(-0.25rem, -50%);
transform: translate(0.75rem, -50%);
animation-name: tooltip-slide;
2022-06-21 17:26:52 +08:00
}
[data-tooltip][data-placement=left]:focus::after, [data-tooltip][data-placement=left]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-caret-slide-to: translate(0.3rem, -50%);
transform: translate(0.05rem, -50%);
animation-name: tooltip-caret-slide;
2022-06-21 17:26:52 +08:00
}
[data-tooltip][data-placement=right]:focus::before, [data-tooltip][data-placement=right]:focus::after, [data-tooltip][data-placement=right]:hover::before, [data-tooltip][data-placement=right]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-slide-to: translate(0.25rem, -50%);
transform: translate(-0.75rem, -50%);
animation-name: tooltip-slide;
2022-06-21 17:26:52 +08:00
}
[data-tooltip][data-placement=right]:focus::after, [data-tooltip][data-placement=right]:hover::after {
2023-03-28 21:28:51 +07:00
--pico-tooltip-caret-slide-to: translate(-0.3rem, -50%);
transform: translate(-0.05rem, -50%);
animation-name: tooltip-caret-slide;
2022-06-21 17:26:52 +08:00
}
}
2023-03-28 21:28:51 +07:00
@keyframes tooltip-slide {
2022-06-21 17:26:52 +08:00
to {
2023-03-28 21:28:51 +07:00
transform: var(--pico-tooltip-slide-to);
2022-06-21 17:26:52 +08:00
opacity: 1;
}
}
2023-03-28 21:28:51 +07:00
@keyframes tooltip-caret-slide {
2022-06-21 17:26:52 +08:00
50% {
opacity: 0;
}
to {
2023-03-28 21:28:51 +07:00
transform: var(--pico-tooltip-caret-slide-to);
2022-06-21 17:26:52 +08:00
opacity: 1;
}
}
2022-09-11 14:59:43 +07:00
/**
* Accessibility & User interaction
*/
[aria-controls] {
cursor: pointer;
}
2021-09-12 10:58:05 +07:00
[aria-disabled=true],
[disabled] {
cursor: not-allowed;
}
2021-09-12 10:58:05 +07:00
[aria-hidden=false][hidden] {
display: initial;
}
2021-09-12 10:58:05 +07:00
[aria-hidden=false][hidden]:not(:focus) {
clip: rect(0, 0, 0, 0);
position: absolute;
}
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
-ms-touch-action: manipulation;
}
2021-10-24 02:06:00 +07:00
[dir=rtl] {
direction: rtl;
}
/**
2022-10-23 10:47:50 +07:00
* Reduce Motion Features
*/
@media (prefers-reduced-motion: reduce) {
2021-09-12 10:58:05 +07:00
*:not([aria-busy=true]),
2022-12-26 13:37:20 +07:00
:not([aria-busy=true])::before,
:not([aria-busy=true])::after {
background-attachment: initial !important;
animation-duration: 1ms !important;
animation-delay: -1ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-delay: 0s !important;
transition-duration: 0s !important;
}
}
/*# sourceMappingURL=pico.css.map */