style(ui): optimizar contrastes del modo claro para accesibilidad y confort visual
This commit is contained in:
+288
-28
@@ -38,67 +38,327 @@
|
||||
transition: background-color 0.25s ease, color 0.25s ease;
|
||||
}
|
||||
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) --- */
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - ALTO CONTRASTE & CONFORT VISUAL --- */
|
||||
[data-bs-theme="light"] body {
|
||||
background: #F8FAFC !important;
|
||||
color: #1E293B !important;
|
||||
background-color: #EEF2F6 !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
.navbar-logo,
|
||||
[data-bs-theme="light"] .navbar-logo,
|
||||
[data-bs-theme="dark"] .navbar-logo {
|
||||
filter: none !important;
|
||||
}
|
||||
|
||||
/* Sidebar en Modo Claro */
|
||||
[data-bs-theme="light"] .sidebar {
|
||||
background-color: #FFFFFF !important;
|
||||
border-right: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-header {
|
||||
background-color: #FFFFFF !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-header .brand-text {
|
||||
color: #0F172A !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-toggle-btn {
|
||||
background-color: #F1F5F9 !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-toggle-btn:hover {
|
||||
background-color: rgba(158, 45, 119, 0.1) !important;
|
||||
border-color: #9E2D77 !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link {
|
||||
color: #1E293B !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link:hover,
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link[aria-expanded="true"] {
|
||||
background-color: rgba(158, 45, 119, 0.1) !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-submenu .nav-link {
|
||||
color: #334155 !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-submenu .nav-link:hover {
|
||||
background-color: rgba(158, 45, 119, 0.08) !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-footer {
|
||||
background-color: #FFFFFF !important;
|
||||
border-top: 1px solid #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item:hover > .collapse,
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item > .collapse.show,
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item.show-flyout > .collapse {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar.collapsed .flyout-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
}
|
||||
|
||||
/* Navbar & Dropdowns */
|
||||
[data-bs-theme="light"] .glass-navbar {
|
||||
background: rgba(255, 255, 255, 0.88) !important;
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
|
||||
border-bottom: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link {
|
||||
color: #334155 !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link:hover,
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link.active {
|
||||
color: #B43E8E !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .dropdown-menu {
|
||||
background: #FFFFFF !important;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1) !important;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
|
||||
[data-bs-theme="light"] .dropdown-menu {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .dropdown-item {
|
||||
color: #334155 !important;
|
||||
[data-bs-theme="light"] .dropdown-item {
|
||||
color: #1E293B !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .dropdown-item:hover {
|
||||
[data-bs-theme="light"] .dropdown-item:hover {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #B43E8E !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-divider {
|
||||
border-color: #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-header {
|
||||
color: #475569 !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Cards & Contenedores con Definición y Relieve */
|
||||
[data-bs-theme="light"] .glass-card,
|
||||
[data-bs-theme="light"] .card {
|
||||
background: #FFFFFF !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid rgba(0, 0, 0, 0.08) !important;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
|
||||
color: #0F172A !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-footer {
|
||||
background-color: #F8FAFC !important;
|
||||
border-top: 1px solid #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dashboard-role-banner {
|
||||
background: #FFFFFF !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
border-left: 5px solid #9E2D77 !important;
|
||||
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dashboard-stat-card:hover {
|
||||
border-color: #9E2D77 !important;
|
||||
box-shadow: 0 6px 20px rgba(158, 45, 119, 0.15) !important;
|
||||
}
|
||||
|
||||
/* Tablas con Alto Contraste */
|
||||
[data-bs-theme="light"] .table {
|
||||
--bs-table-color: #1E293B;
|
||||
--bs-table-color: #0F172A;
|
||||
--bs-table-bg: transparent;
|
||||
border-color: #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .bg-body-tertiary {
|
||||
[data-bs-theme="light"] .table thead th {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #334155 !important;
|
||||
color: #0F172A !important;
|
||||
font-weight: 700 !important;
|
||||
border-bottom: 2px solid #CBD5E1 !important;
|
||||
font-size: 0.82rem;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
[data-bs-theme="light"] .text-body {
|
||||
[data-bs-theme="light"] .table tbody td {
|
||||
color: #1E293B !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
[data-bs-theme="light"] .text-muted {
|
||||
[data-bs-theme="light"] .table tbody tr:hover td {
|
||||
background-color: #F8FAFC !important;
|
||||
}
|
||||
|
||||
/* Formularios, Inputs y Selects */
|
||||
[data-bs-theme="light"] .form-label {
|
||||
color: #0F172A !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control,
|
||||
[data-bs-theme="light"] .form-select {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #94A3B8 !important;
|
||||
color: #0F172A !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control:focus,
|
||||
[data-bs-theme="light"] .form-select:focus {
|
||||
border-color: #9E2D77 !important;
|
||||
box-shadow: 0 0 0 0.2rem rgba(158, 45, 119, 0.2) !important;
|
||||
background-color: #FFFFFF !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control::placeholder {
|
||||
color: #64748B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .input-group-text {
|
||||
background-color: #F1F5F9 !important;
|
||||
border: 1px solid #94A3B8 !important;
|
||||
color: #334155 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-text {
|
||||
color: #475569 !important;
|
||||
}
|
||||
|
||||
/* Jerarquía Tipográfica y Contraste de Texto */
|
||||
[data-bs-theme="light"] .bg-body-tertiary {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-body {
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-muted {
|
||||
color: #475569 !important;
|
||||
}
|
||||
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2,
|
||||
[data-bs-theme="light"] h3, [data-bs-theme="light"] h4,
|
||||
[data-bs-theme="light"] h5, [data-bs-theme="light"] h6 {
|
||||
color: #0F172A !important;
|
||||
}
|
||||
|
||||
/* Colores Semánticos de Alto Contraste en Modo Claro */
|
||||
[data-bs-theme="light"] .text-primary {
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-warning {
|
||||
color: #B45309 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-info {
|
||||
color: #0369A1 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-success {
|
||||
color: #15803D !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-danger {
|
||||
color: #B91C1C !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-secondary {
|
||||
color: #334155 !important;
|
||||
}
|
||||
|
||||
/* Badges de Estado con Bordes Nítidos y Excelente Contraste */
|
||||
[data-bs-theme="light"] .badge.bg-primary-subtle {
|
||||
background-color: #FCE7F3 !important;
|
||||
color: #831843 !important;
|
||||
border: 1px solid #F472B6 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-success-subtle {
|
||||
background-color: #DCFCE7 !important;
|
||||
color: #14532D !important;
|
||||
border: 1px solid #86EFAC !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-warning-subtle {
|
||||
background-color: #FEF3C7 !important;
|
||||
color: #78350F !important;
|
||||
border: 1px solid #FCD34D !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-info-subtle {
|
||||
background-color: #E0F2FE !important;
|
||||
color: #0C4A6E !important;
|
||||
border: 1px solid #7DD3FC !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-danger-subtle {
|
||||
background-color: #FEE2E2 !important;
|
||||
color: #7F1D1D !important;
|
||||
border: 1px solid #FCA5A5 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-secondary-subtle {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
}
|
||||
|
||||
/* Fondos con opacidad suave para KPIs */
|
||||
[data-bs-theme="light"] .bg-primary.bg-opacity-10 {
|
||||
background-color: rgba(158, 45, 119, 0.12) !important;
|
||||
color: #9E2D77 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .bg-success.bg-opacity-10 {
|
||||
background-color: rgba(21, 128, 61, 0.12) !important;
|
||||
color: #15803D !important;
|
||||
}
|
||||
[data-bs-theme="light"] .bg-info.bg-opacity-10 {
|
||||
background-color: rgba(3, 105, 161, 0.12) !important;
|
||||
color: #0369A1 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .bg-warning.bg-opacity-10 {
|
||||
background-color: rgba(180, 83, 9, 0.12) !important;
|
||||
color: #B45309 !important;
|
||||
}
|
||||
|
||||
/* Botones de Contorno en Modo Claro */
|
||||
[data-bs-theme="light"] .btn-outline-secondary {
|
||||
border-color: #94A3B8 !important;
|
||||
color: #1E293B !important;
|
||||
background-color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-secondary:hover {
|
||||
background-color: #F1F5F9 !important;
|
||||
border-color: #64748B !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-primary {
|
||||
color: #9E2D77 !important;
|
||||
border-color: #9E2D77 !important;
|
||||
background-color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-primary:hover {
|
||||
background-color: #9E2D77 !important;
|
||||
border-color: #832062 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .role-view-selector {
|
||||
background-color: #E2E8F0 !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .role-view-selector .btn-outline-secondary {
|
||||
color: #334155 !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Bordes y Líneas Divisorias */
|
||||
[data-bs-theme="light"] .border,
|
||||
[data-bs-theme="light"] .border-top,
|
||||
[data-bs-theme="light"] .border-bottom,
|
||||
[data-bs-theme="light"] .border-start,
|
||||
[data-bs-theme="light"] .border-end {
|
||||
border-color: #CBD5E1 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .border-secondary-subtle {
|
||||
border-color: #CBD5E1 !important;
|
||||
}
|
||||
|
||||
/* Botón de Alternancia de Tema */
|
||||
[data-bs-theme="light"] .theme-toggle-btn {
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
color: #1E293B;
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
background: rgba(15, 23, 42, 0.08);
|
||||
color: #0F172A;
|
||||
border: 1px solid #CBD5E1;
|
||||
border-radius: 50%;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
@@ -109,7 +369,7 @@
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
[data-bs-theme="light"] .theme-toggle-btn:hover {
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
background: rgba(15, 23, 42, 0.15);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,49 +43,69 @@
|
||||
padding-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) --- */
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - ALTO CONTRASTE & CONFORT VISUAL --- */
|
||||
[data-bs-theme="light"] body {
|
||||
background: #F8FAFC !important;
|
||||
color: #1E293B !important;
|
||||
background-color: #EEF2F6 !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar {
|
||||
background: rgba(255, 255, 255, 0.92) !important;
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
|
||||
border-bottom: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .navbar-brand span {
|
||||
background: linear-gradient(90deg, #B43E8E, #682CAD);
|
||||
background: linear-gradient(90deg, #9E2D77, #581C87);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link {
|
||||
color: #334155 !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link:hover,
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link.active {
|
||||
color: #B43E8E !important;
|
||||
background: rgba(180, 62, 142, 0.06);
|
||||
color: #9E2D77 !important;
|
||||
background: rgba(158, 45, 119, 0.08);
|
||||
border-radius: 7px;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-card,
|
||||
[data-bs-theme="light"] .card {
|
||||
background: #FFFFFF !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid rgba(0, 0, 0, 0.08) !important;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
|
||||
color: #0F172A !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
color: #0F172A !important;
|
||||
}
|
||||
[data-bs-theme="light"] .table {
|
||||
--bs-table-color: #0F172A;
|
||||
border-color: #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .table thead th {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #0F172A !important;
|
||||
font-weight: 700 !important;
|
||||
border-bottom: 2px solid #CBD5E1 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-muted {
|
||||
color: #475569 !important;
|
||||
}
|
||||
/* Toggle button - modo claro */
|
||||
[data-bs-theme="light"] .navbar-toggle-custom {
|
||||
color: #334155;
|
||||
border-color: rgba(51, 65, 85, 0.25);
|
||||
color: #1E293B;
|
||||
border-color: #CBD5E1;
|
||||
background-color: #F1F5F9;
|
||||
}
|
||||
[data-bs-theme="light"] .navbar-toggle-custom:hover {
|
||||
background: rgba(180, 62, 142, 0.08);
|
||||
border-color: #B43E8E;
|
||||
color: #B43E8E;
|
||||
background: rgba(158, 45, 119, 0.1);
|
||||
border-color: #9E2D77;
|
||||
color: #9E2D77;
|
||||
}
|
||||
|
||||
/* --- MODO OSCURO ([data-bs-theme="dark"]) --- */
|
||||
|
||||
Reference in New Issue
Block a user