fix: properly override header values (#1673)

This commit is contained in:
Eli Bosley
2025-09-08 12:55:52 -04:00
committed by GitHub
parent 785f1f5eb1
commit aecf70ffad
2 changed files with 16 additions and 24 deletions
+4 -4
View File
@@ -84,10 +84,10 @@
--color-primary-900: #7c2d12;
--color-primary-950: #431407;
/* Header colors */
--color-header-text-primary: #1c1c1c;
--color-header-text-secondary: #999999;
--color-header-background: #f2f2f2;
/* Header colors - defaults will be overridden by theme */
--color-header-text-primary: var(--header-text-primary, #1c1c1c);
--color-header-text-secondary: var(--header-text-secondary, #999999);
--color-header-background: var(--header-background-color, #f2f2f2);
/* Legacy colors - defaults (overridden by theme-variants.css) */
--color-alpha: #ff8c2f;
+12 -20
View File
@@ -3,8 +3,12 @@
* Using scoped selectors to prevent breaking Unraid WebGUI
*/
/* Import all dependencies at root level */
@import "tailwindcss";
/* Define custom layers with controlled cascade */
@layer theme, unapi-base, components, utilities;
/* Import theme and utilities only - no global preflight */
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);
@import "@nuxt/ui";
@import 'tw-animate-css';
@import '../../../@tailwind-shared/index.css';
@@ -14,26 +18,14 @@
@source "../../../unraid-ui/src/**/*.{vue,ts,js,tsx,jsx}";
/*
* Override Tailwind's global resets to only apply within .unapi
* We use high-specificity selectors to counteract Tailwind's global styles
* Scoped base styles for .unapi elements only
* Import Tailwind's preflight into our custom layer and scope it
*/
@layer base {
/* Neutralize Tailwind's global resets for non-.unapi elements */
body *:not(.unapi *) {
all: revert-layer;
}
/* Reapply Tailwind-like resets only within .unapi */
.unapi *,
.unapi *::before,
.unapi *::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: theme('borderColor.DEFAULT', currentColor);
margin: 0;
padding: 0;
@layer unapi-base {
/* Scope all Tailwind preflight styles to .unapi */
.unapi {
@import "tailwindcss/preflight.css";
}
/* Override Unraid's button styles for Nuxt UI components */