Update new functions
This commit is contained in:
144
css/sigpro.css
144
css/sigpro.css
@@ -6969,6 +6969,49 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.input, .select, .textarea {
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
&:focus, &:focus-within {
|
||||
outline: 2px solid transparent !important;
|
||||
outline-offset: 2px !important;
|
||||
}
|
||||
&:hover:not(:focus) {
|
||||
background-color: oklch(from var(--color-base-100) calc(l - 0.03) c h);
|
||||
}
|
||||
&:focus {
|
||||
--focus-color: var(--color-primary);
|
||||
&[class*="-secondary"] {
|
||||
--focus-color: var(--color-secondary);
|
||||
}
|
||||
&[class*="-accent"] {
|
||||
--focus-color: var(--color-accent);
|
||||
}
|
||||
&[class*="-neutral"] {
|
||||
--focus-color: var(--color-neutral);
|
||||
}
|
||||
&[class*="-ghost"] {
|
||||
--focus-color: var(--color-base-content);
|
||||
}
|
||||
&[class*="-info"] {
|
||||
--focus-color: var(--color-info);
|
||||
}
|
||||
&[class*="-success"] {
|
||||
--focus-color: var(--color-success);
|
||||
}
|
||||
&[class*="-warning"] {
|
||||
--focus-color: var(--color-warning);
|
||||
}
|
||||
&[class*="-error"] {
|
||||
--focus-color: var(--color-error);
|
||||
}
|
||||
background-color: oklch(from var(--focus-color) l c h / 0.05);
|
||||
border-color: var(--focus-color);
|
||||
box-shadow: 0 0 0 4px oklch(from var(--focus-color) l c h / 0.25);
|
||||
&[class*="-ghost"] {
|
||||
border-width: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@layer base {
|
||||
:where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light] {
|
||||
color-scheme: light;
|
||||
@@ -7215,6 +7258,107 @@
|
||||
background-position-x: -115%;
|
||||
}
|
||||
}
|
||||
@layer base {
|
||||
:where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme="light"] {
|
||||
color-scheme: light;
|
||||
--color-base-100: oklch(100% 0 0);
|
||||
--color-base-200: oklch(98% 0 0);
|
||||
--color-base-300: oklch(92% 0 0);
|
||||
--color-base-content: oklch(25% 0.006 285);
|
||||
--color-primary: oklch(25% 0.006 285);
|
||||
--color-primary-content: oklch(98% 0 0);
|
||||
--color-secondary: oklch(55% 0.046 257.417);
|
||||
--color-secondary-content: oklch(98% 0 0);
|
||||
--color-accent: oklch(96% 0 0);
|
||||
--color-accent-content: oklch(25% 0.006 285);
|
||||
--color-neutral: oklch(14% 0.005 285.823);
|
||||
--color-neutral-content: oklch(92% 0.004 286.32);
|
||||
--color-info: oklch(74% 0.16 232);
|
||||
--color-info-content: oklch(29% 0.066 243.157);
|
||||
--color-success: oklch(62% 0.17 163);
|
||||
--color-success-content: oklch(37% 0.077 168.94);
|
||||
--color-warning: oklch(82% 0.18 84);
|
||||
--color-warning-content: oklch(41% 0.112 45.904);
|
||||
--color-error: oklch(60% 0.25 27);
|
||||
--color-error-content: oklch(27% 0.105 12.094);
|
||||
--radius-selector: 0.5rem;
|
||||
--radius-field: 0.4rem;
|
||||
--radius-box: 0.5rem;
|
||||
--size-selector: 0.25rem;
|
||||
--size-field: 0.25rem;
|
||||
--border: 1px;
|
||||
--depth: 1;
|
||||
--noise: 0;
|
||||
}
|
||||
}
|
||||
@layer base {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme]) {
|
||||
color-scheme: dark;
|
||||
--color-base-100: oklch(15% 0.005 285.823);
|
||||
--color-base-200: oklch(20% 0.005 285.823);
|
||||
--color-base-300: oklch(30% 0.005 285.823);
|
||||
--color-base-content: oklch(92% 0.004 286.32);
|
||||
--color-primary: oklch(98% 0 0);
|
||||
--color-primary-content: oklch(15% 0 0);
|
||||
--color-secondary: oklch(65% 0.046 257.417);
|
||||
--color-secondary-content: oklch(15% 0.005 285.823);
|
||||
--color-accent: oklch(25% 0 0);
|
||||
--color-accent-content: oklch(98% 0 0);
|
||||
--color-neutral: oklch(92% 0.004 286.32);
|
||||
--color-neutral-content: oklch(14% 0.005 285.823);
|
||||
--color-info: oklch(70% 0.1 230);
|
||||
--color-info-content: oklch(29% 0.066 243.157);
|
||||
--color-success: oklch(65% 0.15 160);
|
||||
--color-success-content: oklch(37% 0.077 168.94);
|
||||
--color-warning: oklch(85% 0.15 90);
|
||||
--color-warning-content: oklch(41% 0.112 45.904);
|
||||
--color-error: oklch(55% 0.2 27);
|
||||
--color-error-content: oklch(27% 0.105 12.094);
|
||||
--radius-selector: 0.5rem;
|
||||
--radius-field: 0.4rem;
|
||||
--radius-box: 0.5rem;
|
||||
--size-selector: 0.25rem;
|
||||
--size-field: 0.25rem;
|
||||
--border: 1px;
|
||||
--depth: 1;
|
||||
--noise: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@layer base {
|
||||
:root:has(input.theme-controller[value=dark]:checked),[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--color-base-100: oklch(15% 0.005 285.823);
|
||||
--color-base-200: oklch(20% 0.005 285.823);
|
||||
--color-base-300: oklch(30% 0.005 285.823);
|
||||
--color-base-content: oklch(92% 0.004 286.32);
|
||||
--color-primary: oklch(98% 0 0);
|
||||
--color-primary-content: oklch(15% 0 0);
|
||||
--color-secondary: oklch(65% 0.046 257.417);
|
||||
--color-secondary-content: oklch(15% 0.005 285.823);
|
||||
--color-accent: oklch(25% 0 0);
|
||||
--color-accent-content: oklch(98% 0 0);
|
||||
--color-neutral: oklch(92% 0.004 286.32);
|
||||
--color-neutral-content: oklch(14% 0.005 285.823);
|
||||
--color-info: oklch(70% 0.1 230);
|
||||
--color-info-content: oklch(29% 0.066 243.157);
|
||||
--color-success: oklch(65% 0.15 160);
|
||||
--color-success-content: oklch(37% 0.077 168.94);
|
||||
--color-warning: oklch(85% 0.15 90);
|
||||
--color-warning-content: oklch(41% 0.112 45.904);
|
||||
--color-error: oklch(55% 0.2 27);
|
||||
--color-error-content: oklch(27% 0.105 12.094);
|
||||
--radius-selector: 0.5rem;
|
||||
--radius-field: 0.4rem;
|
||||
--radius-box: 0.5rem;
|
||||
--size-selector: 0.25rem;
|
||||
--size-field: 0.25rem;
|
||||
--border: 1px;
|
||||
--depth: 1;
|
||||
--noise: 0;
|
||||
}
|
||||
}
|
||||
@property --tw-translate-x {
|
||||
syntax: "*";
|
||||
inherits: false;
|
||||
|
||||
2
css/sigpro.min.css
vendored
2
css/sigpro.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user