Merge pull request #268 from picocss/ll/refactor-modules-and-css-vars

Refactor: modules and CSS vars
This commit is contained in:
Lucas Larroche 2022-10-23 11:03:35 +07:00 committed by GitHub
commit 52e1072a08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 3874 additions and 3534 deletions

View file

@ -3,6 +3,309 @@
* Pico v2.0.0-alpha1 (https://picocss.com)
* Copyright 2019-2022 - Licensed under MIT
*/
/**
* Color schemes
*/
[data-theme=light],
:root:not([data-theme=dark]) {
--pico-background-color: #fff;
--pico-color: hsl(205deg, 20%, 32%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: hsl(205deg, 20%, 94%);
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 90%, 32%);
--pico-primary-focus: rgba(16, 149, 193, 0.125);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 20%, 32%);
--pico-secondary-focus: rgba(89, 107, 120, 0.125);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 30%, 15%);
--pico-contrast-hover: #000;
--pico-contrast-focus: rgba(89, 107, 120, 0.125);
--pico-contrast-inverse: #fff;
--pico-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(27, 40, 50, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(27, 40, 50, 0.024), 0.0625rem 0.125rem 0.75rem rgba(27, 40, 50, 0.03), 0.1125rem 0.225rem 1.35rem rgba(27, 40, 50, 0.036), 0.2085rem 0.417rem 2.502rem rgba(27, 40, 50, 0.04302), 0.5rem 1rem 6rem rgba(27, 40, 50, 0.06), 0 0 0 0.0625rem rgba(27, 40, 50, 0.015);
--pico-h1-color: hsl(205deg, 30%, 15%);
--pico-h2-color: #24333e;
--pico-h3-color: hsl(205deg, 25%, 23%);
--pico-h4-color: #374956;
--pico-h5-color: hsl(205deg, 20%, 32%);
--pico-h6-color: #4d606d;
--pico-mark-background-color: #fff2ca;
--pico-mark-color: #543a26;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: #f6f8f9;
--pico-code-background-color: hsl(205deg, 20%, 94%);
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 40%, 50%);
--pico-code-property-color: hsl(185deg, 40%, 40%);
--pico-code-value-color: hsl(40deg, 20%, 50%);
--pico-code-comment-color: hsl(205deg, 14%, 68%);
--pico-form-element-background-color: transparent;
--pico-form-element-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: transparent;
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 18%, 86%);
--pico-form-element-disabled-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #c62828;
--pico-form-element-invalid-active-border-color: #d32f2f;
--pico-form-element-invalid-focus-color: rgba(211, 47, 47, 0.125);
--pico-form-element-valid-border-color: #388e3c;
--pico-form-element-valid-active-border-color: #43a047;
--pico-form-element-valid-focus-color: rgba(67, 160, 71, 0.125);
--pico-switch-background-color: hsl(205deg, 16%, 77%);
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: hsl(205deg, 18%, 86%);
--pico-range-active-border-color: hsl(205deg, 16%, 77%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--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);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #fbfbfc;
--pico-dropdown-background-color: #fbfbfc;
--pico-dropdown-border-color: #e1e6eb;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: hsl(205deg, 20%, 94%);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(213, 220, 226, 0.7);
--pico-progress-background-color: hsl(205deg, 18%, 86%);
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(65, 84, 98)' 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-chevron-button: 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='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-chevron-button-inverse: 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='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-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(65, 84, 98)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: light;
}
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme=light]) {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--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);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(162, 175, 185)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: dark;
}
}
[data-theme=dark] {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--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);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(162, 175, 185)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: dark;
}
progress,
[type=checkbox],
[type=radio],
[type=range] {
accent-color: var(--pico-primary);
}
/**
* 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;
@ -11,19 +314,18 @@
--pico-border-radius: 0.25rem;
--pico-border-width: 1px;
--pico-outline-width: 3px;
--pico-transition: 0.2s ease-in-out;
--pico-spacing: 1rem;
--pico-typography-spacing-vertical: 1.5rem;
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
--pico-block-spacing-horizontal: var(--pico-spacing);
--pico-form-element-spacing-vertical: 0.75rem;
--pico-form-element-spacing-horizontal: 1rem;
--pico-modal-overlay-backdrop-filter: blur(0.25rem);
--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-form-label-font-weight: var(--pico-font-weight);
--pico-transition: 0.2s ease-in-out;
--pico-modal-overlay-backdrop-filter: blur(0.25rem);
}
@media (min-width: 576px) {
:root {
@ -162,15 +464,6 @@ h5 {
--pico-typography-spacing-vertical: 1.6875rem;
}
[type=checkbox],
[type=radio] {
--pico-border-width: 2px;
}
[type=checkbox][role=switch] {
--pico-border-width: 3px;
}
thead th,
thead td,
tfoot th,
@ -193,309 +486,13 @@ kbd {
--pico-font-weight: bolder;
}
[data-theme=light],
:root:not([data-theme=dark]) {
--pico-background-color: #fff;
--pico-color: hsl(205deg, 20%, 32%);
--pico-h1-color: hsl(205deg, 30%, 15%);
--pico-h2-color: #24333e;
--pico-h3-color: hsl(205deg, 25%, 23%);
--pico-h4-color: #374956;
--pico-h5-color: hsl(205deg, 20%, 32%);
--pico-h6-color: #4d606d;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: hsl(205deg, 20%, 94%);
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 90%, 32%);
--pico-primary-focus: rgba(16, 149, 193, 0.125);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 20%, 32%);
--pico-secondary-focus: rgba(89, 107, 120, 0.125);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 30%, 15%);
--pico-contrast-hover: #000;
--pico-contrast-focus: rgba(89, 107, 120, 0.125);
--pico-contrast-inverse: #fff;
--pico-mark-background-color: #fff2ca;
--pico-mark-color: #543a26;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: transparent;
--pico-form-element-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: transparent;
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 18%, 86%);
--pico-form-element-disabled-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #c62828;
--pico-form-element-invalid-active-border-color: #d32f2f;
--pico-form-element-invalid-focus-color: rgba(211, 47, 47, 0.125);
--pico-form-element-valid-border-color: #388e3c;
--pico-form-element-valid-active-border-color: #43a047;
--pico-form-element-valid-focus-color: rgba(67, 160, 71, 0.125);
--pico-switch-background-color: hsl(205deg, 16%, 77%);
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: hsl(205deg, 18%, 86%);
--pico-range-active-border-color: hsl(205deg, 16%, 77%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: #f6f8f9;
--pico-code-background-color: hsl(205deg, 20%, 94%);
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 40%, 50%);
--pico-code-property-color: hsl(185deg, 40%, 40%);
--pico-code-value-color: hsl(40deg, 20%, 50%);
--pico-code-comment-color: hsl(205deg, 14%, 68%);
--pico-accordion-border-color: var(--pico-muted-border-color);
--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);
--pico-card-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(27, 40, 50, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(27, 40, 50, 0.024), 0.0625rem 0.125rem 0.75rem rgba(27, 40, 50, 0.03), 0.1125rem 0.225rem 1.35rem rgba(27, 40, 50, 0.036), 0.2085rem 0.417rem 2.502rem rgba(27, 40, 50, 0.04302), 0.5rem 1rem 6rem rgba(27, 40, 50, 0.06), 0 0 0 0.0625rem rgba(27, 40, 50, 0.015);
--pico-card-sectionning-background-color: #fbfbfc;
--pico-dropdown-background-color: #fbfbfc;
--pico-dropdown-border-color: #e1e6eb;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: hsl(205deg, 20%, 94%);
--pico-modal-overlay-background-color: rgba(213, 220, 226, 0.7);
--pico-progress-background-color: hsl(205deg, 18%, 86%);
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(65, 84, 98)' 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-chevron-button: 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='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-chevron-button-inverse: 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='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-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(115, 130, 140)' stroke-width='4' 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-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(65, 84, 98)' 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-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(198, 40, 40)' 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");
--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-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(65, 84, 98)' stroke-width='2' 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-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(65, 84, 98)' 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-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(56, 142, 60)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: light;
}
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme=light]) {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--pico-contrast-inverse: #000;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-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);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(115, 130, 140)' stroke-width='4' 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-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(162, 175, 185)' 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-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(183, 28, 28)' 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");
--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-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(162, 175, 185)' stroke-width='2' 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-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(162, 175, 185)' 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-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(46, 125, 50)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: dark;
}
}
[data-theme=dark] {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--pico-contrast-inverse: #000;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-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);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(115, 130, 140)' stroke-width='4' 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-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(162, 175, 185)' 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-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(183, 28, 28)' 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");
--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-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(162, 175, 185)' stroke-width='2' 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-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(162, 175, 185)' 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-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(46, 125, 50)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: dark;
}
progress,
[type=checkbox],
[type=radio],
[type=range] {
accent-color: var(--pico-primary);
[type=radio] {
--pico-border-width: 2px;
}
[type=checkbox][role=switch] {
--pico-border-width: 3px;
}
/**
@ -535,17 +532,17 @@ progress,
}
/**
* Sectioning
* Container and responsive spacings for header, main, footer
* Landmarks
*/
main {
display: block;
}
body {
width: 100%;
margin: 0;
}
main {
display: block;
}
body > header,
body > main,
body > footer {
@ -587,7 +584,6 @@ body > footer {
/**
* Section
* Responsive spacings for section
*/
section {
margin-bottom: var(--pico-block-spacing-vertical);
@ -607,6 +603,32 @@ figure figcaption {
color: var(--pico-muted-color);
}
/**
* Link
*/
a,
[role=link] {
--pico-color: var(--pico-primary);
--pico-background-color: transparent;
outline: none;
background-color: var(--pico-background-color);
color: var(--pico-color);
-webkit-text-decoration: var(--pico-text-decoration);
text-decoration: var(--pico-text-decoration);
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);
}
a:is([aria-current], :hover, :active, :focus),
[role=link]:is([aria-current], :hover, :active, :focus) {
--pico-color: var(--pico-primary-hover);
--pico-text-decoration: underline;
}
a:focus,
[role=link]:focus {
--pico-background-color: var(--pico-primary-focus);
}
/**
* Typography
*/
@ -649,29 +671,6 @@ ul {
font-size: var(--pico-font-size);
}
a,
[role=link] {
--pico-color: var(--pico-primary);
--pico-background-color: transparent;
outline: none;
background-color: var(--pico-background-color);
color: var(--pico-color);
-webkit-text-decoration: var(--pico-text-decoration);
text-decoration: var(--pico-text-decoration);
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);
}
a:is([aria-current], :hover, :active, :focus),
[role=link]:is([aria-current], :hover, :active, :focus) {
--pico-color: var(--pico-primary-hover);
--pico-text-decoration: underline;
}
a:focus,
[role=link]:focus {
--pico-background-color: var(--pico-primary-focus);
}
h1,
h2,
h3,
@ -1800,7 +1799,7 @@ li[role=list] > ul {
border-top-right-radius: 0;
border-top-left-radius: 0;
background-color: var(--pico-dropdown-background-color);
box-shadow: var(--pico-card-box-shadow);
box-shadow: var(--pico-dropdown-box-shadow);
color: var(--pico-dropdown-color);
white-space: nowrap;
}
@ -2457,8 +2456,8 @@ textarea,
}
/**
* Reduce Motion Features
*/
* Reduce Motion Features
*/
@media (prefers-reduced-motion: reduce) {
*:not([aria-busy=true]),
:not([aria-busy=true])::before,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -3,6 +3,309 @@
* Pico v2.0.0-alpha1 (https://picocss.com)
* Copyright 2019-2022 - Licensed under MIT
*/
/**
* Color schemes
*/
[data-theme=light],
:root:not([data-theme=dark]) {
--pico-background-color: #fff;
--pico-color: hsl(205deg, 20%, 32%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: hsl(205deg, 20%, 94%);
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 90%, 32%);
--pico-primary-focus: rgba(16, 149, 193, 0.125);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 20%, 32%);
--pico-secondary-focus: rgba(89, 107, 120, 0.125);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 30%, 15%);
--pico-contrast-hover: #000;
--pico-contrast-focus: rgba(89, 107, 120, 0.125);
--pico-contrast-inverse: #fff;
--pico-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(27, 40, 50, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(27, 40, 50, 0.024), 0.0625rem 0.125rem 0.75rem rgba(27, 40, 50, 0.03), 0.1125rem 0.225rem 1.35rem rgba(27, 40, 50, 0.036), 0.2085rem 0.417rem 2.502rem rgba(27, 40, 50, 0.04302), 0.5rem 1rem 6rem rgba(27, 40, 50, 0.06), 0 0 0 0.0625rem rgba(27, 40, 50, 0.015);
--pico-h1-color: hsl(205deg, 30%, 15%);
--pico-h2-color: #24333e;
--pico-h3-color: hsl(205deg, 25%, 23%);
--pico-h4-color: #374956;
--pico-h5-color: hsl(205deg, 20%, 32%);
--pico-h6-color: #4d606d;
--pico-mark-background-color: #fff2ca;
--pico-mark-color: #543a26;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: #f6f8f9;
--pico-code-background-color: hsl(205deg, 20%, 94%);
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 40%, 50%);
--pico-code-property-color: hsl(185deg, 40%, 40%);
--pico-code-value-color: hsl(40deg, 20%, 50%);
--pico-code-comment-color: hsl(205deg, 14%, 68%);
--pico-form-element-background-color: transparent;
--pico-form-element-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: transparent;
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 18%, 86%);
--pico-form-element-disabled-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #c62828;
--pico-form-element-invalid-active-border-color: #d32f2f;
--pico-form-element-invalid-focus-color: rgba(211, 47, 47, 0.125);
--pico-form-element-valid-border-color: #388e3c;
--pico-form-element-valid-active-border-color: #43a047;
--pico-form-element-valid-focus-color: rgba(67, 160, 71, 0.125);
--pico-switch-background-color: hsl(205deg, 16%, 77%);
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: hsl(205deg, 18%, 86%);
--pico-range-active-border-color: hsl(205deg, 16%, 77%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--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);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #fbfbfc;
--pico-dropdown-background-color: #fbfbfc;
--pico-dropdown-border-color: #e1e6eb;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: hsl(205deg, 20%, 94%);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(213, 220, 226, 0.7);
--pico-progress-background-color: hsl(205deg, 18%, 86%);
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(65, 84, 98)' 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-chevron-button: 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='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-chevron-button-inverse: 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='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-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(65, 84, 98)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: light;
}
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme=light]) {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--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);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(162, 175, 185)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: dark;
}
}
[data-theme=dark] {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--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);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-box-shadow: var(--pico-box-shadow);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-loading-spinner-opacity: 0.5;
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(162, 175, 185)' stroke-width='2' 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(115, 130, 140)' stroke-width='4' 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");
color-scheme: dark;
}
progress,
[type=checkbox],
[type=radio],
[type=range] {
accent-color: var(--pico-primary);
}
/**
* 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;
@ -11,6 +314,7 @@
--pico-border-radius: 0.25rem;
--pico-border-width: 1px;
--pico-outline-width: 3px;
--pico-transition: 0.2s ease-in-out;
--pico-spacing: 1rem;
--pico-typography-spacing-vertical: 1.5rem;
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
@ -19,13 +323,11 @@
--pico-grid-spacing-horizontal: var(--pico-spacing);
--pico-form-element-spacing-vertical: 0.75rem;
--pico-form-element-spacing-horizontal: 1rem;
--pico-modal-overlay-backdrop-filter: blur(0.25rem);
--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-form-label-font-weight: var(--pico-font-weight);
--pico-transition: 0.2s ease-in-out;
--pico-modal-overlay-backdrop-filter: blur(0.25rem);
}
@media (min-width: 576px) {
:root {
@ -164,15 +466,6 @@ h5 {
--pico-typography-spacing-vertical: 1.6875rem;
}
[type=checkbox],
[type=radio] {
--pico-border-width: 2px;
}
[type=checkbox][role=switch] {
--pico-border-width: 3px;
}
thead th,
thead td,
tfoot th,
@ -195,309 +488,13 @@ kbd {
--pico-font-weight: bolder;
}
[data-theme=light],
:root:not([data-theme=dark]) {
--pico-background-color: #fff;
--pico-color: hsl(205deg, 20%, 32%);
--pico-h1-color: hsl(205deg, 30%, 15%);
--pico-h2-color: #24333e;
--pico-h3-color: hsl(205deg, 25%, 23%);
--pico-h4-color: #374956;
--pico-h5-color: hsl(205deg, 20%, 32%);
--pico-h6-color: #4d606d;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: hsl(205deg, 20%, 94%);
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 90%, 32%);
--pico-primary-focus: rgba(16, 149, 193, 0.125);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 20%, 32%);
--pico-secondary-focus: rgba(89, 107, 120, 0.125);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 30%, 15%);
--pico-contrast-hover: #000;
--pico-contrast-focus: rgba(89, 107, 120, 0.125);
--pico-contrast-inverse: #fff;
--pico-mark-background-color: #fff2ca;
--pico-mark-color: #543a26;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: transparent;
--pico-form-element-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: transparent;
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 18%, 86%);
--pico-form-element-disabled-border-color: hsl(205deg, 14%, 68%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #c62828;
--pico-form-element-invalid-active-border-color: #d32f2f;
--pico-form-element-invalid-focus-color: rgba(211, 47, 47, 0.125);
--pico-form-element-valid-border-color: #388e3c;
--pico-form-element-valid-active-border-color: #43a047;
--pico-form-element-valid-focus-color: rgba(67, 160, 71, 0.125);
--pico-switch-background-color: hsl(205deg, 16%, 77%);
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: hsl(205deg, 18%, 86%);
--pico-range-active-border-color: hsl(205deg, 16%, 77%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: #f6f8f9;
--pico-code-background-color: hsl(205deg, 20%, 94%);
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 40%, 50%);
--pico-code-property-color: hsl(185deg, 40%, 40%);
--pico-code-value-color: hsl(40deg, 20%, 50%);
--pico-code-comment-color: hsl(205deg, 14%, 68%);
--pico-accordion-border-color: var(--pico-muted-border-color);
--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);
--pico-card-box-shadow: 0.0145rem 0.029rem 0.174rem rgba(27, 40, 50, 0.01698), 0.0335rem 0.067rem 0.402rem rgba(27, 40, 50, 0.024), 0.0625rem 0.125rem 0.75rem rgba(27, 40, 50, 0.03), 0.1125rem 0.225rem 1.35rem rgba(27, 40, 50, 0.036), 0.2085rem 0.417rem 2.502rem rgba(27, 40, 50, 0.04302), 0.5rem 1rem 6rem rgba(27, 40, 50, 0.06), 0 0 0 0.0625rem rgba(27, 40, 50, 0.015);
--pico-card-sectionning-background-color: #fbfbfc;
--pico-dropdown-background-color: #fbfbfc;
--pico-dropdown-border-color: #e1e6eb;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: hsl(205deg, 20%, 94%);
--pico-modal-overlay-background-color: rgba(213, 220, 226, 0.7);
--pico-progress-background-color: hsl(205deg, 18%, 86%);
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(65, 84, 98)' 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-chevron-button: 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='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-chevron-button-inverse: 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='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-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(115, 130, 140)' stroke-width='4' 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-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(65, 84, 98)' 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-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(198, 40, 40)' 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");
--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-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(65, 84, 98)' stroke-width='2' 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-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(65, 84, 98)' 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-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(56, 142, 60)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: light;
}
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme=light]) {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--pico-contrast-inverse: #000;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-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);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(115, 130, 140)' stroke-width='4' 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-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(162, 175, 185)' 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-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(183, 28, 28)' 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");
--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-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(162, 175, 185)' stroke-width='2' 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-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(162, 175, 185)' 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-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(46, 125, 50)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: dark;
}
}
[data-theme=dark] {
--pico-background-color: #11191f;
--pico-color: hsl(205deg, 16%, 77%);
--pico-h1-color: hsl(205deg, 20%, 94%);
--pico-h2-color: #e1e6eb;
--pico-h3-color: hsl(205deg, 18%, 86%);
--pico-h4-color: #c8d1d8;
--pico-h5-color: hsl(205deg, 16%, 77%);
--pico-h6-color: #afbbc4;
--pico-muted-color: hsl(205deg, 10%, 50%);
--pico-muted-border-color: #1f2d38;
--pico-primary: hsl(195deg, 85%, 41%);
--pico-primary-hover: hsl(195deg, 80%, 50%);
--pico-primary-focus: rgba(16, 149, 193, 0.25);
--pico-primary-inverse: #fff;
--pico-secondary: hsl(205deg, 15%, 41%);
--pico-secondary-hover: hsl(205deg, 10%, 50%);
--pico-secondary-focus: rgba(115, 130, 140, 0.25);
--pico-secondary-inverse: #fff;
--pico-contrast: hsl(205deg, 20%, 94%);
--pico-contrast-hover: #fff;
--pico-contrast-focus: rgba(115, 130, 140, 0.25);
--pico-contrast-inverse: #000;
--pico-mark-background-color: #d1c284;
--pico-mark-color: #11191f;
--pico-ins-color: #388e3c;
--pico-del-color: #c62828;
--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-form-element-background-color: #11191f;
--pico-form-element-border-color: #374956;
--pico-form-element-color: var(--pico-color);
--pico-form-element-placeholder-color: var(--pico-muted-color);
--pico-form-element-active-background-color: var(--pico-form-element-background-color);
--pico-form-element-active-border-color: var(--pico-primary);
--pico-form-element-focus-color: var(--pico-primary-focus);
--pico-form-element-disabled-background-color: hsl(205deg, 25%, 23%);
--pico-form-element-disabled-border-color: hsl(205deg, 20%, 32%);
--pico-form-element-disabled-opacity: 0.5;
--pico-form-element-invalid-border-color: #b71c1c;
--pico-form-element-invalid-active-border-color: #c62828;
--pico-form-element-invalid-focus-color: rgba(198, 40, 40, 0.25);
--pico-form-element-valid-border-color: #2e7d32;
--pico-form-element-valid-active-border-color: #388e3c;
--pico-form-element-valid-focus-color: rgba(56, 142, 60, 0.25);
--pico-switch-background-color: #374956;
--pico-switch-color: var(--pico-primary-inverse);
--pico-switch-checked-background-color: var(--pico-primary);
--pico-range-border-color: #24333e;
--pico-range-active-border-color: hsl(205deg, 25%, 23%);
--pico-range-thumb-border-color: var(--pico-background-color);
--pico-range-thumb-color: var(--pico-secondary);
--pico-range-thumb-hover-color: var(--pico-secondary-hover);
--pico-range-thumb-active-color: var(--pico-primary);
--pico-table-border-color: var(--pico-muted-border-color);
--pico-table-row-stripped-background-color: rgba(115, 130, 140, 0.05);
--pico-code-background-color: #18232c;
--pico-code-color: var(--pico-muted-color);
--pico-code-kbd-background-color: var(--pico-contrast);
--pico-code-kbd-color: var(--pico-contrast-inverse);
--pico-code-tag-color: hsl(330deg, 30%, 50%);
--pico-code-property-color: hsl(185deg, 30%, 50%);
--pico-code-value-color: hsl(40deg, 10%, 50%);
--pico-code-comment-color: #4d606d;
--pico-accordion-border-color: var(--pico-muted-border-color);
--pico-accordion-active-summary-color: var(--pico-primary);
--pico-accordion-close-summary-color: var(--pico-color);
--pico-accordion-open-summary-color: var(--pico-muted-color);
--pico-card-background-color: #141e26;
--pico-card-border-color: var(--pico-card-background-color);
--pico-card-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);
--pico-card-sectionning-background-color: #18232c;
--pico-dropdown-background-color: hsl(205deg, 30%, 15%);
--pico-dropdown-border-color: #24333e;
--pico-dropdown-box-shadow: var(--pico-card-box-shadow);
--pico-dropdown-color: var(--pico-color);
--pico-dropdown-hover-background-color: rgba(36, 51, 62, 0.75);
--pico-modal-overlay-background-color: rgba(36, 51, 62, 0.8);
--pico-progress-background-color: #24333e;
--pico-progress-color: var(--pico-primary);
--pico-loading-spinner-opacity: 0.5;
--pico-tooltip-background-color: var(--pico-contrast);
--pico-tooltip-color: var(--pico-contrast-inverse);
--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-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(162, 175, 185)' 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-chevron-button: 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='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-chevron-button-inverse: 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(0, 0, 0)' 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-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(115, 130, 140)' stroke-width='4' 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-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(162, 175, 185)' 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-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(183, 28, 28)' 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");
--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-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(162, 175, 185)' stroke-width='2' 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-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(162, 175, 185)' 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-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(46, 125, 50)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
color-scheme: dark;
}
progress,
[type=checkbox],
[type=radio],
[type=range] {
accent-color: var(--pico-primary);
[type=radio] {
--pico-border-width: 2px;
}
[type=checkbox][role=switch] {
--pico-border-width: 3px;
}
/**
@ -537,29 +534,26 @@ progress,
}
/**
* Sectioning
* Container and responsive spacings for header, main, footer
* Landmarks
*/
main {
display: block;
}
body {
width: 100%;
margin: 0;
}
main {
display: block;
}
body > header,
body > main,
body > footer {
width: 100%;
margin-right: auto;
margin-left: auto;
padding: var(--pico-block-spacing-vertical) 0;
}
/**
* Container
*/
* Container
*/
.container,
.container-fluid {
width: 100%;
@ -594,16 +588,15 @@ body > footer {
/**
* Section
* Responsive spacings for section
*/
section {
margin-bottom: var(--pico-block-spacing-vertical);
}
/**
* Grid
* Minimal grid system with auto-layout columns
*/
* Grid
* Minimal grid system with auto-layout columns
*/
.grid {
grid-column-gap: var(--pico-grid-spacing-horizontal);
grid-row-gap: var(--pico-grid-spacing-vertical);
@ -635,47 +628,8 @@ figure figcaption {
}
/**
* Typography
* Link
*/
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,
figure,
form,
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);
font-size: var(--pico-font-size);
}
a,
[role=link] {
--pico-color: var(--pico-primary);
@ -723,6 +677,48 @@ a.contrast:focus,
--pico-background-color: var(--pico-contrast-focus);
}
/**
* 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,
figure,
form,
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);
font-size: var(--pico-font-size);
}
h1,
h2,
h3,
@ -1902,7 +1898,7 @@ li[role=list] > ul {
border-top-right-radius: 0;
border-top-left-radius: 0;
background-color: var(--pico-dropdown-background-color);
box-shadow: var(--pico-card-box-shadow);
box-shadow: var(--pico-dropdown-box-shadow);
color: var(--pico-dropdown-color);
white-space: nowrap;
}
@ -2160,8 +2156,8 @@ dialog article .close {
display: block;
width: 1rem;
height: 1rem;
margin-top: calc(var(--pico-block-spacing-vertical) * -0.5);
margin-bottom: var(--pico-typography-spacing-vertical);
margin-top: calc(var(--pico-spacing) * -1);
margin-bottom: var(--pico-spacing);
margin-left: auto;
background-image: var(--pico-icon-close);
background-position: center;
@ -2619,8 +2615,8 @@ textarea,
}
/**
* Reduce Motion Features
*/
* Reduce Motion Features
*/
@media (prefers-reduced-motion: reduce) {
*:not([aria-busy=true]),
:not([aria-busy=true])::before,

File diff suppressed because one or more lines are too long

2
css/pico.min.css vendored

File diff suppressed because one or more lines are too long

View file

@ -1,21 +1,19 @@
@use "sass:map";
// Config
// Settings
//
// Prefix for CSS variables
$css-var-prefix: "pico-" !default;
// Set the root element for $enable-semantic-container and $enable-responsive-spacings
// Define the root element used to target <header>, <main>, <footer>
// with $enable-semantic-container and $enable-responsive-spacings
$semantic-root-element: "body" !default;
// Enable <header>, <main>, <footer> inside $semantic-root-element as containers
$enable-semantic-container: false !default;
// Enable .container and .container-fluid
$enable-class-container: true !default;
// Enable a centered viewport for <header>, <main>, <footer> inside $enable-semantic-container
// Enable a centered viewport for <header>, <main>, <footer> inside $semantic-root-element
// Fluid layout if disabled
$enable-viewport: true !default;
@ -31,9 +29,6 @@ $enable-responsive-typography: true !default;
// .classless version if disabled
$enable-classes: true !default;
// Enable .grid class
$enable-grid: true !default;
// Enable transitions
$enable-transitions: true !default;
@ -44,33 +39,87 @@ $enable-important: true !default;
$breakpoints: () !default;
$breakpoints: map.deep-merge(
(
// Small (landscape phones)
sm: (
breakpoint: 576px,
viewport: 510px,
root-font-size: 17px,
),
// Small (landscape phones)
sm:
(
breakpoint: 576px,
viewport: 510px,
root-font-size: 17px,
),
// Medium (tablets)
md: (
breakpoint: 768px,
viewport: 700px,
root-font-size: 18px,
),
md:
(
breakpoint: 768px,
viewport: 700px,
root-font-size: 18px,
),
// Large (desktops)
lg: (
breakpoint: 992px,
viewport: 920px,
root-font-size: 19px,
),
lg:
(
breakpoint: 992px,
viewport: 920px,
root-font-size: 19px,
),
// Extra large (large desktops)
xl: (
breakpoint: 1200px,
viewport: 1130px,
root-font-size: 20px,
),
xl:
(
breakpoint: 1200px,
viewport: 1130px,
root-font-size: 20px,
)
),
$breakpoints
);
// Modules to export
$modules: () !default;
$modules: map.merge(
(
// Theme
"themes/default": true,
// Layout
"layout/document": true,
"layout/landmarks": true,
"layout/container": true,
"layout/section": true,
"layout/grid": true,
"layout/scroller": true,
// Content
"content/link": true,
"content/typography": true,
"content/embedded": true,
"content/button": true,
"content/table": true,
"content/code": true,
"content/miscs": true,
// Forms
"forms/basics": true,
"forms/checkbox-radio-switch": true,
"forms/input-color": true,
"forms/input-date": true,
"forms/input-file": true,
"forms/input-range": true,
"forms/input-search": true,
// Components
"components/accordion": true,
"components/card": true,
"components/dropdown": true,
"components/loading": true,
"components/modal": true,
"components/nav": true,
"components/progress": true,
"components/tooltip": true,
// Utilities
"utilities/accessibility": true,
"utilities/reduce-motion": true
),
$modules
);
// // Shortcut for CSS vars prefix
$✨: --#{$css-var-prefix};

View file

@ -1,117 +1,120 @@
@use "sass:map";
@use "../settings" as *;
/**
* Accordion (<details>)
*/
@if map.get($modules, "components/accordion") {
/**
* Accordion (<details>)
*/
details {
display: block;
margin-bottom: var(#{$}spacing);
padding-bottom: var(#{$}spacing);
border-bottom: var(#{$}border-width) solid var(#{$}accordion-border-color);
details {
display: block;
margin-bottom: var(#{$}spacing);
padding-bottom: var(#{$}spacing);
border-bottom: var(#{$}border-width) solid var(#{$}accordion-border-color);
summary {
line-height: 1rem;
list-style-type: none;
cursor: pointer;
&:not([role]) {
color: var(#{$}accordion-close-summary-color);
}
@if $enable-transitions {
transition: color var(#{$}transition);
}
// Reset marker
&::-webkit-details-marker {
display: none;
}
&::marker {
display: none;
}
&::-moz-list-bullet {
summary {
line-height: 1rem;
list-style-type: none;
}
cursor: pointer;
// Marker
&::after {
display: block;
width: 1rem;
height: 1rem;
margin-inline-start: calc(var(#{$}spacing, 1rem) * 0.5);
float: right;
transform: rotate(-90deg);
background-image: var(#{$}icon-chevron);
background-position: right center;
background-size: 1rem auto;
background-repeat: no-repeat;
content: "";
&:not([role]) {
color: var(#{$}accordion-close-summary-color);
}
@if $enable-transitions {
transition: transform var(#{$}transition);
transition: color var(#{$}transition);
}
}
&:focus {
outline: none;
&:not([role="button"]) {
color: var(#{$}accordion-active-summary-color);
// Reset marker
&::-webkit-details-marker {
display: none;
}
}
// Type button
&[role="button"] {
width: 100%;
text-align: left;
&::marker {
display: none;
}
&::-moz-list-bullet {
list-style-type: none;
}
// Marker
&::after {
height: calc(1rem * var(#{$}line-height, 1.5));
background-image: var(#{$}icon-chevron-button);
display: block;
width: 1rem;
height: 1rem;
margin-inline-start: calc(var(#{$}spacing, 1rem) * 0.5);
float: right;
transform: rotate(-90deg);
background-image: var(#{$}icon-chevron);
background-position: right center;
background-size: 1rem auto;
background-repeat: no-repeat;
content: "";
@if $enable-transitions {
transition: transform var(#{$}transition);
}
}
@if $enable-classes {
// .contrast
&:not(.outline).contrast {
// Marker
&::after {
background-image: var(#{$}icon-chevron-button-inverse);
&:focus {
outline: none;
&:not([role="button"]) {
color: var(#{$}accordion-active-summary-color);
}
}
// Type button
&[role="button"] {
width: 100%;
text-align: left;
// Marker
&::after {
height: calc(1rem * var(#{$}line-height, 1.5));
background-image: var(#{$}icon-chevron-button);
}
@if $enable-classes {
// .contrast
&:not(.outline).contrast {
// Marker
&::after {
background-image: var(#{$}icon-chevron-button-inverse);
}
}
}
}
}
}
// Open
&[open] {
> summary {
margin-bottom: calc(var(#{$}spacing));
// Open
&[open] {
> summary {
margin-bottom: calc(var(#{$}spacing));
&:not([role]) {
&:not(:focus) {
color: var(#{$}accordion-open-summary-color);
&:not([role]) {
&:not(:focus) {
color: var(#{$}accordion-open-summary-color);
}
}
&::after {
transform: rotate(0);
}
}
}
}
&::after {
transform: rotate(0);
}
}
}
}
[dir="rtl"] {
details {
summary {
text-align: right;
&::after {
float: left;
background-position: left center;
[dir="rtl"] {
details {
summary {
text-align: right;
&::after {
float: left;
background-position: left center;
}
}
}
}

View file

@ -1,37 +1,40 @@
@use "sass:map";
@use "../settings" as *;
/**
* Card (<article>)
*/
@if map.get($modules, "components/card") {
/**
* Card (<article>)
*/
article {
margin: var(#{$}block-spacing-vertical) 0;
padding: var(#{$}block-spacing-vertical) var(#{$}block-spacing-horizontal);
border-radius: var(#{$}border-radius);
background: var(#{$}card-background-color);
box-shadow: var(#{$}card-box-shadow);
article {
margin: var(#{$}block-spacing-vertical) 0;
padding: var(#{$}block-spacing-vertical) var(#{$}block-spacing-horizontal);
border-radius: var(#{$}border-radius);
background: var(#{$}card-background-color);
box-shadow: var(#{$}card-box-shadow);
> header,
> footer {
margin-right: calc(var(#{$}block-spacing-horizontal) * -1);
margin-left: calc(var(#{$}block-spacing-horizontal) * -1);
padding: calc(var(#{$}block-spacing-vertical) * 0.66) var(#{$}block-spacing-horizontal);
background-color: var(#{$}card-sectionning-background-color);
}
> header,
> footer {
margin-right: calc(var(#{$}block-spacing-horizontal) * -1);
margin-left: calc(var(#{$}block-spacing-horizontal) * -1);
padding: calc(var(#{$}block-spacing-vertical) * 0.66) var(#{$}block-spacing-horizontal);
background-color: var(#{$}card-sectionning-background-color);
}
> header {
margin-top: calc(var(#{$}block-spacing-vertical) * -1);
margin-bottom: var(#{$}block-spacing-vertical);
border-bottom: var(#{$}border-width) solid var(#{$}card-border-color);
border-top-right-radius: var(#{$}border-radius);
border-top-left-radius: var(#{$}border-radius);
}
> header {
margin-top: calc(var(#{$}block-spacing-vertical) * -1);
margin-bottom: var(#{$}block-spacing-vertical);
border-bottom: var(#{$}border-width) solid var(#{$}card-border-color);
border-top-right-radius: var(#{$}border-radius);
border-top-left-radius: var(#{$}border-radius);
}
> footer {
margin-top: var(#{$}block-spacing-vertical);
margin-bottom: calc(var(#{$}block-spacing-vertical) * -1);
border-top: var(#{$}border-width) solid var(#{$}card-border-color);
border-bottom-right-radius: var(#{$}border-radius);
border-bottom-left-radius: var(#{$}border-radius);
> footer {
margin-top: var(#{$}block-spacing-vertical);
margin-bottom: calc(var(#{$}block-spacing-vertical) * -1);
border-top: var(#{$}border-width) solid var(#{$}card-border-color);
border-bottom-right-radius: var(#{$}border-radius);
border-bottom-left-radius: var(#{$}border-radius);
}
}
}

View file

@ -1,208 +1,216 @@
@use "sass:map";
@use "../settings" as *;
/**
* Dropdown ([role="list"])
*/
@if map.get($modules, "components/dropdown") {
/**
* Dropdown ([role="list"])
*/
// Menu
details[role="list"],
li[role="list"] {
position: relative;
}
// Menu
details[role="list"],
li[role="list"] {
position: relative;
}
details[role="list"] summary + ul,
li[role="list"] > ul {
display: flex;
z-index: 99;
position: absolute;
top: auto;
right: 0;
left: 0;
flex-direction: column;
margin: 0;
padding: 0;
border: var(#{$}border-width) solid var(#{$}dropdown-border-color);
border-radius: var(#{$}border-radius);
border-top-right-radius: 0;
border-top-left-radius: 0;
background-color: var(#{$}dropdown-background-color);
box-shadow: var(#{$}card-box-shadow);
color: var(#{$}dropdown-color);
white-space: nowrap;
details[role="list"] summary + ul,
li[role="list"] > ul {
display: flex;
z-index: 99;
position: absolute;
top: auto;
right: 0;
left: 0;
flex-direction: column;
margin: 0;
padding: 0;
border: var(#{$}border-width) solid var(#{$}dropdown-border-color);
border-radius: var(#{$}border-radius);
border-top-right-radius: 0;
border-top-left-radius: 0;
background-color: var(#{$}dropdown-background-color);
box-shadow: var(#{$}dropdown-box-shadow);
color: var(#{$}dropdown-color);
white-space: nowrap;
li {
width: 100%;
margin-bottom: 0;
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5)
var(#{$}form-element-spacing-horizontal);
list-style: none;
&:first-of-type {
margin-top: calc(var(#{$}form-element-spacing-vertical) * 0.5);
}
&:last-of-type {
margin-bottom: calc(var(#{$}form-element-spacing-vertical) * 0.5);
}
a {
display: block;
margin: calc(var(#{$}form-element-spacing-vertical) * -0.5)
calc(var(#{$}form-element-spacing-horizontal) * -1);
li {
width: 100%;
margin-bottom: 0;
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5)
var(#{$}form-element-spacing-horizontal);
overflow: hidden;
color: var(#{$}dropdown-color);
text-decoration: none;
text-overflow: ellipsis;
list-style: none;
&:hover {
background-color: var(#{$}dropdown-hover-background-color);
}
}
}
}
// Marker
details[role="list"] summary,
li[role="list"] > a {
&::after {
display: block;
width: 1rem;
height: calc(1rem * var(#{$}line-height, 1.5));
margin-inline-start: 0.5rem;
float: right;
transform: rotate(0deg);
background-position: right center;
background-size: 1rem auto;
background-repeat: no-repeat;
content: "";
}
}
// Global dropdown only
details[role="list"] {
padding: 0;
border-bottom: none;
// Style <summary> as <select>
summary {
margin-bottom: 0;
&:not([role]) {
height: calc(
1rem * var(#{$}line-height) + var(#{$}form-element-spacing-vertical) * 2 +
var(#{$}border-width) * 2
);
padding: var(#{$}form-element-spacing-vertical) var(#{$}form-element-spacing-horizontal);
border: var(#{$}border-width) solid var(#{$}form-element-border-color);
border-radius: var(#{$}border-radius);
background-color: var(#{$}form-element-background-color);
color: var(#{$}form-element-placeholder-color);
line-height: inherit;
cursor: pointer;
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
&:first-of-type {
margin-top: calc(var(#{$}form-element-spacing-vertical) * 0.5);
}
&:active,
&:focus {
border-color: var(#{$}form-element-active-border-color);
background-color: var(#{$}form-element-active-background-color);
&:last-of-type {
margin-bottom: calc(var(#{$}form-element-spacing-vertical) * 0.5);
}
&:focus {
box-shadow: 0 0 0 var(#{$}outline-width) var(#{$}form-element-focus-color);
a {
display: block;
margin: calc(var(#{$}form-element-spacing-vertical) * -0.5)
calc(var(#{$}form-element-spacing-horizontal) * -1);
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5)
var(#{$}form-element-spacing-horizontal);
overflow: hidden;
color: var(#{$}dropdown-color);
text-decoration: none;
text-overflow: ellipsis;
&:hover {
background-color: var(#{$}dropdown-hover-background-color);
}
}
}
}
// Close for details[role="list"]
&[open] summary {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
&::before {
// Marker
details[role="list"] summary,
li[role="list"] > a {
&::after {
display: block;
z-index: 1;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: none;
width: 1rem;
height: calc(1rem * var(#{$}line-height, 1.5));
margin-inline-start: 0.5rem;
float: right;
transform: rotate(0deg);
background-position: right center;
background-size: 1rem auto;
background-repeat: no-repeat;
content: "";
cursor: default;
}
}
}
// All Dropdowns inside <nav>
nav details[role="list"] summary,
nav li[role="list"] a {
display: flex;
direction: ltr;
}
// Global dropdown only
details[role="list"] {
padding: 0;
border-bottom: none;
nav details[role="list"] summary + ul,
nav li[role="list"] > ul {
min-width: fit-content;
border-radius: var(#{$}border-radius);
// Style <summary> as <select>
summary {
margin-bottom: 0;
li a {
border-radius: 0;
}
}
&:not([role]) {
height: calc(
1rem *
var(#{$}line-height) +
var(#{$}form-element-spacing-vertical) *
2 +
var(#{$}border-width) *
2
);
padding: var(#{$}form-element-spacing-vertical)
var(#{$}form-element-spacing-horizontal);
border: var(#{$}border-width) solid var(#{$}form-element-border-color);
border-radius: var(#{$}border-radius);
background-color: var(#{$}form-element-background-color);
color: var(#{$}form-element-placeholder-color);
line-height: inherit;
cursor: pointer;
// Dropdowns inside <nav> as nested <details>
nav details[role="list"] {
summary,
summary:not([role]) {
height: auto;
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
}
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
}
&[open] summary {
border-radius: var(#{$}border-radius);
}
&:active,
&:focus {
border-color: var(#{$}form-element-active-border-color);
background-color: var(#{$}form-element-active-background-color);
}
summary + ul {
margin-top: var(#{$}outline-width);
margin-inline-start: 0;
}
&:focus {
box-shadow: 0 0 0 var(#{$}outline-width) var(#{$}form-element-focus-color);
}
}
}
summary[role="link"] {
margin-bottom: calc(var(#{$}nav-link-spacing-vertical) * -1);
line-height: var(#{$}line-height);
// Close for details[role="list"]
&[open] summary {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
+ ul {
margin-top: calc(var(#{$}nav-link-spacing-vertical) + var(#{$}outline-width));
margin-inline-start: calc(var(#{$}nav-link-spacing-horizontal) * -1);
&::before {
display: block;
z-index: 1;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: none;
content: "";
cursor: default;
}
}
}
}
// Dropdowns inside a <nav> without using <details>
li[role="list"] {
// Open on hover (for mobile)
// or on active/focus (for keyboard navigation)
&:hover > ul,
a:active ~ ul,
a:focus ~ ul {
// All Dropdowns inside <nav>
nav details[role="list"] summary,
nav li[role="list"] a {
display: flex;
direction: ltr;
}
> ul {
display: none;
margin-top: calc(var(#{$}nav-link-spacing-vertical) + var(#{$}outline-width));
margin-inline-start: calc(
var(#{$}nav-element-spacing-horizontal) - var(#{$}nav-link-spacing-horizontal)
);
nav details[role="list"] summary + ul,
nav li[role="list"] > ul {
min-width: fit-content;
border-radius: var(#{$}border-radius);
li a {
border-radius: 0;
}
}
> a::after {
background-image: var(#{$}icon-chevron);
// Dropdowns inside <nav> as nested <details>
nav details[role="list"] {
summary,
summary:not([role]) {
height: auto;
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
}
&[open] summary {
border-radius: var(#{$}border-radius);
}
summary + ul {
margin-top: var(#{$}outline-width);
margin-inline-start: 0;
}
summary[role="link"] {
margin-bottom: calc(var(#{$}nav-link-spacing-vertical) * -1);
line-height: var(#{$}line-height);
+ ul {
margin-top: calc(var(#{$}nav-link-spacing-vertical) + var(#{$}outline-width));
margin-inline-start: calc(var(#{$}nav-link-spacing-horizontal) * -1);
}
}
}
// Dropdowns inside a <nav> without using <details>
li[role="list"] {
// Open on hover (for mobile)
// or on active/focus (for keyboard navigation)
&:hover > ul,
a:active ~ ul,
a:focus ~ ul {
display: flex;
}
> ul {
display: none;
margin-top: calc(var(#{$}nav-link-spacing-vertical) + var(#{$}outline-width));
margin-inline-start: calc(
var(#{$}nav-element-spacing-horizontal) - var(#{$}nav-link-spacing-horizontal)
);
}
> a::after {
background-image: var(#{$}icon-chevron);
}
}
}

View file

@ -1,58 +1,61 @@
@use "sass:map";
@use "../settings" as *;
/**
* Loading ([aria-busy=true])
*/
@if map.get($modules, "components/loading") {
/**
* Loading ([aria-busy=true])
*/
// Cursor
[aria-busy="true"] {
cursor: progress;
}
// Everyting except form elements
[aria-busy="true"]:not(input, select, textarea) {
&::before {
display: inline-block;
width: 1em;
height: 1em;
border: 0.1875em solid currentColor;
border-radius: 1em;
border-right-color: transparent;
content: "";
vertical-align: text-bottom;
vertical-align: -0.125em; // Visual alignment
animation: spinner 0.75s linear infinite;
opacity: var(#{$}loading-spinner-opacity);
// Cursor
[aria-busy="true"] {
cursor: progress;
}
&:not(:empty) {
// Everything except form elements
[aria-busy="true"]:not(input, select, textarea) {
&::before {
margin-right: calc(var(#{$}spacing) * 0.5);
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: calc(var(#{$}spacing) * 0.5);
display: inline-block;
width: 1em;
height: 1em;
border: 0.1875em solid currentColor;
border-radius: 1em;
border-right-color: transparent;
content: "";
vertical-align: text-bottom;
vertical-align: -0.125em; // Visual alignment
animation: spinner 0.75s linear infinite;
opacity: var(#{$}loading-spinner-opacity);
}
&:not(:empty) {
&::before {
margin-right: calc(var(#{$}spacing) * 0.5);
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: calc(var(#{$}spacing) * 0.5);
}
}
&:empty {
text-align: center;
}
}
&:empty {
text-align: center;
// Buttons and links
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a {
&[aria-busy="true"] {
pointer-events: none;
}
}
}
// Buttons and links
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a {
&[aria-busy="true"] {
pointer-events: none;
}
}
// Animation: rotate
@keyframes spinner {
to {
transform: rotate(360deg);
// Animation: rotate
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
}

View file

@ -1,170 +1,172 @@
@use "sass:map";
@use "../settings" as *;
/**
* Modal (<dialog>)
*/
@if map.get($modules, "components/modal") {
/**
* Modal (<dialog>)
*/
:root {
#{$✨}scrollbar-width: 0px;
}
:root {
#{$✨}scrollbar-width: 0px;
}
dialog {
display: flex;
z-index: 999;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
align-items: center;
justify-content: center;
width: inherit;
min-width: 100%;
height: inherit;
min-height: 100%;
padding: var(#{$}spacing);
border: 0;
backdrop-filter: var(#{$}modal-overlay-backdrop-filter);
background-color: var(#{$}modal-overlay-background-color);
color: var(#{$}color);
dialog {
display: flex;
z-index: 999;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
align-items: center;
justify-content: center;
width: inherit;
min-width: 100%;
height: inherit;
min-height: 100%;
padding: var(#{$}spacing);
border: 0;
backdrop-filter: var(#{$}modal-overlay-backdrop-filter);
background-color: var(#{$}modal-overlay-background-color);
color: var(#{$}color);
// Content
article {
max-height: calc(100vh - var(#{$}spacing) * 2);
overflow: auto;
// Content
article {
max-height: calc(100vh - var(#{$}spacing) * 2);
overflow: auto;
@if map.get($breakpoints, "sm") {
@media (min-width: map.get(map.get($breakpoints, "sm"), "breakpoint")) {
max-width: map.get(map.get($breakpoints, "sm"), "viewport");
@if map.get($breakpoints, "sm") {
@media (min-width: map.get(map.get($breakpoints, "sm"), "breakpoint")) {
max-width: map.get(map.get($breakpoints, "sm"), "viewport");
}
}
}
@if map.get($breakpoints, "md") {
@media (min-width: map.get(map.get($breakpoints, "md"), "breakpoint")) {
max-width: map.get(map.get($breakpoints, "md"), "viewport");
@if map.get($breakpoints, "md") {
@media (min-width: map.get(map.get($breakpoints, "md"), "breakpoint")) {
max-width: map.get(map.get($breakpoints, "md"), "viewport");
}
}
}
> header,
> footer {
padding: calc(var(#{$}block-spacing-vertical) * 0.5) var(#{$}block-spacing-horizontal);
}
> header {
.close {
margin: 0;
margin-left: var(#{$}spacing);
float: right;
> header,
> footer {
padding: calc(var(#{$}block-spacing-vertical) * 0.5) var(#{$}block-spacing-horizontal);
}
}
> footer {
text-align: right;
> header {
.close {
margin: 0;
margin-left: var(#{$}spacing);
float: right;
}
}
[role="button"] {
margin-bottom: 0;
> footer {
text-align: right;
&:not(:first-of-type) {
margin-left: calc(var(#{$}spacing) * 0.5);
[role="button"] {
margin-bottom: 0;
&:not(:first-of-type) {
margin-left: calc(var(#{$}spacing) * 0.5);
}
}
}
p {
&:last-of-type {
margin: 0;
}
}
// Close icon
@if $enable-classes {
.close {
display: block;
width: 1rem;
height: 1rem;
margin-top: calc(var(#{$}spacing) * -1);
margin-bottom: var(#{$}spacing);
margin-left: auto;
background-image: var(#{$}icon-close);
background-position: center;
background-size: auto 1rem;
background-repeat: no-repeat;
opacity: 0.5;
@if $enable-transitions {
transition: opacity var(#{$}transition);
}
&:is([aria-current], :hover, :active, :focus) {
opacity: 1;
}
}
}
}
p {
&:last-of-type {
margin: 0;
// Closed state
&:not([open]),
&[open="false"] {
display: none;
}
}
// Utilities
@if $enable-classes {
.modal-is-open {
padding-right: var(#{$}scrollbar-width, 0px);
overflow: hidden;
pointer-events: none;
dialog {
pointer-events: auto;
}
}
}
// Close icon
@if $enable-classes {
.close {
display: block;
width: 1rem;
height: 1rem;
margin-top: calc(var(#{$}block-spacing-vertical) * -0.5);
margin-bottom: var(#{$}typography-spacing-vertical);
margin-left: auto;
background-image: var(#{$}icon-close);
background-position: center;
background-size: auto 1rem;
background-repeat: no-repeat;
opacity: 0.5;
// Animations
@if $enable-classes and $enable-transitions {
$animation-duration: 0.2s;
@if $enable-transitions {
transition: opacity var(#{$}transition);
}
:where(.modal-is-opening, .modal-is-closing) {
dialog,
dialog > article {
animation-duration: $animation-duration;
animation-timing-function: ease-in-out;
animation-fill-mode: both;
}
&:is([aria-current], :hover, :active, :focus) {
opacity: 1;
dialog {
animation-duration: ($animation-duration * 4);
animation-name: modal-overlay;
> article {
animation-delay: $animation-duration;
animation-name: modal;
}
}
}
}
// Closed state
&:not([open]),
&[open="false"] {
display: none;
}
}
// Utilities
@if $enable-classes {
.modal-is-open {
padding-right: var(#{$}scrollbar-width, 0px);
overflow: hidden;
pointer-events: none;
dialog {
pointer-events: auto;
}
}
}
// Animations
@if ($enable-classes and $enable-transitions) {
$animation-duration: 0.2s;
:where(.modal-is-opening, .modal-is-closing) {
dialog,
dialog > article {
animation-duration: $animation-duration;
animation-timing-function: ease-in-out;
animation-fill-mode: both;
.modal-is-closing {
dialog,
dialog > article {
animation-delay: 0s;
animation-direction: reverse;
}
}
dialog {
animation-duration: ($animation-duration * 4);
animation-name: modal-overlay;
@keyframes modal-overlay {
from {
backdrop-filter: none;
background-color: transparent;
}
}
> article {
animation-delay: $animation-duration;
animation-name: modal;
@keyframes modal {
from {
transform: translateY(-100%);
opacity: 0;
}
}
}
.modal-is-closing {
dialog,
dialog > article {
animation-delay: 0s;
animation-direction: reverse;
}
}
@keyframes modal-overlay {
from {
backdrop-filter: none;
background-color: transparent;
}
}
@keyframes modal {
from {
transform: translateY(-100%);
opacity: 0;
}
}
}

View file

@ -1,139 +1,142 @@
@use "sass:map";
@use "../settings" as *;
/**
* Nav
*/
@if map.get($modules, "components/nav") {
/**
* Nav
*/
// Reboot based on :
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
// Reboot based on :
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
// Prevent VoiceOver from ignoring list semantics in Safari (opinionated)
:where(nav li)::before {
float: left;
content: "\200B";
}
// Pico
//
// Horizontal Nav
nav,
nav ul {
display: flex;
}
nav {
justify-content: space-between;
ol,
ul {
align-items: center;
margin-bottom: 0;
padding: 0;
list-style: none;
&:first-of-type {
margin-left: calc(var(#{$}nav-element-spacing-horizontal) * -1);
}
&:last-of-type {
margin-right: calc(var(#{$}nav-element-spacing-horizontal) * -1);
}
// Prevent VoiceOver from ignoring list semantics in Safari (opinionated)
:where(nav li)::before {
float: left;
content: "\200B";
}
li {
display: inline-block;
margin: 0;
padding: var(#{$}nav-element-spacing-vertical) var(#{$}nav-element-spacing-horizontal);
// Pico
//
// Minimal support for buttons and forms elements
> * {
#{$✨}spacing: 0;
}
// Horizontal Nav
nav,
nav ul {
display: flex;
}
:where(a, [role="link"]) {
display: inline-block;
margin: calc(var(#{$}nav-link-spacing-vertical) * -1)
calc(var(#{$}nav-link-spacing-horizontal) * -1);
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
border-radius: var(#{$}border-radius);
text-decoration: none;
nav {
justify-content: space-between;
&:is([aria-current], :hover, :active, :focus) {
text-decoration: none;
}
}
ol,
ul {
align-items: center;
margin-bottom: 0;
padding: 0;
list-style: none;
// Breadcrumb
&[aria-label="breadcrumb"] {
align-items: center;
justify-content: start;
& ul li {
&:not(:first-child) {
margin-inline-start: var(#{$}nav-link-spacing-horizontal);
&:first-of-type {
margin-left: calc(var(#{$}nav-element-spacing-horizontal) * -1);
}
&:last-of-type {
margin-right: calc(var(#{$}nav-element-spacing-horizontal) * -1);
}
}
&:not(:last-child) {
::after {
position: absolute;
width: calc(var(#{$}nav-link-spacing-horizontal) * 2);
margin-inline-start: calc(var(#{$}nav-link-spacing-horizontal) / 2);
content: "/";
color: var(#{$}muted-color);
text-align: center;
li {
display: inline-block;
margin: 0;
padding: var(#{$}nav-element-spacing-vertical) var(#{$}nav-element-spacing-horizontal);
// Minimal support for buttons and forms elements
> * {
#{$✨}spacing: 0;
}
}
:where(a, [role="link"]) {
display: inline-block;
margin: calc(var(#{$}nav-link-spacing-vertical) * -1)
calc(var(#{$}nav-link-spacing-horizontal) * -1);
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
border-radius: var(#{$}border-radius);
text-decoration: none;
&:is([aria-current], :hover, :active, :focus) {
text-decoration: none;
}
}
// Breadcrumb
&[aria-label="breadcrumb"] {
align-items: center;
justify-content: start;
& ul li {
&:not(:first-child) {
margin-inline-start: var(#{$}nav-link-spacing-horizontal);
}
&:not(:last-child) {
::after {
position: absolute;
width: calc(var(#{$}nav-link-spacing-horizontal) * 2);
margin-inline-start: calc(var(#{$}nav-link-spacing-horizontal) / 2);
content: "/";
color: var(#{$}muted-color);
text-align: center;
}
}
}
& a[aria-current] {
background-color: transparent;
color: inherit;
text-decoration: none;
pointer-events: none;
}
}
& a[aria-current] {
background-color: transparent;
color: inherit;
text-decoration: none;
pointer-events: none;
// Minimal support for role="button"
[role="button"] {
margin-right: inherit;
margin-left: inherit;
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
}
}
// Minimal support for role="button"
[role="button"] {
margin-right: inherit;
margin-left: inherit;
padding: var(#{$}nav-link-spacing-vertical) var(#{$}nav-link-spacing-horizontal);
}
}
// Vertical Nav
aside {
nav,
ol,
ul,
li {
display: block;
}
li {
padding: calc(var(#{$}nav-element-spacing-vertical) * 0.5)
var(#{$}nav-element-spacing-horizontal);
a {
// Vertical Nav
aside {
nav,
ol,
ul,
li {
display: block;
}
// Minimal support for links as buttons
[role="button"] {
margin: inherit;
li {
padding: calc(var(#{$}nav-element-spacing-vertical) * 0.5)
var(#{$}nav-element-spacing-horizontal);
a {
display: block;
}
// Minimal support for links as buttons
[role="button"] {
margin: inherit;
}
}
}
}
// Breadcrumb RTL
[dir="rtl"] {
nav {
&[aria-label="breadcrumb"] {
& ul li {
&:not(:last-child) {
::after {
content: "\\";
// Breadcrumb RTL
[dir="rtl"] {
nav {
&[aria-label="breadcrumb"] {
& ul li {
&:not(:last-child) {
::after {
content: "\\";
}
}
}
}

View file

@ -1,91 +1,94 @@
@use "sass:map";
@use "../settings" as *;
/**
* Progress
*/
@if map.get($modules, "components/progress") {
/**
* Progress
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Add the correct display in Edge 18- and IE
// 2. Add the correct vertical alignment in Chrome, Edge, and Firefox
progress {
display: inline-block; // 1
vertical-align: baseline; // 2
}
// 1. Add the correct display in Edge 18- and IE
// 2. Add the correct vertical alignment in Chrome, Edge, and Firefox
progress {
display: inline-block; // 1
vertical-align: baseline; // 2
}
// Pico
//
// Pico
//
progress {
// Reset the default appearance
-webkit-appearance: none;
-moz-appearance: none;
progress {
// Reset the default appearance
-webkit-appearance: none;
-moz-appearance: none;
// Styles
display: inline-block;
appearance: none;
width: 100%;
height: 0.5rem;
margin-bottom: calc(var(#{$}spacing) * 0.5);
overflow: hidden;
// Styles
display: inline-block;
appearance: none;
width: 100%;
height: 0.5rem;
margin-bottom: calc(var(#{$}spacing) * 0.5);
overflow: hidden;
// Remove Firefox and Opera border
border: 0;
border-radius: var(#{$}border-radius);
background-color: var(#{$}progress-background-color);
// IE10 uses `color` to set the bar background-color
color: var(#{$}progress-color);
&::-webkit-progress-bar {
// Remove Firefox and Opera border
border: 0;
border-radius: var(#{$}border-radius);
background: none;
}
&[value]::-webkit-progress-value {
background-color: var(#{$}progress-color);
}
&::-moz-progress-bar {
background-color: var(#{$}progress-color);
}
background-color: var(#{$}progress-background-color);
// Indeterminate state
@media (prefers-reduced-motion: no-preference) {
&:indeterminate {
background: var(#{$}progress-background-color)
linear-gradient(
to right,
var(#{$}progress-color) 30%,
var(#{$}progress-background-color) 30%
)
top left / 150% 150% no-repeat;
animation: progress-indeterminate 1s linear infinite;
// IE10 uses `color` to set the bar background-color
color: var(#{$}progress-color);
&[value]::-webkit-progress-value {
background-color: transparent;
}
&::-moz-progress-bar {
background-color: transparent;
&::-webkit-progress-bar {
border-radius: var(#{$}border-radius);
background: none;
}
&[value]::-webkit-progress-value {
background-color: var(#{$}progress-color);
}
&::-moz-progress-bar {
background-color: var(#{$}progress-color);
}
// Indeterminate state
@media (prefers-reduced-motion: no-preference) {
&:indeterminate {
background: var(#{$}progress-background-color)
linear-gradient(
to right,
var(#{$}progress-color) 30%,
var(#{$}progress-background-color) 30%
)
top left / 150% 150% no-repeat;
animation: progress-indeterminate 1s linear infinite;
&[value]::-webkit-progress-value {
background-color: transparent;
}
&::-moz-progress-bar {
background-color: transparent;
}
}
}
}
}
[dir="rtl"] {
@media (prefers-reduced-motion: no-preference) {
progress:indeterminate {
animation-direction: reverse;
[dir="rtl"] {
@media (prefers-reduced-motion: no-preference) {
progress:indeterminate {
animation-direction: reverse;
}
}
}
@keyframes progress-indeterminate {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
}
@keyframes progress-indeterminate {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}

View file

@ -1,276 +1,279 @@
@use "sass:map";
@use "../settings" as *;
/**
* Tooltip ([data-tooltip])
*/
@if map.get($modules, "components/tooltip") {
/**
* Tooltip ([data-tooltip])
*/
[data-tooltip] {
position: relative;
[data-tooltip] {
position: relative;
&:not(a, button, input) {
border-bottom: 1px dotted;
text-decoration: none;
cursor: help;
}
&:not(a, button, input) {
border-bottom: 1px dotted;
text-decoration: none;
cursor: help;
}
&[data-placement="top"]::before,
&[data-placement="top"]::after,
&::before,
&::after {
display: block;
z-index: 99;
position: absolute;
bottom: 100%;
left: 50%;
padding: 0.25rem 0.5rem;
overflow: hidden;
transform: translate(-50%, -0.25rem);
border-radius: var(#{$}border-radius);
background: var(#{$}tooltip-background-color);
content: attr(data-tooltip);
color: var(#{$}tooltip-color);
font-style: normal;
font-weight: var(#{$}font-weight);
font-size: 0.875rem;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0;
pointer-events: none;
}
// Caret
&[data-placement="top"]::after,
&::after {
padding: 0;
transform: translate(-50%, 0rem);
border-top: 0.3rem solid;
border-right: 0.3rem solid transparent;
border-left: 0.3rem solid transparent;
border-radius: 0;
background-color: transparent;
content: "";
color: var(#{$}tooltip-background-color);
}
&[data-placement="bottom"] {
&[data-placement="top"]::before,
&[data-placement="top"]::after,
&::before,
&::after {
top: 100%;
bottom: auto;
transform: translate(-50%, 0.25rem);
display: block;
z-index: 99;
position: absolute;
bottom: 100%;
left: 50%;
padding: 0.25rem 0.5rem;
overflow: hidden;
transform: translate(-50%, -0.25rem);
border-radius: var(#{$}border-radius);
background: var(#{$}tooltip-background-color);
content: attr(data-tooltip);
color: var(#{$}tooltip-color);
font-style: normal;
font-weight: var(#{$}font-weight);
font-size: 0.875rem;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0;
pointer-events: none;
}
&:after {
transform: translate(-50%, -0.3rem);
border: 0.3rem solid transparent;
border-bottom: 0.3rem solid;
}
}
&[data-placement="left"] {
&::before,
// Caret
&[data-placement="top"]::after,
&::after {
top: 50%;
right: 100%;
bottom: auto;
left: auto;
transform: translate(-0.25rem, -50%);
padding: 0;
transform: translate(-50%, 0rem);
border-top: 0.3rem solid;
border-right: 0.3rem solid transparent;
border-left: 0.3rem solid transparent;
border-radius: 0;
background-color: transparent;
content: "";
color: var(#{$}tooltip-background-color);
}
&:after {
transform: translate(0.3rem, -50%);
border: 0.3rem solid transparent;
border-left: 0.3rem solid;
}
}
&[data-placement="right"] {
&::before,
&::after {
top: 50%;
right: auto;
bottom: auto;
left: 100%;
transform: translate(0.25rem, -50%);
}
&:after {
transform: translate(-0.3rem, -50%);
border: 0.3rem solid transparent;
border-right: 0.3rem solid;
}
}
// Display
&:focus,
&:hover {
&::before,
&::after {
opacity: 1;
}
}
@if $enable-transitions {
// Animations, excluding touch devices
@media (hover: hover) and (pointer: fine) {
&[data-placement="bottom"]:focus,
&[data-placement="bottom"]:hover &:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-top;
}
&::after {
animation-name: tooltip-caret-slide-top;
}
}
&[data-placement="bottom"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-bottom;
}
&::after {
animation-name: tooltip-caret-slide-bottom;
}
}
}
&[data-placement="left"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-left;
}
&::after {
animation-name: tooltip-caret-slide-left;
}
}
}
&[data-placement="right"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-right;
}
&::after {
animation-name: tooltip-caret-slide-right;
}
}
}
}
@keyframes tooltip-slide-top {
from {
transform: translate(-50%, 0.75rem);
opacity: 0;
}
to {
transform: translate(-50%, -0.25rem);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-top {
from {
opacity: 0;
}
50% {
transform: translate(-50%, -0.25rem);
opacity: 0;
}
to {
transform: translate(-50%, 0rem);
opacity: 1;
}
}
@keyframes tooltip-slide-bottom {
from {
transform: translate(-50%, -0.75rem);
opacity: 0;
}
to {
&[data-placement="bottom"] {
&::before,
&::after {
top: 100%;
bottom: auto;
transform: translate(-50%, 0.25rem);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-bottom {
from {
opacity: 0;
}
50% {
transform: translate(-50%, -0.5rem);
opacity: 0;
}
to {
&:after {
transform: translate(-50%, -0.3rem);
opacity: 1;
border: 0.3rem solid transparent;
border-bottom: 0.3rem solid;
}
}
@keyframes tooltip-slide-left {
from {
transform: translate(0.75rem, -50%);
opacity: 0;
}
to {
&[data-placement="left"] {
&::before,
&::after {
top: 50%;
right: 100%;
bottom: auto;
left: auto;
transform: translate(-0.25rem, -50%);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-left {
from {
opacity: 0;
}
50% {
transform: translate(0.05rem, -50%);
opacity: 0;
}
to {
&:after {
transform: translate(0.3rem, -50%);
opacity: 1;
border: 0.3rem solid transparent;
border-left: 0.3rem solid;
}
}
@keyframes tooltip-slide-right {
from {
transform: translate(-0.75rem, -50%);
opacity: 0;
}
to {
&[data-placement="right"] {
&::before,
&::after {
top: 50%;
right: auto;
bottom: auto;
left: 100%;
transform: translate(0.25rem, -50%);
}
&:after {
transform: translate(-0.3rem, -50%);
border: 0.3rem solid transparent;
border-right: 0.3rem solid;
}
}
// Display
&:focus,
&:hover {
&::before,
&::after {
opacity: 1;
}
}
@keyframes tooltip-caret-slide-right {
from {
opacity: 0;
@if $enable-transitions {
// Animations, excluding touch devices
@media (hover: hover) and (pointer: fine) {
&[data-placement="bottom"]:focus,
&[data-placement="bottom"]:hover &:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-top;
}
&::after {
animation-name: tooltip-caret-slide-top;
}
}
&[data-placement="bottom"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-bottom;
}
&::after {
animation-name: tooltip-caret-slide-bottom;
}
}
}
&[data-placement="left"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-left;
}
&::after {
animation-name: tooltip-caret-slide-left;
}
}
}
&[data-placement="right"] {
&:focus,
&:hover {
&::before,
&::after {
animation-duration: 0.2s;
animation-name: tooltip-slide-right;
}
&::after {
animation-name: tooltip-caret-slide-right;
}
}
}
}
50% {
transform: translate(-0.05rem, -50%);
opacity: 0;
@keyframes tooltip-slide-top {
from {
transform: translate(-50%, 0.75rem);
opacity: 0;
}
to {
transform: translate(-50%, -0.25rem);
opacity: 1;
}
}
to {
transform: translate(-0.3rem, -50%);
opacity: 1;
@keyframes tooltip-caret-slide-top {
from {
opacity: 0;
}
50% {
transform: translate(-50%, -0.25rem);
opacity: 0;
}
to {
transform: translate(-50%, 0rem);
opacity: 1;
}
}
@keyframes tooltip-slide-bottom {
from {
transform: translate(-50%, -0.75rem);
opacity: 0;
}
to {
transform: translate(-50%, 0.25rem);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-bottom {
from {
opacity: 0;
}
50% {
transform: translate(-50%, -0.5rem);
opacity: 0;
}
to {
transform: translate(-50%, -0.3rem);
opacity: 1;
}
}
@keyframes tooltip-slide-left {
from {
transform: translate(0.75rem, -50%);
opacity: 0;
}
to {
transform: translate(-0.25rem, -50%);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-left {
from {
opacity: 0;
}
50% {
transform: translate(0.05rem, -50%);
opacity: 0;
}
to {
transform: translate(0.3rem, -50%);
opacity: 1;
}
}
@keyframes tooltip-slide-right {
from {
transform: translate(-0.75rem, -50%);
opacity: 0;
}
to {
transform: translate(0.25rem, -50%);
opacity: 1;
}
}
@keyframes tooltip-caret-slide-right {
from {
opacity: 0;
}
50% {
transform: translate(-0.05rem, -50%);
opacity: 0;
}
to {
transform: translate(-0.3rem, -50%);
opacity: 1;
}
}
}
}

View file

@ -1,182 +1,185 @@
@use "sass:map";
@use "../settings" as *;
/**
* Button
*/
@if map.get($modules, "content/button") {
/**
* Button
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Change the font styles in all browsers
// 2. Remove the margin on controls in Safari
// 3. Show the overflow in Edge
button {
margin: 0; // 2
overflow: visible; // 3
font-family: inherit; // 1
text-transform: none; // 1
}
// Correct the inability to style buttons in iOS and Safari
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
// Pico
//
button {
display: block;
width: 100%;
margin-bottom: var(#{$}spacing);
}
[role="button"] {
display: inline-block;
text-decoration: none;
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
[role="button"] {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
#{$✨}color: var(#{$}primary-inverse);
#{$✨}box-shadow: var(#{$}button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
padding: var(#{$}form-element-spacing-vertical) var(#{$}form-element-spacing-horizontal);
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: 1rem;
line-height: var(#{$}line-height);
text-align: center;
cursor: pointer;
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
// 1. Change the font styles in all browsers
// 2. Remove the margin on controls in Safari
// 3. Show the overflow in Edge
button {
margin: 0; // 2
overflow: visible; // 3
font-family: inherit; // 1
text-transform: none; // 1
}
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}primary-hover);
#{$✨}border-color: var(#{$}primary-hover);
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
// Correct the inability to style buttons in iOS and Safari
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
// Pico
//
button {
display: block;
width: 100%;
margin-bottom: var(#{$}spacing);
}
[role="button"] {
display: inline-block;
text-decoration: none;
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
[role="button"] {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
#{$✨}color: var(#{$}primary-inverse);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}primary-focus);
}
}
// .secondary, .contrast & .outline
@if $enable-classes {
// Secondary
:is(button, input[type="submit"], input[type="button"], [role="button"]).secondary,
input[type="reset"] {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
#{$✨}box-shadow: var(#{$}button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
padding: var(#{$}form-element-spacing-vertical) var(#{$}form-element-spacing-horizontal);
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: 1rem;
line-height: var(#{$}line-height);
text-align: center;
cursor: pointer;
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
}
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
#{$✨}background-color: var(#{$}primary-hover);
#{$✨}border-color: var(#{$}primary-hover);
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
#{$✨}color: var(#{$}primary-inverse);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}primary-focus);
}
}
// .secondary, .contrast & .outline
@if $enable-classes {
// Secondary
:is(button, input[type="submit"], input[type="button"], [role="button"]).secondary,
input[type="reset"] {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
cursor: pointer;
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
#{$✨}color: var(#{$}secondary-inverse);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}secondary-focus);
}
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}secondary-focus);
}
}
// Contrast
:is(button, input[type="submit"], input[type="button"], [role="button"]).contrast {
#{$✨}background-color: var(#{$}contrast);
#{$✨}border-color: var(#{$}contrast);
#{$✨}color: var(#{$}contrast-inverse);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}contrast-hover);
#{$✨}border-color: var(#{$}contrast-hover);
// Contrast
:is(button, input[type="submit"], input[type="button"], [role="button"]).contrast {
#{$✨}background-color: var(#{$}contrast);
#{$✨}border-color: var(#{$}contrast);
#{$✨}color: var(#{$}contrast-inverse);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}contrast-hover);
#{$✨}border-color: var(#{$}contrast-hover);
#{$✨}color: var(#{$}contrast-inverse);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}contrast-focus);
}
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}contrast-focus);
}
}
// Outline (primary)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline,
input[type="reset"].outline {
#{$✨}background-color: transparent;
#{$✨}color: var(#{$}primary);
&:is([aria-current], :hover, :active, :focus) {
// Outline (primary)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline,
input[type="reset"].outline {
#{$✨}background-color: transparent;
#{$✨}color: var(#{$}primary-hover);
#{$✨}color: var(#{$}primary);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: transparent;
#{$✨}color: var(#{$}primary-hover);
}
}
// Outline (secondary)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.secondary,
input[type="reset"].outline {
#{$✨}color: var(#{$}secondary);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}secondary-hover);
}
}
// Outline (contrast)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.contrast {
#{$✨}color: var(#{$}contrast);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}contrast-hover);
}
}
} @else {
// Secondary button without .class
input[type="reset"] {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
cursor: pointer;
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}secondary-focus);
}
}
}
// Outline (secondary)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.secondary,
input[type="reset"].outline {
#{$✨}color: var(#{$}secondary);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}secondary-hover);
}
}
// Outline (contrast)
:is(button, input[type="submit"], input[type="button"], [role="button"]).outline.contrast {
#{$✨}color: var(#{$}contrast);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}contrast-hover);
}
}
} @else {
// Secondary button without .class
input[type="reset"] {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
cursor: pointer;
&:is([aria-current], :hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
}
&:focus {
#{$✨}box-shadow: var(#{$}button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
0 0 0 var(#{$}outline-width) var(#{$}secondary-focus);
}
// Button [disabled]
// Links without href are disabled by default
:where(button, [type="submit"], [type="button"], [type="reset"], [role="button"])[disabled],
:where(fieldset[disabled])
:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]),
a[role="button"]:not([href]) {
opacity: 0.5;
pointer-events: none;
}
}
// Button [disabled]
// Links without href are disabled by default
:where(button, [type="submit"], [type="button"], [type="reset"], [role="button"])[disabled],
:where(fieldset[disabled])
:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]),
a[role="button"]:not([href]) {
opacity: 0.5;
pointer-events: none;
}

View file

@ -1,93 +1,96 @@
@use "sass:map";
@use "../settings" as *;
/**
* Code
*/
@if map.get($modules, "content/code") {
/**
* Code
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Correct the inheritance and scaling of font size in all browsers
// 2. Correct the odd `em` font sizing in all browsers
pre,
code,
kbd,
samp {
font-size: 0.875em; // 2
font-family: var(#{$}font-family); // 1
}
// Prevent overflow of the container in all browsers (opinionated)
pre {
-ms-overflow-style: scrollbar;
overflow: auto;
}
// Pico
//
pre,
code,
kbd {
border-radius: var(#{$}border-radius);
background: var(#{$}code-background-color);
color: var(#{$}code-color);
font-weight: var(#{$}font-weight);
line-height: initial;
}
code,
kbd {
display: inline-block;
padding: 0.375rem 0.5rem;
}
pre {
display: block;
margin-bottom: var(#{$}spacing);
overflow-x: auto;
> code {
display: block;
padding: var(#{$}spacing);
background: none;
font-size: 14px;
line-height: var(#{$}line-height);
// 1. Correct the inheritance and scaling of font size in all browsers
// 2. Correct the odd `em` font sizing in all browsers
pre,
code,
kbd,
samp {
font-size: 0.875em; // 2
font-family: var(#{$}font-family); // 1
}
}
// Code Syntax
code {
// Tags
b {
color: var(#{$}code-tag-color);
// Prevent overflow of the container in all browsers (opinionated)
pre {
-ms-overflow-style: scrollbar;
overflow: auto;
}
// Pico
//
pre,
code,
kbd {
border-radius: var(#{$}border-radius);
background: var(#{$}code-background-color);
color: var(#{$}code-color);
font-weight: var(#{$}font-weight);
line-height: initial;
}
// Properties
i {
color: var(#{$}code-property-color);
font-style: normal;
code,
kbd {
display: inline-block;
padding: 0.375rem 0.5rem;
}
// Values
u {
color: var(#{$}code-value-color);
text-decoration: none;
pre {
display: block;
margin-bottom: var(#{$}spacing);
overflow-x: auto;
> code {
display: block;
padding: var(#{$}spacing);
background: none;
font-size: 14px;
line-height: var(#{$}line-height);
}
}
// Comments
em {
color: var(#{$}code-comment-color);
font-style: normal;
// Code Syntax
code {
// Tags
b {
color: var(#{$}code-tag-color);
font-weight: var(#{$}font-weight);
}
// Properties
i {
color: var(#{$}code-property-color);
font-style: normal;
}
// Values
u {
color: var(#{$}code-value-color);
text-decoration: none;
}
// Comments
em {
color: var(#{$}code-comment-color);
font-style: normal;
}
}
// kbd
kbd {
background-color: var(#{$}code-kbd-background-color);
color: var(#{$}code-kbd-color);
vertical-align: baseline;
}
}
// kbd
kbd {
background-color: var(#{$}code-kbd-background-color);
color: var(#{$}code-kbd-color);
vertical-align: baseline;
}

View file

@ -1,50 +1,53 @@
@use "sass:map";
@use "../settings" as *;
/**
* Embedded content
*/
@if map.get($modules, "content/embedded") {
/**
* Embedded content
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Change the alignment on media elements in all browsers (opinionated)
:where(audio, canvas, iframe, img, svg, video) {
vertical-align: middle;
}
// Add the correct display in IE 9-
audio,
video {
display: inline-block;
}
// Add the correct display in iOS 4-7
audio:not([controls]) {
display: none;
height: 0;
}
// Remove the border on iframes in all browsers (opinionated)
:where(iframe) {
border-style: none;
}
// 1. Remove the border on images inside links in IE 10.
// 2. Responsive by default
img {
max-width: 100%; // 2
height: auto; // 2
border-style: none; // 1
}
// Change the fill color to match the text color in all browsers (opinionated)
:where(svg:not([fill])) {
fill: currentColor;
}
// Hide the overflow in IE
svg:not(:root) {
overflow: hidden;
// Change the alignment on media elements in all browsers (opinionated)
:where(audio, canvas, iframe, img, svg, video) {
vertical-align: middle;
}
// Add the correct display in IE 9-
audio,
video {
display: inline-block;
}
// Add the correct display in iOS 4-7
audio:not([controls]) {
display: none;
height: 0;
}
// Remove the border on iframes in all browsers (opinionated)
:where(iframe) {
border-style: none;
}
// 1. Remove the border on images inside links in IE 10.
// 2. Responsive by default
img {
max-width: 100%; // 2
height: auto; // 2
border-style: none; // 1
}
// Change the fill color to match the text color in all browsers (opinionated)
:where(svg:not([fill])) {
fill: currentColor;
}
// Hide the overflow in IE
svg:not(:root) {
overflow: hidden;
}
}

60
scss/content/_link.scss Normal file
View file

@ -0,0 +1,60 @@
@use "sass:map";
@use "../settings" as *;
@if map.get($modules, "content/link") {
/**
* Link
*/
a,
[role="link"] {
#{$✨}color: var(#{$}primary);
#{$✨}background-color: transparent;
outline: none;
background-color: var(#{$}background-color); // 1
color: var(#{$}color);
text-decoration: var(#{$}text-decoration);
@if $enable-transitions {
transition: background-color var(#{$}transition), color var(#{$}transition),
text-decoration var(#{$}transition), box-shadow var(#{$}transition);
}
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}primary-hover);
#{$✨}text-decoration: underline;
}
&:focus {
#{$✨}background-color: var(#{$}primary-focus);
}
@if $enable-classes {
// Secondary
&.secondary {
#{$✨}color: var(#{$}secondary);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}secondary-hover);
}
&:focus {
#{$✨}background-color: var(#{$}secondary-focus);
}
}
// Contrast
&.contrast {
#{$✨}color: var(#{$}contrast);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}contrast-hover);
}
&:focus {
#{$✨}background-color: var(#{$}contrast-focus);
}
}
}
}
}

View file

@ -1,34 +1,37 @@
@use "sass:map";
@use "../settings" as *;
/**
* Miscs
*/
@if map.get($modules, "content/miscs") {
/**
* Miscs
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Correct the inheritance of border color in Firefox
// 2. Add the correct box sizing in Firefox
hr {
height: 0; // 2
border: 0;
border-top: 1px solid var(#{$}muted-border-color);
color: inherit; // 1
}
// 1. Correct the inheritance of border color in Firefox
// 2. Add the correct box sizing in Firefox
hr {
height: 0; // 2
border: 0;
border-top: 1px solid var(#{$}muted-border-color);
color: inherit; // 1
}
// Add the correct display in IE 10+
[hidden],
template {
@if $enable-important {
display: none !important;
} @else {
display: none;
// Add the correct display in IE 10+
[hidden],
template {
@if $enable-important {
display: none !important;
} @else {
display: none;
}
}
// Add the correct display in IE 9-
canvas {
display: inline-block;
}
}
// Add the correct display in IE 9-
canvas {
display: inline-block;
}

View file

@ -1,52 +1,55 @@
@use "sass:map";
@use "../settings" as *;
/**
* Table
*/
@if map.get($modules, "content/table") {
/**
* Table
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Collapse border spacing in all browsers (opinionated)
// 2. Remove text indentation from table contents in Chrome, Edge, and Safari
:where(table) {
width: 100%;
border-collapse: collapse; // 1
border-spacing: 0;
text-indent: 0; // 2
}
// 1. Collapse border spacing in all browsers (opinionated)
// 2. Remove text indentation from table contents in Chrome, Edge, and Safari
:where(table) {
width: 100%;
border-collapse: collapse; // 1
border-spacing: 0;
text-indent: 0; // 2
}
// Pico
//
// Pico
//
// Cells
th,
td {
padding: calc(var(#{$}spacing) / 2) var(#{$}spacing);
border-bottom: var(#{$}border-width) solid var(#{$}table-border-color);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
text-align: left;
text-align: start;
}
// Footer
tfoot {
// Cells
th,
td {
border-top: var(#{$}border-width) solid var(#{$}table-border-color);
border-bottom: 0;
padding: calc(var(#{$}spacing) / 2) var(#{$}spacing);
border-bottom: var(#{$}border-width) solid var(#{$}table-border-color);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
text-align: left;
text-align: start;
}
}
// Striped
table {
&[role="grid"] {
tbody tr:nth-child(odd) {
background-color: var(#{$}table-row-stripped-background-color);
// Footer
tfoot {
th,
td {
border-top: var(#{$}border-width) solid var(#{$}table-border-color);
border-bottom: 0;
}
}
// Striped
table {
&[role="grid"] {
tbody tr:nth-child(odd) {
background-color: var(#{$}table-row-stripped-background-color);
}
}
}
}

View file

@ -1,266 +1,215 @@
@use "sass:map";
@use "../settings" as *;
/**
* Typography
*/
@if map.get($modules, "content/typography") {
/**
* Typography
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Add the correct font weight in Chrome, Edge, and Safari
b,
strong {
font-weight: bolder;
}
// Prevent `sub` and `sup` elements from affecting the line height in all browsers
sub,
sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
// Pico
//
address,
blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
margin-top: 0;
margin-bottom: var(#{$}typography-spacing-vertical);
color: var(#{$}color);
font-style: normal;
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
}
// Links
// 1. Remove the gray background on active links in IE 10
a,
[role="link"] {
#{$✨}color: var(#{$}primary);
#{$✨}background-color: transparent;
outline: none;
background-color: var(#{$}background-color); // 1
color: var(#{$}color);
text-decoration: var(#{$}text-decoration);
@if $enable-transitions {
transition: background-color var(#{$}transition), color var(#{$}transition),
text-decoration var(#{$}transition), box-shadow var(#{$}transition);
// Add the correct font weight in Chrome, Edge, and Safari
b,
strong {
font-weight: bolder;
}
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}primary-hover);
#{$✨}text-decoration: underline;
// Prevent `sub` and `sup` elements from affecting the line height in all browsers
sub,
sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
&:focus {
#{$✨}background-color: var(#{$}primary-focus);
// Pico
//
address,
blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
margin-top: 0;
margin-bottom: var(#{$}typography-spacing-vertical);
color: var(#{$}color);
font-style: normal;
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
}
// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: var(#{$}typography-spacing-vertical);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
font-family: var(#{$}font-family);
}
h1 {
#{$✨}color: var(#{$}h1-color);
}
h2 {
#{$✨}color: var(#{$}h2-color);
}
h3 {
#{$✨}color: var(#{$}h3-color);
}
h4 {
#{$✨}color: var(#{$}h4-color);
}
h5 {
#{$✨}color: var(#{$}h5-color);
}
h6 {
#{$✨}color: var(#{$}h6-color);
}
// Margin-top for headings after a typography block
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) {
~ :is(h1, h2, h3, h4, h5, h6) {
margin-top: var(#{$}typography-spacing-vertical);
}
}
// Heading group
@if $enable-classes == false {
hgroup {
margin-bottom: var(#{$}typography-spacing-vertical);
> * {
margin-bottom: 0;
}
> *:last-child {
#{$✨}color: var(#{$}muted-color);
#{$✨}font-weight: unset;
font-size: 1rem;
font-family: unset;
}
}
}
@if $enable-classes {
// Secondary
&.secondary {
#{$✨}color: var(#{$}secondary);
hgroup,
.headings {
margin-bottom: var(#{$}typography-spacing-vertical);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}secondary-hover);
> * {
margin-bottom: 0;
}
&:focus {
#{$✨}background-color: var(#{$}secondary-focus);
}
}
// Contrast
&.contrast {
#{$✨}color: var(#{$}contrast);
&:is([aria-current], :hover, :active, :focus) {
#{$✨}color: var(#{$}contrast-hover);
}
&:focus {
#{$✨}background-color: var(#{$}contrast-focus);
> *:last-child {
#{$✨}color: var(#{$}muted-color);
#{$✨}font-weight: unset;
font-size: 1rem;
font-family: unset;
}
}
}
}
// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: var(#{$}typography-spacing-vertical);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
font-family: var(#{$}font-family);
}
h1 {
#{$✨}color: var(#{$}h1-color);
}
h2 {
#{$✨}color: var(#{$}h2-color);
}
h3 {
#{$✨}color: var(#{$}h3-color);
}
h4 {
#{$✨}color: var(#{$}h4-color);
}
h5 {
#{$✨}color: var(#{$}h5-color);
}
h6 {
#{$✨}color: var(#{$}h6-color);
}
// Margin-top for headings after a typography block
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) {
~ :is(h1, h2, h3, h4, h5, h6) {
margin-top: var(#{$}typography-spacing-vertical);
}
}
// Heading group
@if $enable-classes == false {
hgroup {
// Paragraphs
p {
margin-bottom: var(#{$}typography-spacing-vertical);
}
> * {
margin-bottom: 0;
}
// Small
small {
font-size: var(#{$}font-size);
}
> *:last-child {
#{$✨}color: var(#{$}muted-color);
#{$✨}font-weight: unset;
font-size: 1rem;
font-family: unset;
// Lists
:where(dl, ol, ul) {
padding-right: 0;
padding-left: var(#{$}spacing);
padding-inline-start: var(#{$}spacing);
padding-inline-end: 0;
li {
margin-bottom: calc(var(#{$}typography-spacing-vertical) * 0.25);
}
}
}
@if $enable-classes {
hgroup,
.headings {
margin-bottom: var(#{$}typography-spacing-vertical);
> * {
margin-bottom: 0;
}
> *:last-child {
#{$✨}color: var(#{$}muted-color);
#{$✨}font-weight: unset;
font-size: 1rem;
font-family: unset;
// Margin-top for nested lists
// 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari
:where(dl, ol, ul) {
:is(dl, ol, ul) {
margin: 0; // 1
margin-top: calc(var(#{$}typography-spacing-vertical) * 0.25);
}
}
}
// Paragraphs
p {
margin-bottom: var(#{$}typography-spacing-vertical);
}
ul li {
list-style: square;
}
// Small
small {
font-size: var(#{$}font-size);
}
// Highlighted text
mark {
padding: 0.125rem 0.25rem;
background-color: var(#{$}mark-background-color);
color: var(#{$}mark-color);
vertical-align: baseline;
}
// Lists
:where(dl, ol, ul) {
padding-right: 0;
padding-left: var(#{$}spacing);
padding-inline-start: var(#{$}spacing);
padding-inline-end: 0;
// Blockquote
blockquote {
display: block;
margin: var(#{$}typography-spacing-vertical) 0;
padding: var(#{$}spacing);
border-right: none;
border-left: 0.25rem solid var(#{$}blockquote-border-color);
border-inline-start: 0.25rem solid var(#{$}blockquote-border-color);
border-inline-end: none;
li {
margin-bottom: calc(var(#{$}typography-spacing-vertical) * 0.25);
footer {
margin-top: calc(var(#{$}typography-spacing-vertical) * 0.5);
color: var(#{$}blockquote-footer-color);
}
}
// Abbreviations
// 1. Remove underline decoration in Chrome, Edge, IE, Opera, and Safari
abbr[title] {
border-bottom: 1px dotted;
text-decoration: none; // 1
cursor: help;
}
// Ins
ins {
color: var(#{$}ins-color);
text-decoration: none;
}
// del
del {
color: var(#{$}del-color);
}
// selection
::selection {
background-color: var(#{$}primary-focus);
}
}
// Margin-top for nested lists
// 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari
:where(dl, ol, ul) {
:is(dl, ol, ul) {
margin: 0; // 1
margin-top: calc(var(#{$}typography-spacing-vertical) * 0.25);
}
}
ul li {
list-style: square;
}
// Highlighted text
mark {
padding: 0.125rem 0.25rem;
background-color: var(#{$}mark-background-color);
color: var(#{$}mark-color);
vertical-align: baseline;
}
// Blockquote
blockquote {
display: block;
margin: var(#{$}typography-spacing-vertical) 0;
padding: var(#{$}spacing);
border-right: none;
border-left: 0.25rem solid var(#{$}blockquote-border-color);
border-inline-start: 0.25rem solid var(#{$}blockquote-border-color);
border-inline-end: none;
footer {
margin-top: calc(var(#{$}typography-spacing-vertical) * 0.5);
color: var(#{$}blockquote-footer-color);
}
}
// Abbreviations
// 1. Remove underline decoration in Chrome, Edge, IE, Opera, and Safari
abbr[title] {
border-bottom: 1px dotted;
text-decoration: none; // 1
cursor: help;
}
// Ins
ins {
color: var(#{$}ins-color);
text-decoration: none;
}
// del
del {
color: var(#{$}del-color);
}
// selection
::selection {
background-color: var(#{$}primary-focus);
}

View file

@ -1,352 +1,360 @@
@use "sass:map";
@use "../settings" as *;
/**
* Basics form elements
*/
@if map.get($modules, "forms/basics") {
/**
* Basics form elements
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Change the font styles in all browsers
// 2. Remove the margin in Firefox and Safari
input,
optgroup,
select,
textarea {
margin: 0; // 2
font-size: 1rem; // 1
line-height: var(#{$}line-height); // 1
font-family: inherit; // 1
letter-spacing: inherit; // 2
}
// Show the overflow in IE.
input {
overflow: visible;
}
// Remove the inheritance of text transform in Edge, Firefox, and IE
select {
text-transform: none;
}
// 1. Correct the text wrapping in Edge and IE
// 2. Correct the color inheritance from `fieldset` elements in IE
// 3. Remove the padding so developers are not caught out when they zero out
// `fieldset` elements in all browsers
legend {
max-width: 100%; // 1
padding: 0; // 3
color: inherit; // 2
white-space: normal; // 1
}
// 1. Remove the default vertical scrollbar in IE
textarea {
overflow: auto; // 1
}
// Remove the padding in IE 10
[type="checkbox"],
[type="radio"] {
padding: 0;
}
// Correct the cursor style of increment and decrement buttons in Safari
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
// 1. Correct the odd appearance in Chrome and Safari
// 2. Correct the outline style in Safari
[type="search"] {
-webkit-appearance: textfield; // 1
outline-offset: -2px; // 2
}
// Remove the inner padding in Chrome and Safari on macOS
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
// 1. Correct the inability to style clickable types in iOS and Safari
// 2. Change font properties to `inherit` in Safari
::-webkit-file-upload-button {
-webkit-appearance: button; // 1
font: inherit; // 2
}
// Remove the inner border and padding of focus outlines in Firefox
::-moz-focus-inner {
padding: 0;
border-style: none;
}
// Remove the focus outline in Firefox
:-moz-focusring {
outline: none;
}
// Remove the additional :invalid styles in Firefox
:-moz-ui-invalid {
box-shadow: none;
}
// Change the inconsistent appearance in IE (opinionated)
::-ms-expand {
display: none;
}
// Remove the border and padding in all browsers (opinionated)
[type="file"],
[type="range"] {
padding: 0;
border-width: 0;
}
// Pico
//
// Force height for alternatives input types
input:not([type="checkbox"], [type="radio"], [type="range"]) {
height: calc(
(1rem * var(#{$}line-height)) + (var(#{$}form-element-spacing-vertical) * 2) +
(var(#{$}border-width) * 2)
);
}
// Fieldset
fieldset {
margin: 0;
margin-bottom: var(#{$}spacing);
padding: 0;
border: 0;
}
// Label & legend
label,
fieldset legend {
display: block;
margin-bottom: calc(var(#{$}spacing) * 0.25);
font-weight: var(#{$}form-label-font-weight, var(#{$}font-weight));
}
// Blocks, 100%
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
width: 100%;
}
// Reset appearance (Not Checkboxes, Radios, Range and File)
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
select,
textarea {
appearance: none;
padding: var(#{$}form-element-spacing-vertical) var(#{$}form-element-spacing-horizontal);
}
// Commons styles
input,
select,
textarea {
#{$✨}background-color: var(#{$}form-element-background-color);
#{$✨}border-color: var(#{$}form-element-border-color);
#{$✨}color: var(#{$}form-element-color);
#{$✨}box-shadow: none;
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
// 1. Change the font styles in all browsers
// 2. Remove the margin in Firefox and Safari
input,
optgroup,
select,
textarea {
margin: 0; // 2
font-size: 1rem; // 1
line-height: var(#{$}line-height); // 1
font-family: inherit; // 1
letter-spacing: inherit; // 2
}
}
// Active & Focus
input:not([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [readonly]),
:where(select, textarea) {
&:is(:active, :focus) {
#{$✨}background-color: var(#{$}form-element-active-background-color);
// Show the overflow in IE.
input {
overflow: visible;
}
}
// Active & Focus
input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]),
:where(select, textarea) {
&:is(:active, :focus) {
#{$✨}border-color: var(#{$}form-element-active-border-color);
// Remove the inheritance of text transform in Edge, Firefox, and IE
select {
text-transform: none;
}
}
// Focus
input:not([type="submit"], [type="button"], [type="reset"], [type="range"], [type="file"], [readonly]),
select,
textarea {
&:focus {
#{$✨}box-shadow: 0 0 0 var(#{$}outline-width) var(#{$}form-element-focus-color);
// 1. Correct the text wrapping in Edge and IE
// 2. Correct the color inheritance from `fieldset` elements in IE
// 3. Remove the padding so developers are not caught out when they zero out
// `fieldset` elements in all browsers
legend {
max-width: 100%; // 1
padding: 0; // 3
color: inherit; // 2
white-space: normal; // 1
}
}
// Disabled
input:not([type="submit"], [type="button"], [type="reset"])[disabled],
select[disabled],
textarea[disabled],
:where(fieldset[disabled])
:is(input:not([type="submit"], [type="button"], [type="reset"]), select, textarea) {
#{$✨}background-color: var(#{$}form-element-disabled-background-color);
#{$✨}border-color: var(#{$}form-element-disabled-border-color);
opacity: var(#{$}form-element-disabled-opacity);
pointer-events: none;
}
// 1. Remove the default vertical scrollbar in IE
textarea {
overflow: auto; // 1
}
// Aria-invalid
:where(input, select, textarea) {
&:not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
&[aria-invalid] {
@if $enable-important {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal) !important;
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem) !important;
} @else {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal);
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
// Remove the padding in IE 10
[type="checkbox"],
[type="radio"] {
padding: 0;
}
// Correct the cursor style of increment and decrement buttons in Safari
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
// 1. Correct the odd appearance in Chrome and Safari
// 2. Correct the outline style in Safari
[type="search"] {
-webkit-appearance: textfield; // 1
outline-offset: -2px; // 2
}
// Remove the inner padding in Chrome and Safari on macOS
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
// 1. Correct the inability to style clickable types in iOS and Safari
// 2. Change font properties to `inherit` in Safari
::-webkit-file-upload-button {
-webkit-appearance: button; // 1
font: inherit; // 2
}
// Remove the inner border and padding of focus outlines in Firefox
::-moz-focus-inner {
padding: 0;
border-style: none;
}
// Remove the focus outline in Firefox
:-moz-focusring {
outline: none;
}
// Remove the additional :invalid styles in Firefox
:-moz-ui-invalid {
box-shadow: none;
}
// Change the inconsistent appearance in IE (opinionated)
::-ms-expand {
display: none;
}
// Remove the border and padding in all browsers (opinionated)
[type="file"],
[type="range"] {
padding: 0;
border-width: 0;
}
// Pico
//
// Force height for alternatives input types
input:not([type="checkbox"], [type="radio"], [type="range"]) {
height: calc(
(1rem * var(#{$}line-height)) +
(var(#{$}form-element-spacing-vertical) * 2) +
(var(#{$}border-width) * 2)
);
}
// Fieldset
fieldset {
margin: 0;
margin-bottom: var(#{$}spacing);
padding: 0;
border: 0;
}
// Label & legend
label,
fieldset legend {
display: block;
margin-bottom: calc(var(#{$}spacing) * 0.25);
font-weight: var(#{$}form-label-font-weight, var(#{$}font-weight));
}
// Blocks, 100%
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
width: 100%;
}
// Reset appearance (Not Checkboxes, Radios, Range and File)
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
select,
textarea {
appearance: none;
padding: var(#{$}form-element-spacing-vertical) var(#{$}form-element-spacing-horizontal);
}
// Commons styles
input,
select,
textarea {
#{$✨}background-color: var(#{$}form-element-background-color);
#{$✨}border-color: var(#{$}form-element-border-color);
#{$✨}color: var(#{$}form-element-color);
#{$✨}box-shadow: none;
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
}
}
// Active & Focus
input:not([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [readonly]),
:where(select, textarea) {
&:is(:active, :focus) {
#{$✨}background-color: var(#{$}form-element-active-background-color);
}
}
// Active & Focus
input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]),
:where(select, textarea) {
&:is(:active, :focus) {
#{$✨}border-color: var(#{$}form-element-active-border-color);
}
}
// Focus
input:not([type="submit"], [type="button"], [type="reset"], [type="range"], [type="file"], [readonly]),
select,
textarea {
&:focus {
#{$✨}box-shadow: 0 0 0 var(#{$}outline-width) var(#{$}form-element-focus-color);
}
}
// Disabled
input:not([type="submit"], [type="button"], [type="reset"])[disabled],
select[disabled],
textarea[disabled],
:where(fieldset[disabled])
:is(input:not([type="submit"], [type="button"], [type="reset"]), select, textarea) {
#{$✨}background-color: var(#{$}form-element-disabled-background-color);
#{$✨}border-color: var(#{$}form-element-disabled-border-color);
opacity: var(#{$}form-element-disabled-opacity);
pointer-events: none;
}
// Aria-invalid
:where(input, select, textarea) {
&:not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
&[aria-invalid] {
@if $enable-important {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem) !important;
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal) !important;
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem) !important;
} @else {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal);
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
}
background-position: center right 0.75rem;
background-size: 1rem auto;
background-repeat: no-repeat;
}
&[aria-invalid="false"] {
background-image: var(#{$}icon-valid);
}
&[aria-invalid="true"] {
background-image: var(#{$}icon-invalid);
}
}
&[aria-invalid="false"] {
#{$✨}border-color: var(#{$}form-element-valid-border-color);
&:is(:active, :focus) {
@if $enable-important {
#{$✨}border-color: var(#{$}form-element-valid-active-border-color) !important;
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-valid-focus-color) !important;
} @else {
#{$✨}border-color: var(#{$}form-element-valid-active-border-color);
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-valid-focus-color);
}
}
}
&[aria-invalid="true"] {
#{$✨}border-color: var(#{$}form-element-invalid-border-color);
&:is(:active, :focus) {
@if $enable-important {
#{$✨}border-color: var(#{$}form-element-invalid-active-border-color) !important;
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-invalid-focus-color) !important;
} @else {
#{$✨}border-color: var(#{$}form-element-invalid-active-border-color);
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-invalid-focus-color);
}
}
}
}
[dir="rtl"] {
:where(input, select, textarea) {
&:not([type="checkbox"], [type="radio"]) {
&:is([aria-invalid], [aria-invalid="true"], [aria-invalid="false"]) {
background-position: center left 0.75rem;
}
}
}
}
// Placeholder
input::placeholder,
input::-webkit-input-placeholder,
textarea::placeholder,
textarea::-webkit-input-placeholder,
select:invalid {
color: var(#{$}form-element-placeholder-color);
opacity: 1;
}
// Margin bottom (Not Checkboxes and Radios)
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
margin-bottom: var(#{$}spacing);
}
// Select
select {
// Unstyle the caret on `<select>`s in IE10+.
&::-ms-expand {
border: 0;
background-color: transparent;
}
&:not([multiple], [size]) {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal);
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
background-image: var(#{$}icon-chevron);
background-position: center right 0.75rem;
background-size: 1rem auto;
background-repeat: no-repeat;
}
&[aria-invalid="false"] {
background-image: var(#{$}icon-valid);
}
&[aria-invalid="true"] {
background-image: var(#{$}icon-invalid);
}
}
&[aria-invalid="false"] {
#{$✨}border-color: var(#{$}form-element-valid-border-color);
&:is(:active, :focus) {
@if $enable-important {
#{$✨}border-color: var(#{$}form-element-valid-active-border-color) !important;
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-valid-focus-color) !important;
} @else {
#{$✨}border-color: var(#{$}form-element-valid-active-border-color);
#{$✨}box-shadow: 0 0 0 var(#{$}outline-width) var(#{$}form-element-valid-focus-color);
}
}
}
&[aria-invalid="true"] {
#{$✨}border-color: var(#{$}form-element-invalid-border-color);
&:is(:active, :focus) {
@if $enable-important {
#{$✨}border-color: var(#{$}form-element-invalid-active-border-color) !important;
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-invalid-focus-color) !important;
} @else {
#{$✨}border-color: var(#{$}form-element-invalid-active-border-color);
#{$}box-shadow: 0
0
0
var(#{$}outline-width)
var(#{$}form-element-invalid-focus-color);
}
}
}
}
[dir="rtl"] {
:where(input, select, textarea) {
&:not([type="checkbox"], [type="radio"]) {
&:is([aria-invalid], [aria-invalid="true"], [aria-invalid="false"]) {
[dir="rtl"] {
select {
&:not([multiple], [size]) {
background-position: center left 0.75rem;
}
}
}
}
// Placeholder
input::placeholder,
input::-webkit-input-placeholder,
textarea::placeholder,
textarea::-webkit-input-placeholder,
select:invalid {
color: var(#{$}form-element-placeholder-color);
opacity: 1;
}
// Margin bottom (Not Checkboxes and Radios)
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
margin-bottom: var(#{$}spacing);
}
// Select
select {
// Unstyle the caret on `<select>`s in IE10+.
&::-ms-expand {
border: 0;
background-color: transparent;
// Helper
:where(input, select, textarea) {
+ small {
display: block;
width: 100%;
margin-top: calc(var(#{$}spacing) * -0.75);
margin-bottom: var(#{$}spacing);
color: var(#{$}muted-color);
}
}
&:not([multiple], [size]) {
padding-right: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
padding-left: var(#{$}form-element-spacing-horizontal);
padding-inline-start: var(#{$}form-element-spacing-horizontal);
padding-inline-end: calc(var(#{$}form-element-spacing-horizontal) + 1.5rem);
background-image: var(#{$}icon-chevron);
background-position: center right 0.75rem;
background-size: 1rem auto;
background-repeat: no-repeat;
}
}
[dir="rtl"] {
select {
&:not([multiple], [size]) {
background-position: center left 0.75rem;
// Styles for Input inside a label
label {
> :where(input, select, textarea) {
margin-top: calc(var(#{$}spacing) * 0.25);
}
}
}
// Helper
:where(input, select, textarea) {
+ small {
display: block;
width: 100%;
margin-top: calc(var(#{$}spacing) * -0.75);
margin-bottom: var(#{$}spacing);
color: var(#{$}muted-color);
}
}
// Styles for Input inside a label
label {
> :where(input, select, textarea) {
margin-top: calc(var(#{$}spacing) * 0.25);
}
}

View file

@ -1,138 +1,141 @@
@use "sass:map";
@use "../settings" as *;
/**
* Checkboxes, Radios and Switches
*/
@if map.get($modules, "forms/checkbox-radio-switch") {
/**
* Checkboxes, Radios and Switches
*/
[type="checkbox"],
[type="radio"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 1.25em;
height: 1.25em;
margin-top: -0.125em;
margin-right: 0.375em;
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: 0.375em;
border-width: var(#{$}border-width);
font-size: inherit;
vertical-align: middle;
cursor: pointer;
&::-ms-check {
display: none; // unstyle IE checkboxes
}
&:checked,
&:checked:active,
&:checked:focus {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
background-image: var(#{$}icon-checkbox);
background-position: center;
background-size: 0.75em auto;
background-repeat: no-repeat;
}
& ~ label {
display: inline-block;
[type="checkbox"],
[type="radio"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 1.25em;
height: 1.25em;
margin-top: -0.125em;
margin-right: 0.375em;
margin-bottom: 0;
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: 0.375em;
border-width: var(#{$}border-width);
font-size: inherit;
vertical-align: middle;
cursor: pointer;
&::-ms-check {
display: none; // unstyle IE checkboxes
}
&:checked,
&:checked:active,
&:checked:focus {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
background-image: var(#{$}icon-checkbox);
background-position: center;
background-size: 0.75em auto;
background-repeat: no-repeat;
}
& ~ label {
display: inline-block;
margin-right: 0.375em;
margin-bottom: 0;
cursor: pointer;
}
}
}
// Checkboxes
[type="checkbox"] {
&:indeterminate {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
background-image: var(#{$}icon-minus);
background-position: center;
background-size: 0.75em auto;
background-repeat: no-repeat;
// Checkboxes
[type="checkbox"] {
&:indeterminate {
#{$✨}background-color: var(#{$}primary);
#{$✨}border-color: var(#{$}primary);
background-image: var(#{$}icon-minus);
background-position: center;
background-size: 0.75em auto;
background-repeat: no-repeat;
}
}
}
// Radios
[type="radio"] {
border-radius: 50%;
// Radios
[type="radio"] {
border-radius: 50%;
&:checked,
&:checked:active,
&:checked:focus {
#{$✨}background-color: var(#{$}primary-inverse);
border-width: 0.35em;
background-image: none;
&:checked,
&:checked:active,
&:checked:focus {
#{$✨}background-color: var(#{$}primary-inverse);
border-width: 0.35em;
background-image: none;
}
}
}
// Switchs
[type="checkbox"][role="switch"] {
#{$✨}background-color: var(#{$}switch-background-color);
#{$✨}border-color: var(#{$}switch-background-color);
#{$✨}color: var(#{$}switch-color);
// Config
$switch-height: 1.25em;
$switch-width: 2.25em;
$switch-transition: 0.1s ease-in-out;
// Styles
width: $switch-width;
height: $switch-height;
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: $switch-height;
background-color: var(#{$}background-color);
line-height: $switch-height;
&:focus {
// Switchs
[type="checkbox"][role="switch"] {
#{$✨}background-color: var(#{$}switch-background-color);
#{$✨}border-color: var(#{$}switch-background-color);
}
#{$✨}color: var(#{$}switch-color);
&:checked {
#{$✨}background-color: var(#{$}switch-checked-background-color);
#{$✨}border-color: var(#{$}switch-checked-background-color);
}
// Config
$switch-height: 1.25em;
$switch-width: 2.25em;
$switch-transition: 0.1s ease-in-out;
&:before {
display: block;
width: calc(#{$switch-height} - (var(#{$}border-width) * 2));
height: 100%;
border-radius: 50%;
background-color: var(#{$}color);
content: "";
// Styles
width: $switch-width;
height: $switch-height;
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: $switch-height;
background-color: var(#{$}background-color);
line-height: $switch-height;
@if $enable-transitions {
transition: margin $switch-transition;
&:focus {
#{$✨}background-color: var(#{$}switch-background-color);
#{$✨}border-color: var(#{$}switch-background-color);
}
&:checked {
#{$✨}background-color: var(#{$}switch-checked-background-color);
#{$✨}border-color: var(#{$}switch-checked-background-color);
}
&:before {
display: block;
width: calc(#{$switch-height} - (var(#{$}border-width) * 2));
height: 100%;
border-radius: 50%;
background-color: var(#{$}color);
content: "";
@if $enable-transitions {
transition: margin $switch-transition;
}
}
&:checked {
background-image: none;
&::before {
margin-left: calc(#{$switch-width * 0.5} - var(#{$}border-width));
margin-inline-start: calc(#{$switch-width * 0.5} - var(#{$}border-width));
}
}
}
&:checked {
background-image: none;
// Aria-invalid
[type="checkbox"],
[type="checkbox"]:checked,
[type="radio"],
[type="radio"]:checked,
[type="checkbox"][role="switch"],
[type="checkbox"][role="switch"]:checked {
&[aria-invalid="false"] {
#{$✨}border-color: var(#{$}form-element-valid-border-color);
}
&::before {
margin-left: calc(#{$switch-width * 0.5} - var(#{$}border-width));
margin-inline-start: calc(#{$switch-width * 0.5} - var(#{$}border-width));
&[aria-invalid="true"] {
#{$✨}border-color: var(#{$}form-element-invalid-border-color);
}
}
}
// Aria-invalid
[type="checkbox"],
[type="checkbox"]:checked,
[type="radio"],
[type="radio"]:checked,
[type="checkbox"][role="switch"],
[type="checkbox"][role="switch"]:checked {
&[aria-invalid="false"] {
#{$✨}border-color: var(#{$}form-element-valid-border-color);
}
&[aria-invalid="true"] {
#{$✨}border-color: var(#{$}form-element-invalid-border-color);
}
}

View file

@ -1,34 +1,37 @@
@use "sass:map";
@use "../settings" as *;
/**
* Input type color
*/
// Wrapper
@mixin color-wrapper {
padding: 0;
}
[type="color"] {
// Wrapper
@mixin color-wrapper {
padding: 0;
}
// Swatch
@mixin color-swatch {
border: 0;
border-radius: calc(var(#{$}border-radius) * 0.5);
}
&::-webkit-color-swatch-wrapper {
@include color-wrapper;
}
@if map.get($modules, "forms/input-color") {
/**
* Input type color
*/
&::-moz-focus-inner {
@include color-wrapper;
}
[type="color"] {
&::-webkit-color-swatch-wrapper {
@include color-wrapper;
}
// Swatch
@mixin color-swatch {
border: 0;
border-radius: calc(var(#{$}border-radius) * 0.5);
}
&::-moz-focus-inner {
@include color-wrapper;
}
&::-webkit-color-swatch {
@include color-swatch;
}
&::-webkit-color-swatch {
@include color-swatch;
}
&::-moz-color-swatch {
@include color-swatch;
&::-moz-color-swatch {
@include color-swatch;
}
}
}

View file

@ -1,42 +1,45 @@
@use "sass:map";
@use "../settings" as *;
/**
* Input type datetime
*/
@if map.get($modules, "forms/input-date") {
/**
* Input type datetime
*/
// :not() are needed to add Specificity and avoid !important on padding
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
#{$✨}icon-position: 0.75rem;
#{$✨}icon-width: 1rem;
padding-right: calc(var(#{$}icon-width) + var(#{$}icon-position));
background-image: var(#{$}icon-date);
background-position: center right var(#{$}icon-position);
background-size: var(#{$}icon-width) auto;
background-repeat: no-repeat;
// :not() are needed to add Specificity and avoid !important on padding
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
#{$✨}icon-position: 0.75rem;
#{$✨}icon-width: 1rem;
padding-right: calc(var(#{$}icon-width) + var(#{$}icon-position));
background-image: var(#{$}icon-date);
background-position: center right var(#{$}icon-position);
background-size: var(#{$}icon-width) auto;
background-repeat: no-repeat;
}
// Time
&[type="time"] {
background-image: var(#{$}icon-time);
}
}
// Time
&[type="time"] {
background-image: var(#{$}icon-time);
// Calendar picker
[type="date"],
[type="datetime-local"],
[type="month"],
[type="time"],
[type="week"] {
&::-webkit-calendar-picker-indicator {
width: var(#{$}icon-width);
margin-right: calc(var(#{$}icon-width) * -1);
margin-left: var(#{$}icon-position);
opacity: 0;
}
}
[dir="rtl"]
:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
text-align: right;
}
}
// Calendar picker
[type="date"],
[type="datetime-local"],
[type="month"],
[type="time"],
[type="week"] {
&::-webkit-calendar-picker-indicator {
width: var(#{$}icon-width);
margin-right: calc(var(#{$}icon-width) * -1);
margin-left: var(#{$}icon-position);
opacity: 0;
}
}
[dir="rtl"]
:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
text-align: right;
}

View file

@ -1,58 +1,61 @@
@use "sass:map";
@use "../settings" as *;
/**
* Input type file
*/
@mixin file-selector-button {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
margin-right: calc(var(#{$}spacing) / 2);
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: calc(var(#{$}spacing) / 2);
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5)
calc(var(#{$}form-element-spacing-horizontal) * 0.5);
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: 1rem;
line-height: var(#{$}line-height);
text-align: center;
cursor: pointer;
[type="file"] {
#{$✨}color: var(#{$}muted-color);
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5) 0;
border: 0;
border-radius: 0;
background: none;
@mixin file-selector-button {
#{$✨}background-color: var(#{$}secondary);
#{$✨}border-color: var(#{$}secondary);
#{$✨}color: var(#{$}secondary-inverse);
margin-right: calc(var(#{$}spacing) / 2);
margin-left: 0;
margin-inline-start: 0;
margin-inline-end: calc(var(#{$}spacing) / 2);
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5)
calc(var(#{$}form-element-spacing-horizontal) * 0.5);
border: var(#{$}border-width) solid var(#{$}border-color);
border-radius: var(#{$}border-radius);
outline: none;
background-color: var(#{$}background-color);
box-shadow: var(#{$}box-shadow);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: 1rem;
line-height: var(#{$}line-height);
text-align: center;
cursor: pointer;
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
}
&:is(:hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
}
@if $enable-transitions {
transition: background-color var(#{$}transition), border-color var(#{$}transition),
color var(#{$}transition), box-shadow var(#{$}transition);
}
&::file-selector-button {
@include file-selector-button;
}
&::-webkit-file-upload-button {
@include file-selector-button;
}
&::-ms-browse {
@include file-selector-button;
&:is(:hover, :active, :focus) {
#{$✨}background-color: var(#{$}secondary-hover);
#{$✨}border-color: var(#{$}secondary-hover);
}
}
@if map.get($modules, "forms/input-file") {
/**
* Input type file
*/
[type="file"] {
#{$✨}color: var(#{$}muted-color);
padding: calc(var(#{$}form-element-spacing-vertical) * 0.5) 0;
border: 0;
border-radius: 0;
background: none;
&::file-selector-button {
@include file-selector-button;
}
&::-webkit-file-upload-button {
@include file-selector-button;
}
&::-ms-browse {
@include file-selector-button;
}
}
}

View file

@ -1,94 +1,98 @@
@use "sass:map";
@use "../settings" as *;
/**
* Input type range
*/
// Config
$height-track: 0.25rem;
$height-thumb: 1.25rem;
$border-thumb: 2px;
[type="range"] {
// Config
$height-track: 0.25rem;
$height-thumb: 1.25rem;
$border-thumb: 2px;
// Styles
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
// Slider Track
@mixin slider-track {
width: 100%;
height: $height-track;
border-radius: var(#{$}border-radius);
background-color: var(#{$}range-border-color);
@if $enable-transitions {
transition: background-color var(#{$}transition), box-shadow var(#{$}transition);
}
}
// Slider Thumb
@mixin slider-thumb {
-webkit-appearance: none;
width: $height-thumb;
height: $height-thumb;
background: none;
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
border: $border-thumb solid var(#{$}range-thumb-border-color);
border-radius: 50%;
background-color: var(#{$}range-thumb-color);
cursor: pointer;
// Slider Track
@mixin slider-track {
width: 100%;
height: $height-track;
border-radius: var(#{$}border-radius);
background-color: var(#{$}range-border-color);
@if $enable-transitions {
transition: background-color var(#{$}transition), box-shadow var(#{$}transition);
}
@if $enable-transitions {
transition: background-color var(#{$}transition), transform var(#{$}transition);
}
}
&::-webkit-slider-runnable-track {
@include slider-track;
}
@if map.get($modules, "forms/input-range") {
/**
* Input type range
*/
&::-moz-range-track {
@include slider-track;
}
&::-ms-track {
@include slider-track;
}
// Slider Thumb
@mixin slider-thumb {
[type="range"] {
// Styles
-webkit-appearance: none;
width: $height-thumb;
-moz-appearance: none;
appearance: none;
width: 100%;
height: $height-thumb;
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
border: $border-thumb solid var(#{$}range-thumb-border-color);
border-radius: 50%;
background-color: var(#{$}range-thumb-color);
cursor: pointer;
background: none;
@if $enable-transitions {
transition: background-color var(#{$}transition), transform var(#{$}transition);
&::-webkit-slider-runnable-track {
@include slider-track;
}
}
&::-webkit-slider-thumb {
@include slider-thumb;
}
&::-moz-range-thumb {
@include slider-thumb;
}
&::-moz-range-track {
@include slider-track;
}
&::-ms-thumb {
@include slider-thumb;
}
&::-ms-track {
@include slider-track;
}
&:hover,
&:focus {
#{$✨}range-border-color: var(#{$}range-active-border-color);
#{$✨}range-thumb-color: var(#{$}range-thumb-hover-color);
}
&:active {
#{$✨}range-thumb-color: var(#{$}range-thumb-active-color);
// Slider Thumb
&::-webkit-slider-thumb {
transform: scale(1.25);
@include slider-thumb;
}
&::-moz-range-thumb {
transform: scale(1.25);
@include slider-thumb;
}
&::-ms-thumb {
transform: scale(1.25);
@include slider-thumb;
}
&:hover,
&:focus {
#{$✨}range-border-color: var(#{$}range-active-border-color);
#{$✨}range-thumb-color: var(#{$}range-thumb-hover-color);
}
&:active {
#{$✨}range-thumb-color: var(#{$}range-thumb-active-color);
// Slider Thumb
&::-webkit-slider-thumb {
transform: scale(1.25);
}
&::-moz-range-thumb {
transform: scale(1.25);
}
&::-ms-thumb {
transform: scale(1.25);
}
}
}
}

View file

@ -1,54 +1,59 @@
@use "sass:map";
@use "../settings" as *;
/**
* Input type search
*/
@if map.get($modules, "forms/input-search") {
/**
* Input type search
*/
// :not() are needed to add Specificity and avoid !important on padding
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&[type="search"] {
padding-inline-start: calc(var(#{$}form-element-spacing-horizontal) + 1.75rem);
border-radius: 5rem;
background-image: var(#{$}icon-search);
background-position: center left 1.125rem;
background-size: 1rem auto;
background-repeat: no-repeat;
// :not() are needed to add Specificity and avoid !important on padding
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&[type="search"] {
padding-inline-start: calc(var(#{$}form-element-spacing-horizontal) + 1.75rem);
border-radius: 5rem;
background-image: var(#{$}icon-search);
background-position: center left 1.125rem;
background-size: 1rem auto;
background-repeat: no-repeat;
&[aria-invalid] {
@if $enable-important {
padding-inline-start: calc(var(#{$}form-element-spacing-horizontal) + 1.75rem) !important;
} @else {
padding-inline-start: calc(var(#{$}form-element-spacing-horizontal) + 1.75rem);
&[aria-invalid] {
@if $enable-important {
padding-inline-start: calc(
var(#{$}form-element-spacing-horizontal) + 1.75rem
) !important;
} @else {
padding-inline-start: calc(var(#{$}form-element-spacing-horizontal) + 1.75rem);
}
background-position: center left 1.125rem, center right 0.75rem;
}
background-position: center left 1.125rem, center right 0.75rem;
}
&[aria-invalid="false"] {
background-image: var(#{$}icon-search), var(#{$}icon-valid);
}
&[aria-invalid="false"] {
background-image: var(#{$}icon-search), var(#{$}icon-valid);
}
&[aria-invalid="true"] {
background-image: var(#{$}icon-search), var(#{$}icon-invalid);
&[aria-invalid="true"] {
background-image: var(#{$}icon-search), var(#{$}icon-invalid);
}
}
}
}
// Cancel button
[type="search"] {
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: none;
// Cancel button
[type="search"] {
&::-webkit-search-cancel-button {
-webkit-appearance: none;
display: none;
}
}
}
[dir="rtl"] {
:where(input) {
&:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&[type="search"] {
background-position: center right 1.125rem;
[dir="rtl"] {
:where(input) {
&:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) {
&[type="search"] {
background-position: center right 1.125rem;
&[aria-invalid] {
background-position: center right 1.125rem, center left 0.75rem;
&[aria-invalid] {
background-position: center right 1.125rem, center left 0.75rem;
}
}
}
}

View file

@ -1,10 +1,10 @@
@use "sass:map";
@use "../settings" as *;
@if ($enable-class-container and $enable-classes) {
@if map.get($modules, "layout/container") and $enable-classes {
/**
* Container
*/
* Container
*/
.container,
.container-fluid {

View file

@ -1,50 +1,53 @@
@use "sass:map";
@use "../settings" as *;
/**
* Document
* Content-box & Responsive typography
*/
@if map.get($modules, "layout/document") {
/**
* Document
* Content-box & Responsive typography
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Add border box sizing in all browsers (opinionated)
// 2. Backgrounds do not repeat by default (opinionated)
*,
*::before,
*::after {
box-sizing: border-box; // 1
background-repeat: no-repeat; // 2
}
// 1. Add text decoration inheritance in all browsers (opinionated)
// 2. Add vertical alignment inheritance in all browsers (opinionated)
::before,
::after {
text-decoration: inherit; // 1
vertical-align: inherit; // 2
}
// 1. Use the default cursor in all browsers (opinionated)
// 2. Change the line height in all browsers (opinionated)
// 3. Breaks words to prevent overflow in all browsers (opinionated)
// 4. Use a 4-space tab width in all browsers (opinionated)
// 5. Remove the grey highlight on links in iOS (opinionated)
// 6. Prevent adjustments of font size after orientation changes in iOS
:where(:root) {
-webkit-tap-highlight-color: transparent; // 5
-webkit-text-size-adjust: 100%; // 6
text-size-adjust: 100%; // 6
background-color: var(#{$}background-color);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
line-height: var(#{$}line-height); // 2
font-family: var(#{$}font-family);
text-rendering: optimizeLegibility;
overflow-wrap: break-word; // 3
cursor: default; // 1
tab-size: 4; // 4
// 1. Add border box sizing in all browsers (opinionated)
// 2. Backgrounds do not repeat by default (opinionated)
*,
*::before,
*::after {
box-sizing: border-box; // 1
background-repeat: no-repeat; // 2
}
// 1. Add text decoration inheritance in all browsers (opinionated)
// 2. Add vertical alignment inheritance in all browsers (opinionated)
::before,
::after {
text-decoration: inherit; // 1
vertical-align: inherit; // 2
}
// 1. Use the default cursor in all browsers (opinionated)
// 2. Change the line height in all browsers (opinionated)
// 3. Breaks words to prevent overflow in all browsers (opinionated)
// 4. Use a 4-space tab width in all browsers (opinionated)
// 5. Remove the grey highlight on links in iOS (opinionated)
// 6. Prevent adjustments of font size after orientation changes in iOS
:where(:root) {
-webkit-tap-highlight-color: transparent; // 5
-webkit-text-size-adjust: 100%; // 6
text-size-adjust: 100%; // 6
background-color: var(#{$}background-color);
color: var(#{$}color);
font-weight: var(#{$}font-weight);
font-size: var(#{$}font-size);
line-height: var(#{$}line-height); // 2
font-family: var(#{$}font-family);
text-rendering: optimizeLegibility;
overflow-wrap: break-word; // 3
cursor: default; // 1
tab-size: 4; // 4
}
}

View file

@ -1,11 +1,11 @@
@use "sass:map";
@use "../settings" as *;
@if ($enable-classes and $enable-grid) {
@if map.get($modules, "layout/grid") and $enable-classes {
/**
* Grid
* Minimal grid system with auto-layout columns
*/
* Grid
* Minimal grid system with auto-layout columns
*/
.grid {
grid-column-gap: var(#{$}grid-spacing-horizontal);

View file

@ -0,0 +1,61 @@
@use "sass:map";
@use "../settings" as *;
@if map.get($modules, "layout/landmarks") {
/**
* Landmarks
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// 1. Remove the margin in all browsers (opinionated)
body {
width: 100%;
margin: 0; // 1
}
// Render the `main` element consistently in IE
main {
display: block;
}
// Pico
//
#{$semantic-root-element} {
> header,
> main,
> footer {
// <header>, <main>, <footer> as containers
@if $enable-semantic-container {
$first-breakpoint: true;
width: 100%;
margin-right: auto;
margin-left: auto;
padding: var(#{$}block-spacing-vertical) var(#{$}block-spacing-horizontal);
@if $enable-viewport {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
max-width: map.get($values, "viewport");
@if $first-breakpoint {
$first-breakpoint: false;
padding-right: 0;
padding-left: 0;
}
}
}
}
}
}
// Regular pacing <header>, <main>, <footer>
@else {
padding: var(#{$}block-spacing-vertical) 0;
}
}
}
}

View file

@ -1,18 +1,21 @@
@use "sass:map";
@use "../settings" as *;
/**
* Horizontal scroller (<figure>)
*/
@if map.get($modules, "layout/scroller") {
/**
* Horizontal scroller (<figure>)
*/
// Wrapper to make any content responsive across all viewports
figure {
display: block;
margin: 0;
padding: 0;
overflow-x: auto;
// Wrapper to make allow any content to be scrolled horizontally
figure {
display: block;
margin: 0;
padding: 0;
overflow-x: auto;
figcaption {
padding: calc(var(#{$}spacing) * 0.5) 0;
color: var(#{$}muted-color);
figcaption {
padding: calc(var(#{$}spacing) * 0.5) 0;
color: var(#{$}muted-color);
}
}
}

View file

@ -1,10 +1,12 @@
@use "sass:map";
@use "../settings" as *;
/**
* Section
* Responsive spacings for section
*/
@if map.get($modules, "layout/section") {
/**
* Section
*/
section {
margin-bottom: var(#{$}block-spacing-vertical);
section {
margin-bottom: var(#{$}block-spacing-vertical);
}
}

View file

@ -1,58 +0,0 @@
@use "sass:map";
@use "../settings" as *;
/**
* Sectioning
* Container and responsive spacings for header, main, footer
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Render the `main` element consistently in IE
main {
display: block;
}
// Pico
//
// 1. Remove the margin in all browsers (opinionated)
#{$semantic-root-element} {
width: 100%;
margin: 0; // 1
> header,
> main,
> footer {
width: 100%;
margin-right: auto;
margin-left: auto;
// Semantic container
@if $enable-semantic-container {
// Centered viewport
$first-breakpoint: true;
padding: var(#{$}block-spacing-vertical) var(#{$}block-spacing-horizontal);
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
max-width: map.get($values, "viewport");
@if $first-breakpoint {
$first-breakpoint: false;
padding-right: 0;
padding-left: 0;
}
}
}
}
}
// Semantic container
@else {
padding: var(#{$}block-spacing-vertical) 0;
}
}
}

View file

@ -1,5 +1,48 @@
// Pico classless version
@use "pico" with (
$enable-semantic-container: true,
$enable-classes: false
$enable-classes: false,
$modules: (
// Theme
"themes/default": true,
// Layout
"layout/document": true,
"layout/landmarks": true,
"layout/container": true,
"layout/section": true,
"layout/grid": true,
"layout/scroller": true,
// Content
"content/typography": true,
"content/embedded": true,
"content/button": true,
"content/table": true,
"content/code": true,
"content/miscs": true,
// Forms
"forms/basics": true,
"forms/checkbox-radio-switch": true,
"forms/input-color": true,
"forms/input-date": true,
"forms/input-file": true,
"forms/input-range": true,
"forms/input-search": true,
// Components
"components/accordion": true,
"components/card": true,
"components/dropdown": true,
"components/loading": true,
"components/modal": true,
"components/nav": true,
"components/progress": true,
"components/tooltip": true,
// Utilities
"utilities/accessibility": true,
"utilities/reduce-motion": true,
)
);

View file

@ -8,14 +8,15 @@
// Layout
@use "layout/document"; // html
@use "layout/sectioning"; // body, header, main, footer
@use "layout/landmarks"; // body, header, main, footer
@use "layout/container"; // .container, .container-fluid
@use "layout/section"; // section
@use "layout/grid"; // .grid
@use "layout/scroller"; // figure
// Content
@use "content/typography"; // a, headings, p, ul, blockquote, ...
@use "content/link"; // a, role="link"
@use "content/typography"; // headings, p, ul, blockquote, ...
@use "content/embedded"; // audio, canvas, iframe, img, svg, video
@use "content/button"; // button, a[role="button"], type="button", type="submit" ...
@use "content/table"; // table, tr, td, ...

View file

@ -1,34 +1,5 @@
@use "../settings" as *;
@use "default/light";
@use "default/dark";
// Colors schemes
@use "default/schemes";
// Commons styles
// Styles
@use "default/styles";
// Light theme (Default)
// Can be forced with data-theme="light"
[data-theme="light"],
:root:not([data-theme="dark"]) {
@include light.theme;
}
// Dark theme (Auto)
// Automatically enabled if user has Dark mode enabled
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
@include dark.theme;
}
}
// Dark theme (Forced)
// Enabled if forced with data-theme="dark"
[data-theme="dark"] {
@include dark.theme;
}
progress,
[type="checkbox"],
[type="radio"],
[type="range"] {
accent-color: var(#{$}primary);
}

View file

@ -1,19 +1,15 @@
@use "sass:map";
@use "colors" as *;
@use "../../settings" as *;
@use "../../utils/box-shadow";
@use "../../utils/functions";
// Default: Dark theme
@mixin theme {
#{$✨}background-color: #{mix($black, $grey-900, 37.5%)};
// Texts colors
// Text color
#{$✨}color: #{$grey-200};
#{$✨}h1-color: #{$grey-50};
#{$✨}h2-color: #{mix($grey-100, $grey-50)};
#{$✨}h3-color: #{$grey-100};
#{$✨}h4-color: #{mix($grey-200, $grey-100)};
#{$✨}h5-color: #{$grey-200};
#{$✨}h6-color: #{mix($grey-300, $grey-200)};
// Muted colors
#{$✨}muted-color: #{$grey-500};
@ -37,135 +33,179 @@
#{$✨}contrast-focus: #{rgba($grey-500, 0.25)};
#{$✨}contrast-inverse: #{$black};
// Highlighted text (<mark>)
#{$✨}mark-background-color: #{mix($grey-300, $amber-300)};
#{$✨}mark-color: #{mix($black, $grey-900, 37.5%)};
// Box shadow
#{$✨}box-shadow: box-shadow.shadow($black);
// Inserted (<ins>) & Deleted (<ins>)
#{$✨}ins-color: #{$green-700};
#{$✨}del-color: #{$red-800};
// Typography
@if map.get($modules, "content/typography") {
// Headings colors
#{$✨}h1-color: #{$grey-50};
#{$✨}h2-color: #{mix($grey-100, $grey-50)};
#{$✨}h3-color: #{$grey-100};
#{$✨}h4-color: #{mix($grey-200, $grey-100)};
#{$✨}h5-color: #{$grey-200};
#{$✨}h6-color: #{mix($grey-300, $grey-200)};
// Blockquote
#{$✨}blockquote-border-color: var(#{$}muted-border-color);
#{$✨}blockquote-footer-color: var(#{$}muted-color);
// Highlighted text (<mark>)
#{$✨}mark-background-color: #{mix($grey-300, $amber-300)};
#{$✨}mark-color: #{mix($black, $grey-900, 37.5%)};
// Inserted (<ins>) & Deleted (<ins>)
#{$✨}ins-color: #{$green-700};
#{$✨}del-color: #{$red-800};
// Blockquote
#{$✨}blockquote-border-color: var(#{$}muted-border-color);
#{$✨}blockquote-footer-color: var(#{$}muted-color);
}
// Button
// To disable box-shadow, remove the var or set to '0 0 0 rgba(0, 0, 0, 0)'
// Don't use, 'none, 'false, 'null', '0', etc.
#{$✨}button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
#{$✨}button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
// Form elements
#{$✨}form-element-background-color: #{mix($black, $grey-900, 37.5%)};
#{$✨}form-element-border-color: #{mix($grey-800, $grey-700)};
#{$✨}form-element-color: var(#{$}color);
#{$✨}form-element-placeholder-color: var(#{$}muted-color);
#{$✨}form-element-active-background-color: var(#{$}form-element-background-color);
#{$✨}form-element-active-border-color: var(#{$}primary);
#{$✨}form-element-focus-color: var(#{$}primary-focus);
#{$✨}form-element-disabled-background-color: #{$grey-800};
#{$✨}form-element-disabled-border-color: #{$grey-700};
#{$✨}form-element-disabled-opacity: 0.5;
#{$✨}form-element-invalid-border-color: #{$red-900};
#{$✨}form-element-invalid-active-border-color: #{$red-800};
#{$✨}form-element-invalid-focus-color: #{rgba($red-800, 0.25)};
#{$✨}form-element-valid-border-color: #{$green-800};
#{$✨}form-element-valid-active-border-color: #{$green-700};
#{$✨}form-element-valid-focus-color: #{rgba($green-700, 0.25)};
// Switch (input[type="checkbox"][role="switch"])
#{$✨}switch-background-color: #{mix($grey-800, $grey-700)};
#{$✨}switch-color: var(#{$}primary-inverse);
#{$✨}switch-checked-background-color: var(#{$}primary);
// Range (input[type="range"])
#{$✨}range-border-color: #{mix($grey-900, $grey-800)};
#{$✨}range-active-border-color: #{$grey-800};
#{$✨}range-thumb-border-color: var(#{$}background-color);
#{$✨}range-thumb-color: var(#{$}secondary);
#{$✨}range-thumb-hover-color: var(#{$}secondary-hover);
#{$✨}range-thumb-active-color: var(#{$}primary);
@if map.get($modules, "content/button") {
// To disable box-shadow, remove the var or set to '0 0 0 rgba(0, 0, 0, 0)'
// Don't use, 'none, 'false, 'null', '0', etc.
#{$✨}button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
#{$✨}button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
// Table
#{$✨}table-border-color: var(#{$}muted-border-color);
#{$✨}table-row-stripped-background-color: #{rgba($grey-500, 0.05)};
@if map.get($modules, "content/table") {
#{$✨}table-border-color: var(#{$}muted-border-color);
#{$✨}table-row-stripped-background-color: #{rgba($grey-500, 0.05)};
}
// Code
#{$✨}code-background-color: #{mix($black, $grey-900, 12.5%)};
#{$✨}code-color: var(#{$}muted-color);
#{$✨}code-kbd-background-color: var(#{$}contrast);
#{$✨}code-kbd-color: var(#{$}contrast-inverse);
#{$✨}code-tag-color: #{hsl(330, 30%, 50%)};
#{$✨}code-property-color: #{hsl(185, 30%, 50%)};
#{$✨}code-value-color: #{hsl(40, 10%, 50%)};
#{$✨}code-comment-color: #{mix($grey-700, $grey-600)};
@if map.get($modules, "content/code") {
#{$✨}code-background-color: #{mix($black, $grey-900, 12.5%)};
#{$✨}code-color: var(#{$}muted-color);
#{$✨}code-kbd-background-color: var(#{$}contrast);
#{$✨}code-kbd-color: var(#{$}contrast-inverse);
#{$✨}code-tag-color: #{hsl(330, 30%, 50%)};
#{$✨}code-property-color: #{hsl(185, 30%, 50%)};
#{$✨}code-value-color: #{hsl(40, 10%, 50%)};
#{$✨}code-comment-color: #{mix($grey-700, $grey-600)};
}
// Form elements
@if map.get($modules, "forms/basics") {
#{$✨}form-element-background-color: #{mix($black, $grey-900, 37.5%)};
#{$✨}form-element-border-color: #{mix($grey-800, $grey-700)};
#{$✨}form-element-color: var(#{$}color);
#{$✨}form-element-placeholder-color: var(#{$}muted-color);
#{$✨}form-element-active-background-color: var(#{$}form-element-background-color);
#{$✨}form-element-active-border-color: var(#{$}primary);
#{$✨}form-element-focus-color: var(#{$}primary-focus);
#{$✨}form-element-disabled-background-color: #{$grey-800};
#{$✨}form-element-disabled-border-color: #{$grey-700};
#{$✨}form-element-disabled-opacity: 0.5;
#{$✨}form-element-invalid-border-color: #{$red-900};
#{$✨}form-element-invalid-active-border-color: #{$red-800};
#{$✨}form-element-invalid-focus-color: #{rgba($red-800, 0.25)};
#{$✨}form-element-valid-border-color: #{$green-800};
#{$✨}form-element-valid-active-border-color: #{$green-700};
#{$✨}form-element-valid-focus-color: #{rgba($green-700, 0.25)};
}
// Switch (input[type="checkbox"][role="switch"])
@if map.get($modules, "forms/checkbox-radio-switch") {
#{$✨}switch-background-color: #{mix($grey-800, $grey-700)};
#{$✨}switch-color: var(#{$}primary-inverse);
#{$✨}switch-checked-background-color: var(#{$}primary);
}
// Range (input[type="range"])
@if map.get($modules, "forms/input-range") {
#{$✨}range-border-color: #{mix($grey-900, $grey-800)};
#{$✨}range-active-border-color: #{$grey-800};
#{$✨}range-thumb-border-color: var(#{$}background-color);
#{$✨}range-thumb-color: var(#{$}secondary);
#{$✨}range-thumb-hover-color: var(#{$}secondary-hover);
#{$✨}range-thumb-active-color: var(#{$}primary);
}
// Accordion (<details>)
#{$✨}accordion-border-color: var(#{$}muted-border-color);
#{$✨}accordion-active-summary-color: var(#{$}primary);
#{$✨}accordion-close-summary-color: var(#{$}color);
#{$✨}accordion-open-summary-color: var(#{$}muted-color);
@if map.get($modules, "components/accordion") {
#{$✨}accordion-border-color: var(#{$}muted-border-color);
#{$✨}accordion-active-summary-color: var(#{$}primary);
#{$✨}accordion-close-summary-color: var(#{$}color);
#{$✨}accordion-open-summary-color: var(#{$}muted-color);
}
// Card (<article>)
$box-shadow-elevation: 1rem;
$box-shadow-blur-strengh: 6rem;
$box-shadow-opacity: 0.06;
#{$✨}card-background-color: #{mix($black, $grey-900, 25%)};
#{$✨}card-border-color: var(#{$}card-background-color);
#{$}card-box-shadow: #{($box-shadow-elevation * 0.5 * 0.029)} #{($box-shadow-elevation * 0.029)}
#{($box-shadow-blur-strengh * 0.029)} #{rgba($black, ($box-shadow-opacity * 0.283))},
#{($box-shadow-elevation * 0.5 * 0.067)} #{($box-shadow-elevation * 0.067)} #{(
$box-shadow-blur-strengh * 0.067
)} #{rgba($black, ($box-shadow-opacity * 0.4))},
#{($box-shadow-elevation * 0.5 * 0.125)} #{($box-shadow-elevation * 0.125)} #{(
$box-shadow-blur-strengh * 0.125
)} #{rgba($black, ($box-shadow-opacity * 0.5))},
#{($box-shadow-elevation * 0.5 * 0.225)} #{($box-shadow-elevation * 0.225)} #{(
$box-shadow-blur-strengh * 0.225
)} #{rgba($black, ($box-shadow-opacity * 0.6))},
#{($box-shadow-elevation * 0.5 * 0.417)} #{($box-shadow-elevation * 0.417)} #{(
$box-shadow-blur-strengh * 0.417
)} #{rgba($black, ($box-shadow-opacity * 0.717))},
#{($box-shadow-elevation * 0.5)} #{$box-shadow-elevation} #{$box-shadow-blur-strengh} #{rgba(
$black,
$box-shadow-opacity
)},
0 0 0 0.0625rem #{rgba($black, ($box-shadow-opacity * 0.25))};
#{$✨}card-sectionning-background-color: #{mix($black, $grey-900, 12.5%)};
@if map.get($modules, "components/card") {
#{$✨}card-background-color: #{mix($black, $grey-900, 25%)};
#{$✨}card-border-color: var(#{$}card-background-color);
#{$✨}card-box-shadow: var(#{$}box-shadow);
#{$✨}card-sectionning-background-color: #{mix($black, $grey-900, 12.5%)};
}
// Dropdown (<details role="list">)
#{$✨}dropdown-background-color: #{$grey-900};
#{$✨}dropdown-border-color: #{mix($grey-900, $grey-800)};
#{$✨}dropdown-box-shadow: var(#{$}card-box-shadow);
#{$✨}dropdown-color: var(#{$}color);
#{$✨}dropdown-hover-background-color: #{rgba(mix($grey-900, $grey-800), 0.75)};
// Modal (<dialog>)
#{$✨}modal-overlay-background-color: #{rgba(mix($grey-900, $grey-800), 0.8)};
// Progress
#{$✨}progress-background-color: #{mix($grey-900, $grey-800)};
#{$✨}progress-color: var(#{$}primary);
@if map.get($modules, "components/dropdown") {
#{$✨}dropdown-background-color: #{$grey-900};
#{$✨}dropdown-border-color: #{mix($grey-900, $grey-800)};
#{$✨}dropdown-box-shadow: var(#{$}box-shadow);
#{$✨}dropdown-color: var(#{$}color);
#{$✨}dropdown-hover-background-color: #{rgba(mix($grey-900, $grey-800), 0.75)};
}
// Loading ([aria-busy=true])
#{$✨}loading-spinner-opacity: 0.5;
@if map.get($modules, "components/loading") {
#{$✨}loading-spinner-opacity: 0.5;
}
// Modal (<dialog>)
@if map.get($modules, "components/modal") {
#{$✨}modal-overlay-background-color: #{rgba(mix($grey-900, $grey-800), 0.8)};
}
// Progress
@if map.get($modules, "components/progress") {
#{$✨}progress-background-color: #{mix($grey-900, $grey-800)};
#{$✨}progress-color: var(#{$}primary);
}
// Tooltip ([data-tooltip])
#{$✨}tooltip-background-color: var(#{$}contrast);
#{$✨}tooltip-color: var(#{$}contrast-inverse);
@if map.get($modules, "components/tooltip") {
#{$✨}tooltip-background-color: var(#{$}contrast);
#{$✨}tooltip-color: var(#{$}contrast-inverse);
}
// Icons
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
#{$✨}icon-chevron-button: 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='#{functions.display-rgb($white)}' 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");
#{$✨}icon-chevron-button-inverse: 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='#{functions.display-rgb($black)}' 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");
#{$✨}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='#{functions.display-rgb($grey-500)}' stroke-width='4' 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");
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
#{$✨}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='#{functions.display-rgb($red-900)}' 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");
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($grey-300)}' stroke-width='2' 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");
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
#{$✨}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='#{functions.display-rgb($green-800)}' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
// Checkboxes icons
@if map.get($modules, "forms/checkbox-radio-switch") {
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($white)}' 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");
}
// Chevron icons
@if map.get($modules, "forms/basic") or
map.get($modules, "components/accordion") or
map.get($modules, "components/dropdown")
{
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
#{$✨}icon-chevron-button: 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='#{functions.display-rgb($white)}' 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");
#{$✨}icon-chevron-button-inverse: 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='#{functions.display-rgb($black)}' 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");
}
// Datetime icons
@if map.get($modules, "input-date") {
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
#{$✨}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='#{functions.display-rgb($grey-300)}' 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");
}
// Form validation icons
@if map.get($modules, "forms/basic") {
#{$✨}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='#{functions.display-rgb($green-800)}' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
#{$✨}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='#{functions.display-rgb($red-900)}' 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");
}
// Search icon
@if map.get($modules, "forms/input-search") {
#{$✨}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='#{functions.display-rgb($grey-300)}' stroke-width='2' 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");
}
// Close icon
@if map.get($modules, "components/modal") {
#{$✨}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='#{functions.display-rgb($grey-500)}' stroke-width='4' 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");
}
// Document
color-scheme: dark;

View file

@ -1,19 +1,15 @@
@use "sass:map";
@use "colors" as *;
@use "../../settings" as *;
@use "../../utils/box-shadow";
@use "../../utils/functions";
// Default: Light theme
@mixin theme {
#{$✨}background-color: #{$white};
// Texts colors
// Text color
#{$✨}color: #{$grey-700};
#{$✨}h1-color: #{$grey-900};
#{$✨}h2-color: #{mix($grey-900, $grey-800)};
#{$✨}h3-color: #{$grey-800};
#{$✨}h4-color: #{mix($grey-800, $grey-700)};
#{$✨}h5-color: #{$grey-700};
#{$✨}h6-color: #{mix($grey-700, $grey-600)};
// Muted colors
#{$✨}muted-color: #{$grey-500};
@ -37,134 +33,179 @@
#{$✨}contrast-focus: #{rgba($grey-600, 0.125)};
#{$✨}contrast-inverse: #{$white};
// Highlighted text (<mark>)
#{$✨}mark-background-color: #{mix($amber-100, $amber-50)};
#{$✨}mark-color: #{mix($grey-900, $amber-900, 75%)};
// Box shadow
#{$✨}box-shadow: box-shadow.shadow($grey-900);
// Inserted (<ins>) & Deleted (<ins>)
#{$✨}ins-color: #{$green-700};
#{$✨}del-color: #{$red-800};
// Typography
@if map.get($modules, "content/typography") {
// Headings colors
#{$✨}h1-color: #{$grey-900};
#{$✨}h2-color: #{mix($grey-900, $grey-800)};
#{$✨}h3-color: #{$grey-800};
#{$✨}h4-color: #{mix($grey-800, $grey-700)};
#{$✨}h5-color: #{$grey-700};
#{$✨}h6-color: #{mix($grey-700, $grey-600)};
// Blockquote
#{$✨}blockquote-border-color: var(#{$}muted-border-color);
#{$✨}blockquote-footer-color: var(#{$}muted-color);
// Highlighted text (<mark>)
#{$✨}mark-background-color: #{mix($amber-100, $amber-50)};
#{$✨}mark-color: #{mix($grey-900, $amber-900, 75%)};
// Inserted (<ins>) & Deleted (<ins>)
#{$✨}ins-color: #{$green-700};
#{$✨}del-color: #{$red-800};
// Blockquote
#{$✨}blockquote-border-color: var(#{$}muted-border-color);
#{$✨}blockquote-footer-color: var(#{$}muted-color);
}
// Button
// To disable box-shadow, remove the var or set to '0 0 0 rgba(0, 0, 0, 0)'
// Don't use, 'none, 'false, 'null', '0', etc.
#{$✨}button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
#{$✨}button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
// Form elements
#{$✨}form-element-background-color: transparent;
#{$✨}form-element-border-color: #{$grey-300};
#{$✨}form-element-color: var(#{$}color);
#{$✨}form-element-placeholder-color: var(#{$}muted-color);
#{$✨}form-element-active-background-color: transparent;
#{$✨}form-element-active-border-color: var(#{$}primary);
#{$✨}form-element-focus-color: var(#{$}primary-focus);
#{$✨}form-element-disabled-background-color: #{$grey-100};
#{$✨}form-element-disabled-border-color: #{$grey-300};
#{$✨}form-element-disabled-opacity: 0.5;
#{$✨}form-element-invalid-border-color: #{$red-800};
#{$✨}form-element-invalid-active-border-color: #{$red-700};
#{$✨}form-element-invalid-focus-color: #{rgba($red-700, 0.125)};
#{$✨}form-element-valid-border-color: #{$green-700};
#{$✨}form-element-valid-active-border-color: #{$green-600};
#{$✨}form-element-valid-focus-color: #{rgba($green-600, 0.125)};
// Switch (input[type="checkbox"][role="switch"])
#{$✨}switch-background-color: #{$grey-200};
#{$✨}switch-color: var(#{$}primary-inverse);
#{$✨}switch-checked-background-color: var(#{$}primary);
// Range (input[type="range"])
#{$✨}range-border-color: #{$grey-100};
#{$✨}range-active-border-color: #{$grey-200};
#{$✨}range-thumb-border-color: var(#{$}background-color);
#{$✨}range-thumb-color: var(#{$}secondary);
#{$✨}range-thumb-hover-color: var(#{$}secondary-hover);
#{$✨}range-thumb-active-color: var(#{$}primary);
@if map.get($modules, "content/button") {
// To disable box-shadow, remove the var or set to '0 0 0 rgba(0, 0, 0, 0)'
// Don't use, 'none, 'false, 'null', '0', etc.
#{$✨}button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
#{$✨}button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
// Table
#{$✨}table-border-color: var(#{$}muted-border-color);
#{$✨}table-row-stripped-background-color: #{mix($grey-50, $white)};
@if map.get($modules, "content/table") {
#{$✨}table-border-color: var(#{$}muted-border-color);
#{$✨}table-row-stripped-background-color: #{mix($grey-50, $white)};
}
// Code
#{$✨}code-background-color: #{$grey-50};
#{$✨}code-color: var(#{$}muted-color);
#{$✨}code-kbd-background-color: var(#{$}contrast);
#{$✨}code-kbd-color: var(#{$}contrast-inverse);
#{$✨}code-tag-color: #{hsl(330, 40%, 50%)};
#{$✨}code-property-color: #{hsl(185, 40%, 40%)};
#{$✨}code-value-color: #{hsl(40, 20%, 50%)};
#{$✨}code-comment-color: #{$grey-300};
@if map.get($modules, "content/code") {
#{$✨}code-background-color: #{$grey-50};
#{$✨}code-color: var(#{$}muted-color);
#{$✨}code-kbd-background-color: var(#{$}contrast);
#{$✨}code-kbd-color: var(#{$}contrast-inverse);
#{$✨}code-tag-color: #{hsl(330, 40%, 50%)};
#{$✨}code-property-color: #{hsl(185, 40%, 40%)};
#{$✨}code-value-color: #{hsl(40, 20%, 50%)};
#{$✨}code-comment-color: #{$grey-300};
}
// Form elements
@if map.get($modules, "forms/basics") {
#{$✨}form-element-background-color: transparent;
#{$✨}form-element-border-color: #{$grey-300};
#{$✨}form-element-color: var(#{$}color);
#{$✨}form-element-placeholder-color: var(#{$}muted-color);
#{$✨}form-element-active-background-color: transparent;
#{$✨}form-element-active-border-color: var(#{$}primary);
#{$✨}form-element-focus-color: var(#{$}primary-focus);
#{$✨}form-element-disabled-background-color: #{$grey-100};
#{$✨}form-element-disabled-border-color: #{$grey-300};
#{$✨}form-element-disabled-opacity: 0.5;
#{$✨}form-element-invalid-border-color: #{$red-800};
#{$✨}form-element-invalid-active-border-color: #{$red-700};
#{$✨}form-element-invalid-focus-color: #{rgba($red-700, 0.125)};
#{$✨}form-element-valid-border-color: #{$green-700};
#{$✨}form-element-valid-active-border-color: #{$green-600};
#{$✨}form-element-valid-focus-color: #{rgba($green-600, 0.125)};
}
// Switch (input[type="checkbox"][role="switch"])
@if map.get($modules, "forms/checkbox-radio-switch") {
#{$✨}switch-background-color: #{$grey-200};
#{$✨}switch-color: var(#{$}primary-inverse);
#{$✨}switch-checked-background-color: var(#{$}primary);
}
// Range (input[type="range"])
@if map.get($modules, "forms/input-range") {
#{$✨}range-border-color: #{$grey-100};
#{$✨}range-active-border-color: #{$grey-200};
#{$✨}range-thumb-border-color: var(#{$}background-color);
#{$✨}range-thumb-color: var(#{$}secondary);
#{$✨}range-thumb-hover-color: var(#{$}secondary-hover);
#{$✨}range-thumb-active-color: var(#{$}primary);
}
// Accordion (<details>)
#{$✨}accordion-border-color: var(#{$}muted-border-color);
#{$✨}accordion-close-summary-color: var(#{$}color);
#{$✨}accordion-open-summary-color: var(#{$}muted-color);
@if map.get($modules, "components/accordion") {
#{$✨}accordion-border-color: var(#{$}muted-border-color);
#{$✨}accordion-active-summary-color: var(#{$}primary);
#{$✨}accordion-close-summary-color: var(#{$}color);
#{$✨}accordion-open-summary-color: var(#{$}muted-color);
}
// Card (<article>)
$box-shadow-elevation: 1rem;
$box-shadow-blur-strengh: 6rem;
$box-shadow-opacity: 0.06;
#{$✨}card-background-color: var(#{$}background-color);
#{$✨}card-border-color: var(#{$}muted-border-color);
#{$}card-box-shadow: #{($box-shadow-elevation * 0.5 * 0.029)} #{($box-shadow-elevation * 0.029)}
#{($box-shadow-blur-strengh * 0.029)} #{rgba($grey-900, ($box-shadow-opacity * 0.283))},
#{($box-shadow-elevation * 0.5 * 0.067)} #{($box-shadow-elevation * 0.067)} #{(
$box-shadow-blur-strengh * 0.067
)} #{rgba($grey-900, ($box-shadow-opacity * 0.4))},
#{($box-shadow-elevation * 0.5 * 0.125)} #{($box-shadow-elevation * 0.125)} #{(
$box-shadow-blur-strengh * 0.125
)} #{rgba($grey-900, ($box-shadow-opacity * 0.5))},
#{($box-shadow-elevation * 0.5 * 0.225)} #{($box-shadow-elevation * 0.225)} #{(
$box-shadow-blur-strengh * 0.225
)} #{rgba($grey-900, ($box-shadow-opacity * 0.6))},
#{($box-shadow-elevation * 0.5 * 0.417)} #{($box-shadow-elevation * 0.417)} #{(
$box-shadow-blur-strengh * 0.417
)} #{rgba($grey-900, ($box-shadow-opacity * 0.717))},
#{($box-shadow-elevation * 0.5)} #{$box-shadow-elevation} #{$box-shadow-blur-strengh} #{rgba(
$grey-900,
$box-shadow-opacity
)},
0 0 0 0.0625rem #{rgba($grey-900, ($box-shadow-opacity * 0.25))};
#{$✨}card-sectionning-background-color: #{mix($grey-50, $white, 25%)};
@if map.get($modules, "components/card") {
#{$✨}card-background-color: var(#{$}background-color);
#{$✨}card-border-color: var(#{$}muted-border-color);
#{$✨}card-box-shadow: var(#{$}box-shadow);
#{$✨}card-sectionning-background-color: #{mix($grey-50, $white, 25%)};
}
// Dropdown (<details role="list">)
#{$✨}dropdown-background-color: #{mix($grey-50, $white, 25%)};
#{$✨}dropdown-border-color: #{mix($grey-100, $grey-50)};
#{$✨}dropdown-box-shadow: var(#{$}card-box-shadow);
#{$✨}dropdown-color: var(#{$}color);
#{$✨}dropdown-hover-background-color: #{$grey-50};
// Modal (<dialog>)
#{$✨}modal-overlay-background-color: #{rgba($grey-100, 0.7)};
// Progress
#{$✨}progress-background-color: #{$grey-100};
#{$✨}progress-color: var(#{$}primary);
@if map.get($modules, "components/dropdown") {
#{$✨}dropdown-background-color: #{mix($grey-50, $white, 25%)};
#{$✨}dropdown-border-color: #{mix($grey-100, $grey-50)};
#{$✨}dropdown-box-shadow: var(#{$}box-shadow);
#{$✨}dropdown-color: var(#{$}color);
#{$✨}dropdown-hover-background-color: #{$grey-50};
}
// Loading ([aria-busy=true])
#{$✨}loading-spinner-opacity: 0.5;
@if map.get($modules, "components/loading") {
#{$✨}loading-spinner-opacity: 0.5;
}
// Modal (<dialog>)
@if map.get($modules, "components/modal") {
#{$✨}modal-overlay-background-color: #{rgba($grey-100, 0.7)};
}
// Progress
@if map.get($modules, "components/progress") {
#{$✨}progress-background-color: #{$grey-100};
#{$✨}progress-color: var(#{$}primary);
}
// Tooltip ([data-tooltip])
#{$✨}tooltip-background-color: var(#{$}contrast);
#{$✨}tooltip-color: var(#{$}contrast-inverse);
@if map.get($modules, "components/tooltip") {
#{$✨}tooltip-background-color: var(#{$}contrast);
#{$✨}tooltip-color: var(#{$}contrast-inverse);
}
// Icons
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
#{$✨}icon-chevron-button: 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='#{functions.display-rgb($white)}' 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");
#{$✨}icon-chevron-button-inverse: 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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($grey-500)}' stroke-width='4' 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");
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
#{$✨}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='#{functions.display-rgb($red-800)}' 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");
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($grey-700)}' stroke-width='2' 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");
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
#{$✨}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='#{functions.display-rgb($green-700)}' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
// Checkboxes icon
@if map.get($modules, "forms/checkbox-radio-switch") {
#{$✨}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='#{functions.display-rgb($white)}' 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");
#{$✨}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='#{functions.display-rgb($white)}' 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");
}
// Chevron icons
@if map.get($modules, "forms/basic") or
map.get($modules, "components/accordion") or
map.get($modules, "components/dropdown")
{
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
#{$✨}icon-chevron-button: 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='#{functions.display-rgb($white)}' 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");
#{$✨}icon-chevron-button-inverse: 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='#{functions.display-rgb($white)}' 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");
}
// Datetime icons
@if map.get($modules, "input-date") {
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
#{$✨}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='#{functions.display-rgb($grey-700)}' 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");
}
// Form validation icons
@if map.get($modules, "forms/basic") {
#{$✨}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='#{functions.display-rgb($green-700)}' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
#{$✨}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='#{functions.display-rgb($red-800)}' 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");
}
// Search icon
@if map.get($modules, "forms/input-search") {
#{$✨}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='#{functions.display-rgb($grey-700)}' stroke-width='2' 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");
}
// Close icon
@if map.get($modules, "components/modal") {
#{$✨}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='#{functions.display-rgb($grey-500)}' stroke-width='4' 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");
}
// Document
color-scheme: light;

View file

@ -0,0 +1,39 @@
@use "sass:map";
@use "../../settings" as *;
@use "light";
@use "dark";
@if map.get($modules, "themes/default") {
/**
* Color schemes
*/
// Light color scheme (Default)
// Can be forced with data-theme="light"
[data-theme="light"],
:root:not([data-theme="dark"]) {
@include light.theme;
}
// Dark color scheme (Auto)
// Automatically enabled if user has Dark mode enabled
@media only screen and (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
@include dark.theme;
}
}
// Dark color scheme (Forced)
// Enabled if forced with data-theme="dark"
[data-theme="dark"] {
@include dark.theme;
}
progress,
[type="checkbox"],
[type="radio"],
[type="range"] {
accent-color: var(#{$}primary);
}
}

View file

@ -1,221 +1,259 @@
@use "sass:map";
@use "../../settings" as *;
// Commons Styles:
:root {
@if map.get($modules, "themes/default") {
/**
* Styles
*/
:root {
// Typography
#{$✨}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";
#{$✨}line-height: 1.5;
#{$✨}font-weight: 400;
#{$✨}font-size: 16px;
// Responsive root font size
@if $enable-responsive-typography {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
#{$✨}font-size: map.get($values, "root-font-size");
}
}
}
}
// Borders
#{$✨}border-radius: 0.25rem;
#{$✨}border-width: 1px;
#{$✨}outline-width: 3px;
// Transitions
#{$✨}transition: 0.2s ease-in-out;
// Spacings
#{$✨}spacing: 1rem;
// Spacings for typography elements
@if map.get($modules, "content/typography") {
#{$✨}typography-spacing-vertical: 1.5rem;
}
// Spacings for body > header, body > main, body > footer, section, article
@if map.get($modules, "layout/landmarks") or
map.get($modules, "layout/section") or
map.get($modules, "components/card") or
map.get($modules, "components/modal")
{
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2);
#{$✨}block-spacing-horizontal: var(#{$}spacing);
}
@if map.get($modules, "layout/grid") and $enable-classes {
#{$✨}grid-spacing-vertical: 0;
#{$✨}grid-spacing-horizontal: var(#{$}spacing);
}
// Spacings for form elements and button
@if map.get($modules, "content/button") or map.get($modules, "forms/basic") {
#{$✨}form-element-spacing-vertical: 0.75rem;
#{$✨}form-element-spacing-horizontal: 1rem;
}
// Font weight for form labels & fieldsets legend
@if map.get($modules, "forms/basic") {
#{$✨}form-label-font-weight: var(#{$}font-weight);
}
// Modal (<dialog>)
@if map.get($modules, "components/modal") {
#{$✨}modal-overlay-backdrop-filter: blur(0.25rem);
}
// Spacings for nav component
@if map.get($modules, "components/nav") {
#{$✨}nav-element-spacing-vertical: 1rem;
#{$✨}nav-element-spacing-horizontal: 0.5rem;
#{$✨}nav-link-spacing-vertical: 0.5rem;
#{$✨}nav-link-spacing-horizontal: 0.5rem;
}
}
// Responsives spacings
@if $enable-responsive-spacings {
// Landmarks and section
@if map.get($modules, "layout/landmarks") or map.get($modules, "layout/section") {
#{$semantic-root-element} > header,
#{$semantic-root-element} > main,
#{$semantic-root-element} > footer,
section {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
$multiplier: 1;
@if $key == "sm" {
$multiplier: 2.5;
} @else if $key == "md" {
$multiplier: 3;
} @else if $key == "lg" {
$multiplier: 3.5;
} @else if $key == "xl" {
$multiplier: 4;
}
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * $multiplier);
}
}
}
}
}
// Card (<article>)
@if map.get($modules, "components/card") {
article {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
$multiplier: 1;
@if $key == "sm" {
$multiplier: 1.25;
} @else if $key == "md" {
$multiplier: 1.5;
} @else if $key == "lg" {
$multiplier: 1.75;
} @else if $key == "xl" {
$multiplier: 2;
}
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * $multiplier);
}
}
}
}
}
// Modal
@if map.get($modules, "components/modal") {
dialog > article {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2);
#{$✨}block-spacing-horizontal: var(#{$}spacing);
@if map.get($breakpoints, "sm") {
@media (min-width: map.get(map.get($breakpoints, "sm"), "breakpoint")) {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2.5);
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * 1.25);
}
}
@if map.get($breakpoints, "md") {
@media (min-width: map.get(map.get($breakpoints, "md"), "breakpoint")) {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 3);
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * 1.5);
}
}
}
}
}
// Link
@if map.get($modules, "content/link") {
a {
#{$✨}text-decoration: none;
// Secondary & Contrast
@if enable-classes {
&.secondary,
&.contrast {
#{$✨}text-decoration: underline;
}
}
}
}
// Typography
#{$✨}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";
#{$✨}line-height: 1.5;
#{$✨}font-weight: 400;
#{$✨}font-size: 16px;
@if map.get($modules, "content/typography") {
// Small
small {
#{$✨}font-size: 0.875em;
}
// Responsive root font size
@if $enable-responsive-typography {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
#{$✨}font-size: map.get($values, "root-font-size");
}
}
// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
#{$✨}font-weight: 700;
}
h1 {
#{$✨}font-size: 2rem;
#{$✨}typography-spacing-vertical: 3rem;
}
h2 {
#{$✨}font-size: 1.75rem;
#{$✨}typography-spacing-vertical: 2.625rem;
}
h3 {
#{$✨}font-size: 1.5rem;
#{$✨}typography-spacing-vertical: 2.25rem;
}
h4 {
#{$✨}font-size: 1.25rem;
#{$✨}typography-spacing-vertical: 1.874rem;
}
h5 {
#{$✨}font-size: 1.125rem;
#{$✨}typography-spacing-vertical: 1.6875rem;
}
}
// Borders
#{$✨}border-radius: 0.25rem;
#{$✨}border-width: 1px;
#{$✨}outline-width: 3px;
// Spacings
#{$✨}spacing: 1rem;
// Spacings for typography elements
#{$✨}typography-spacing-vertical: 1.5rem;
// Spacings for body > header, body > main, body > footer, section, article
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2);
#{$✨}block-spacing-horizontal: var(#{$}spacing);
@if ($enable-classes and $enable-grid) {
#{$✨}grid-spacing-vertical: 0;
#{$✨}grid-spacing-horizontal: var(#{$}spacing);
}
// Spacings for form elements and button
#{$✨}form-element-spacing-vertical: 0.75rem;
#{$✨}form-element-spacing-horizontal: 1rem;
// Spacings for nav component
#{$✨}nav-element-spacing-vertical: 1rem;
#{$✨}nav-element-spacing-horizontal: 0.5rem;
#{$✨}nav-link-spacing-vertical: 0.5rem;
#{$✨}nav-link-spacing-horizontal: 0.5rem;
// Font weight for form labels & fieldsets legend
#{$✨}form-label-font-weight: var(#{$}font-weight);
// Transitions
#{$✨}transition: 0.2s ease-in-out;
// Modal (<dialog>)
#{$✨}modal-overlay-backdrop-filter: blur(0.25rem);
}
// Responsives spacings
@if $enable-responsive-spacings {
// Sectioning
#{$semantic-root-element} > header,
#{$semantic-root-element} > main,
#{$semantic-root-element} > footer,
section {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
$multiplier: 1;
@if $key == "sm" {
$multiplier: 2.5;
} @else if $key == "md" {
$multiplier: 3;
} @else if $key == "lg" {
$multiplier: 3.5;
} @else if $key == "xl" {
$multiplier: 4;
}
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * $multiplier);
}
}
}
}
// Card (<article>)
article {
@each $key, $values in $breakpoints {
@if $values {
@media (min-width: map.get($values, "breakpoint")) {
$multiplier: 1;
@if $key == "sm" {
$multiplier: 1.25;
} @else if $key == "md" {
$multiplier: 1.5;
} @else if $key == "lg" {
$multiplier: 1.75;
} @else if $key == "xl" {
$multiplier: 2;
}
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * $multiplier);
}
}
}
}
// Modal
dialog > article {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2);
#{$✨}block-spacing-horizontal: var(#{$}spacing);
@if map.get($breakpoints, "sm") {
@media (min-width: map.get(map.get($breakpoints, "sm"), "breakpoint")) {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 2.5);
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * 1.25);
// Table
@if map.get($modules, "content/table") {
thead,
tfoot {
th,
td {
#{$✨}border-width: 3px;
}
}
@if map.get($breakpoints, "md") {
@media (min-width: map.get(map.get($breakpoints, "md"), "breakpoint")) {
#{$✨}block-spacing-vertical: calc(var(#{$}spacing) * 3);
#{$✨}block-spacing-horizontal: calc(var(#{$}spacing) * 1.5);
}
:not(thead, tfoot) > * > td {
#{$✨}font-size: 0.875em;
}
}
// Code
@if map.get($modules, "content/code") {
pre,
code,
kbd,
samp {
#{$✨}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 {
#{$✨}font-weight: bolder;
}
}
// Checkboxes, Radios and Switches
@if map.get($modules, "forms/checkbox-radio-switch") {
[type="checkbox"],
[type="radio"] {
#{$✨}border-width: 2px;
}
[type="checkbox"][role="switch"] {
#{$✨}border-width: 3px;
}
}
}
// Link
a {
#{$✨}text-decoration: none;
// Secondary & Contrast
@if enable-classes {
&.secondary,
&.contrast {
#{$✨}text-decoration: underline;
}
}
}
// Small
small {
#{$✨}font-size: 0.875em;
}
// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
#{$✨}font-weight: 700;
}
h1 {
#{$✨}font-size: 2rem;
#{$✨}typography-spacing-vertical: 3rem;
}
h2 {
#{$✨}font-size: 1.75rem;
#{$✨}typography-spacing-vertical: 2.625rem;
}
h3 {
#{$✨}font-size: 1.5rem;
#{$✨}typography-spacing-vertical: 2.25rem;
}
h4 {
#{$✨}font-size: 1.25rem;
#{$✨}typography-spacing-vertical: 1.874rem;
}
h5 {
#{$✨}font-size: 1.125rem;
#{$✨}typography-spacing-vertical: 1.6875rem;
}
// Forms elements
[type="checkbox"],
[type="radio"] {
#{$✨}border-width: 2px;
}
[type="checkbox"][role="switch"] {
#{$✨}border-width: 3px;
}
// Table
thead,
tfoot {
th,
td {
#{$✨}border-width: 3px;
}
}
:not(thead, tfoot) > * > td {
#{$✨}font-size: 0.875em;
}
// Code
pre,
code,
kbd,
samp {
#{$✨}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 {
#{$✨}font-weight: bolder;
}

View file

@ -1,52 +1,57 @@
/**
* Accessibility & User interaction
*/
@use "sass:map";
@use "../settings" as *;
// Based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
@if map.get($modules, "utilities/accessibility") {
/**
* Accessibility & User interaction
*/
// Accessibility
// Based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
//
// Change the cursor on control elements in all browsers (opinionated)
[aria-controls] {
cursor: pointer;
}
// Change the cursor on disabled, not-editable, or otherwise inoperable elements in all browsers (opinionated)
[aria-disabled="true"],
[disabled] {
cursor: not-allowed;
}
// Change the display on visually hidden accessible elements in all browsers (opinionated)
[aria-hidden="false"][hidden] {
display: initial;
}
[aria-hidden="false"][hidden]:not(:focus) {
clip: rect(0, 0, 0, 0);
position: absolute;
}
// User interaction
// Remove the tapping delay in IE 10
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
-ms-touch-action: manipulation;
}
// Pico
//
[dir="rtl"] {
direction: rtl;
// Accessibility
// Change the cursor on control elements in all browsers (opinionated)
[aria-controls] {
cursor: pointer;
}
// Change the cursor on disabled, not-editable, or otherwise inoperable elements in all browsers (opinionated)
[aria-disabled="true"],
[disabled] {
cursor: not-allowed;
}
// Change the display on visually hidden accessible elements in all browsers (opinionated)
[aria-hidden="false"][hidden] {
display: initial;
}
[aria-hidden="false"][hidden]:not(:focus) {
clip: rect(0, 0, 0, 0);
position: absolute;
}
// User interaction
// Remove the tapping delay in IE 10
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
-ms-touch-action: manipulation;
}
// Pico
//
[dir="rtl"] {
direction: rtl;
}
}

View file

@ -1,9 +1,10 @@
@use "sass:map";
@use "../settings" as *;
@if enable-transitions and enable-important {
@if map.get($modules, "utilities/reduce-motion") and enable-transitions and enable-important {
/**
* Reduce Motion Features
*/
* Reduce Motion Features
*/
// Based on :
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css

View file

@ -0,0 +1,25 @@
@function shadow($color) {
$box-shadow-elevation: 1rem;
$box-shadow-blur-strengh: 6rem;
$box-shadow-opacity: 0.06;
@return #{($box-shadow-elevation * 0.5 * 0.029)} #{($box-shadow-elevation * 0.029)} #{(
$box-shadow-blur-strengh * 0.029
)} #{rgba($color, ($box-shadow-opacity * 0.283))},
#{($box-shadow-elevation * 0.5 * 0.067)} #{($box-shadow-elevation * 0.067)} #{(
$box-shadow-blur-strengh * 0.067
)} #{rgba($color, ($box-shadow-opacity * 0.4))},
#{($box-shadow-elevation * 0.5 * 0.125)} #{($box-shadow-elevation * 0.125)} #{(
$box-shadow-blur-strengh * 0.125
)} #{rgba($color, ($box-shadow-opacity * 0.5))},
#{($box-shadow-elevation * 0.5 * 0.225)} #{($box-shadow-elevation * 0.225)} #{(
$box-shadow-blur-strengh * 0.225
)} #{rgba($color, ($box-shadow-opacity * 0.6))},
#{($box-shadow-elevation * 0.5 * 0.417)} #{($box-shadow-elevation * 0.417)} #{(
$box-shadow-blur-strengh * 0.417
)} #{rgba($color, ($box-shadow-opacity * 0.717))},
#{($box-shadow-elevation * 0.5)} #{$box-shadow-elevation} #{$box-shadow-blur-strengh} #{rgba(
$color,
$box-shadow-opacity
)},
0 0 0 0.0625rem #{rgba($color, ($box-shadow-opacity * 0.25))};
}