mirror of
https://github.com/unraid/api.git
synced 2025-12-30 21:19:49 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Added “Unraid API Status” page under Management Access to view current API status, refresh it, and restart the API with confirmation. - Status view shows running state, detailed output, and in-app success/error messages after actions. - Style - Minor theme adjustments to border colors; no layout changes expected. - Chores - Updated UI text: “Unraid API” → “Unraid API Settings” in settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
92 lines
2.8 KiB
CSS
92 lines
2.8 KiB
CSS
/**
|
|
* Tailwind v4 Theme Variants
|
|
* Defines theme-specific CSS variables that can be switched via classes
|
|
* These are applied dynamically based on the theme selected in GraphQL
|
|
*/
|
|
|
|
/* Default/White Theme */
|
|
:root,
|
|
.theme-white {
|
|
--header-text-primary: #ffffff;
|
|
--header-text-secondary: #999999;
|
|
--header-background-color: #1c1b1b;
|
|
--header-gradient-start: rgba(28, 27, 27, 0);
|
|
--header-gradient-end: rgba(28, 27, 27, 0.7);
|
|
--color-border: #383735;
|
|
--color-alpha: #ff8c2f;
|
|
--color-beta: #1c1b1b;
|
|
--color-gamma: #ffffff;
|
|
--color-gamma-opaque: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Black Theme */
|
|
.theme-black,
|
|
.theme-black.dark {
|
|
--header-text-primary: #1c1b1b;
|
|
--header-text-secondary: #999999;
|
|
--header-background-color: #f2f2f2;
|
|
--header-gradient-start: rgba(242, 242, 242, 0);
|
|
--header-gradient-end: rgba(242, 242, 242, 0.7);
|
|
--color-border: #e0e0e0;
|
|
--color-alpha: #ff8c2f;
|
|
--color-beta: #f2f2f2;
|
|
--color-gamma: #1c1b1b;
|
|
--color-gamma-opaque: rgba(28, 27, 27, 0.3);
|
|
}
|
|
|
|
/* Gray Theme */
|
|
.theme-gray {
|
|
--header-text-primary: #ffffff;
|
|
--header-text-secondary: #999999;
|
|
--header-background-color: #1c1b1b;
|
|
--header-gradient-start: rgba(28, 27, 27, 0);
|
|
--header-gradient-end: rgba(28, 27, 27, 0.7);
|
|
--color-border: #383735;
|
|
--color-alpha: #ff8c2f;
|
|
--color-beta: #383735;
|
|
--color-gamma: #ffffff;
|
|
--color-gamma-opaque: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Azure Theme */
|
|
.theme-azure {
|
|
--header-text-primary: #1c1b1b;
|
|
--header-text-secondary: #999999;
|
|
--header-background-color: #f2f2f2;
|
|
--header-gradient-start: rgba(242, 242, 242, 0);
|
|
--header-gradient-end: rgba(242, 242, 242, 0.7);
|
|
--color-border: #5a8bb8;
|
|
--color-alpha: #ff8c2f;
|
|
--color-beta: #e7f2f8;
|
|
--color-gamma: #336699;
|
|
--color-gamma-opaque: rgba(51, 102, 153, 0.3);
|
|
}
|
|
|
|
/* Dark Mode Overrides */
|
|
.dark {
|
|
--color-border: #383735;
|
|
}
|
|
|
|
/*
|
|
* Dynamic color variables for user overrides from GraphQL
|
|
* These are set via JavaScript and override the theme defaults
|
|
* Using :root with class for higher specificity to override theme classes
|
|
*/
|
|
:root.has-custom-header-text {
|
|
--header-text-primary: var(--custom-header-text-primary);
|
|
--color-header-text-primary: var(--custom-header-text-primary);
|
|
}
|
|
|
|
:root.has-custom-header-meta {
|
|
--header-text-secondary: var(--custom-header-text-secondary);
|
|
--color-header-text-secondary: var(--custom-header-text-secondary);
|
|
}
|
|
|
|
:root.has-custom-header-bg {
|
|
--header-background-color: var(--custom-header-background-color);
|
|
--color-header-background: var(--custom-header-background-color);
|
|
--header-gradient-start: var(--custom-header-gradient-start);
|
|
--header-gradient-end: var(--custom-header-gradient-end);
|
|
--color-header-gradient-start: var(--custom-header-gradient-start);
|
|
--color-header-gradient-end: var(--custom-header-gradient-end);
|
|
} |