enhanced the tooltip to have a width of max-content and a max width of 250px. This will allow for the tooltips to not always be 250px wide even when the tooltip is short.

Added the ghost buttons from discussion #29
This commit is contained in:
Yohn 2025-01-13 21:02:05 -05:00
parent f8fbce367b
commit eb1304a8e4
262 changed files with 2039 additions and 646 deletions

View file

@ -1,6 +1,6 @@
@charset "UTF-8";
/*!
* Pico CSS v2.2.3 (https://github.com/Yohn/PicoCSS)
* Pico CSS v2.2.4 (https://github.com/Yohn/PicoCSS)
* Copyright 2019-2025 - Licensed under MIT
*/
/**
@ -199,19 +199,19 @@ input:not([type=submit],
color-scheme: light;
--pico-background-color: #fff;
--pico-color: #373c44;
--pico-text-selection-color: rgba(2, 154, 232, 0.25);
--pico-text-selection-color: rgba(183, 136, 0, 0.25);
--pico-muted-color: #646b79;
--pico-muted-border-color: rgb(231, 234, 239.5);
--pico-primary: #0172ad;
--pico-primary-background: #0172ad;
--pico-primary: #876400;
--pico-primary-background: #ffbf00;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(1, 114, 173, 0.5);
--pico-primary-hover: #015887;
--pico-primary-hover-background: #02659a;
--pico-primary-underline: rgba(135, 100, 0, 0.5);
--pico-primary-hover: #694d00;
--pico-primary-hover-background: #e8ae01;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(2, 154, 232, 0.5);
--pico-primary-inverse: #fff;
--pico-primary-focus: rgba(183, 136, 0, 0.5);
--pico-primary-inverse: #000;
--pico-secondary: #5d6b89;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -275,7 +275,7 @@ input:not([type=submit],
--pico-switch-background-color: #bfc7d9;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #dfe3eb;
--pico-range-active-border-color: #bfc7d9;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -305,12 +305,12 @@ input:not([type=submit],
[data-theme=light] .pico details summary[role=button]::after,
:root:not([data-theme=dark]) .pico details summary[role=button]::after,
:host(:not([data-theme=dark])) .pico details summary[role=button]::after {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
[data-theme=light] .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:root:not([data-theme=dark]) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:host(:not([data-theme=dark])) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(100) invert(0);
filter: brightness(0) invert(1);
}
[data-theme=light] input:is([type=submit],
[type=button],
@ -339,19 +339,19 @@ input:not([type=submit],
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(1, 170, 255, 0.1875);
--pico-text-selection-color: rgba(199, 148, 0, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #01aaff;
--pico-primary-background: #0172ad;
--pico-primary: #c79400;
--pico-primary-background: #ffbf00;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(1, 170, 255, 0.5);
--pico-primary-hover: #79c0ff;
--pico-primary-hover-background: #017fc0;
--pico-primary-underline: rgba(199, 148, 0, 0.5);
--pico-primary-hover: #e8ae01;
--pico-primary-hover-background: #fecc63;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(1, 170, 255, 0.375);
--pico-primary-inverse: #fff;
--pico-primary-focus: rgba(199, 148, 0, 0.375);
--pico-primary-inverse: #000;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -415,7 +415,7 @@ input:not([type=submit],
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -458,30 +458,30 @@ input:not([type=submit],
}
:root:not([data-theme]) .pico details summary[role=button]::after,
:host(:not([data-theme])) .pico details summary[role=button]::after {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
:root:not([data-theme]) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before,
:host(:not([data-theme])) .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
}
[data-theme=dark] {
color-scheme: dark;
--pico-background-color: rgb(19, 22.5, 30.5);
--pico-color: #c2c7d0;
--pico-text-selection-color: rgba(1, 170, 255, 0.1875);
--pico-text-selection-color: rgba(199, 148, 0, 0.1875);
--pico-muted-color: #7b8495;
--pico-muted-border-color: #202632;
--pico-primary: #01aaff;
--pico-primary-background: #0172ad;
--pico-primary: #c79400;
--pico-primary-background: #ffbf00;
--pico-primary-border: var(--pico-primary-background);
--pico-primary-underline: rgba(1, 170, 255, 0.5);
--pico-primary-hover: #79c0ff;
--pico-primary-hover-background: #017fc0;
--pico-primary-underline: rgba(199, 148, 0, 0.5);
--pico-primary-hover: #e8ae01;
--pico-primary-hover-background: #fecc63;
--pico-primary-hover-border: var(--pico-primary-hover-background);
--pico-primary-hover-underline: var(--pico-primary-hover);
--pico-primary-focus: rgba(1, 170, 255, 0.375);
--pico-primary-inverse: #fff;
--pico-primary-focus: rgba(199, 148, 0, 0.375);
--pico-primary-inverse: #000;
--pico-secondary: #969eaf;
--pico-secondary-background: #525f7a;
--pico-secondary-border: var(--pico-secondary-background);
@ -545,7 +545,7 @@ input:not([type=submit],
--pico-switch-background-color: #333c4e;
--pico-switch-checked-background-color: var(--pico-primary-background);
--pico-switch-color: #fff;
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
--pico-switch-thumb-box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25);
--pico-range-border-color: #202632;
--pico-range-active-border-color: #2a3140;
--pico-range-thumb-border-color: var(--pico-background-color);
@ -581,10 +581,10 @@ input:not([type=submit],
--pico-form-element-focus-color: var(--pico-primary-focus);
}
[data-theme=dark] .pico details summary[role=button]::after {
filter: brightness(100) invert(0);
filter: brightness(100) invert(1);
}
[data-theme=dark] .pico [aria-busy=true]:not(input, select, textarea, html, form):is(button, [type=submit], [type=button], [type=reset], [role=button])::before {
filter: brightness(100) invert(1);
filter: brightness(100) invert(0);
}
.pico progress,
@ -3135,7 +3135,8 @@ body:has(dialog[open]) {
position: absolute;
bottom: 100%;
left: 50%;
width: 250px;
width: -moz-max-content;
width: max-content;
max-width: 250px;
padding: 0.25rem 0.5rem;
overflow: hidden;