Update globals.css

This commit is contained in:
MacRimi
2025-10-22 18:10:05 +02:00
parent 0262ea31eb
commit 2c0e1e498b

View File

@@ -139,104 +139,106 @@
} }
/* ===================== */ /* ===================== */
/* Base layer */ /* Base styles */
/* ===================== */ /* ===================== */
@layer base { /* Removed @layer base to fix Tailwind CSS v4 compatibility */
* { * {
@apply border-border outline-ring/50; border-color: var(--border);
} outline-color: color-mix(in oklch, var(--ring), transparent 50%);
}
body { body {
@apply bg-background text-foreground; background-color: var(--background);
} color: var(--foreground);
}
/* Foco accesible */ /* Foco accesible */
:is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus { :is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus {
@apply outline-none; outline: none;
} }
:is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
@apply ring-2; :is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
--tw-ring-color: var(--ring); outline: 2px solid color-mix(in oklch, var(--ring), transparent 50%);
--tw-ring-opacity: 0.5; /* equivalente al /50 */ outline-offset: 2px;
}
} }
/* ===================== */ /* ===================== */
/* Ajustes para Charts */ /* Component styles */
/* ===================== */ /* ===================== */
@layer components { /* Removed @layer components to fix Tailwind CSS v4 compatibility */
/* Recharts axis */
.recharts-cartesian-axis-tick tspan {
fill: var(--muted-foreground);
}
.recharts-cartesian-axis-line,
.recharts-cartesian-grid line {
stroke: var(--border);
}
/* Chart.js axis */ /* Recharts axis */
.chartjs-render-monitor text { .recharts-cartesian-axis-tick tspan {
fill: var(--muted-foreground); fill: var(--muted-foreground);
} }
.chartjs-render-monitor line {
stroke: var(--border); .recharts-cartesian-axis-line,
} .recharts-cartesian-grid line {
stroke: var(--border);
/* Estilos personalizados para notas de ProxMenux */ }
/* Asegura que el contenido HTML de ProxMenux se renderice correctamente */
.proxmenux-notes { /* Chart.js axis */
/* Centrar el contenido */ .chartjs-render-monitor text {
text-align: center; fill: var(--muted-foreground);
} }
/* Asegurar que las tablas dentro de las notas se vean correctamente */ .chartjs-render-monitor line {
.proxmenux-notes table { stroke: var(--border);
width: 100%; }
border-collapse: collapse;
margin: 0 auto; /* Estilos personalizados para notas de ProxMenux */
} /* Asegura que el contenido HTML de ProxMenux se renderice correctamente */
.proxmenux-notes {
.proxmenux-notes table td { text-align: center;
vertical-align: middle; }
padding: 0.5rem;
} /* Asegurar que las tablas dentro de las notas se vean correctamente */
.proxmenux-notes table {
/* Asegurar que las imágenes dentro de las notas se vean correctamente */ width: 100%;
.proxmenux-notes img { border-collapse: collapse;
display: inline-block; margin: 0 auto;
max-width: 100%; }
height: auto;
} .proxmenux-notes table td {
vertical-align: middle;
/* Asegurar que los enlaces (badges) se mantengan en línea horizontal */ padding: 0.5rem;
.proxmenux-notes p a { }
display: inline-block;
margin-right: 0.25rem; /* Asegurar que las imágenes dentro de las notas se vean correctamente */
margin-bottom: 0.25rem; .proxmenux-notes img {
} display: inline-block;
max-width: 100%;
.proxmenux-notes p a img { height: auto;
display: inline-block; }
vertical-align: middle;
} /* Asegurar que los enlaces (badges) se mantengan en línea horizontal */
.proxmenux-notes p a {
/* Añadir separador visual después de la tabla (similar a Proxmox) */ display: inline-block;
.proxmenux-notes table + p { margin-right: 0.25rem;
margin-top: 1rem; margin-bottom: 0.25rem;
padding-top: 1rem; }
border-top: 1px solid var(--border);
} .proxmenux-notes p a img {
display: inline-block;
/* Estilos para los párrafos de información de discos */ vertical-align: middle;
.proxmenux-notes div p { }
margin: 0.25rem 0;
} /* Añadir separador visual después de la tabla (similar a Proxmox) */
.proxmenux-notes table + p {
/* Asegurar que los títulos se vean correctamente */ margin-top: 1rem;
.proxmenux-notes h1, padding-top: 1rem;
.proxmenux-notes h2, border-top: 1px solid var(--border);
.proxmenux-notes h3 { }
margin: 0;
line-height: 1.2; /* Estilos para los párrafos de información de discos */
} .proxmenux-notes div p {
margin: 0.25rem 0;
}
/* Asegurar que los títulos se vean correctamente */
.proxmenux-notes h1,
.proxmenux-notes h2,
.proxmenux-notes h3 {
margin: 0;
line-height: 1.2;
} }