Problema: - style.css contenía CSS de MÚLTIPLES componentes mezclados - Violaba principio de separación de responsabilidades - Algunos componentes tenían archivos CSS pero estaban duplicados en style.css Solución: 1. REACTIVADO buttons.css - Era archivo deshabilitado (Issue #101 lo movió a style.css - INCORRECTO) - Ahora contiene estilos del botón Let's Talk - Registrado en enqueue-scripts.php línea 189 2. CREADO navbar.css - Nuevo archivo para navegación principal - Incluye: navbar, navbar-brand, nav-link, dropdown-menu, dropdown-item - Registrado en enqueue-scripts.php línea 180 3. REGISTRADO notification-bar.css - Archivo ya existía pero NO estaba registrado - Ahora registrado en enqueue-scripts.php línea 171 4. LIMPIEZA MASIVA style.css - Eliminadas 262 líneas de CSS de componentes - Componentes movidos: * TOP NOTIFICATION BAR → notification-bar.css * NAVBAR → navbar.css * BOTÓN LET'S TALK → buttons.css * HERO SECTION → hero.css (ya existía) * POST CONTENT → post-content.css (ya existía) * FEATURED IMAGE → (comentado, pendiente crear si necesario) Archivos modificados: - assets/css/buttons.css - Reactivado con estilos Let's Talk - assets/css/navbar.css (NUEVO) - Componente navegación - assets/css/style.css - Eliminadas 262 líneas - inc/enqueue-scripts.php - Nueva función apus_enqueue_global_components() - functions.php - Version bump 1.0.6 → 1.0.7 🎯 Resultado: - style.css ahora SOLO contiene estilos GLOBALES del tema - TODOS los componentes en archivos individuales - Arquitectura consistente y mantenible - No más duplicaciones 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
135 lines
2.9 KiB
CSS
135 lines
2.9 KiB
CSS
/**
|
|
* Navbar Styles
|
|
*
|
|
* RESPONSABILIDAD: Estilos del componente de navegación principal
|
|
* - Navbar sticky
|
|
* - Navbar brand
|
|
* - Nav links y efectos hover
|
|
* - Dropdown menu
|
|
* - Dropdown items
|
|
*
|
|
* @package Apus_Theme
|
|
* @since 1.0.7
|
|
* @source apus-theme-template/css/style.css
|
|
*/
|
|
|
|
/* ========================================
|
|
Navbar Principal
|
|
======================================== */
|
|
|
|
.navbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1030;
|
|
background-color: var(--color-navy-primary) !important;
|
|
box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
|
|
padding: 0.75rem 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.navbar.scrolled {
|
|
box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
|
|
}
|
|
|
|
/* ========================================
|
|
Navbar Brand
|
|
======================================== */
|
|
|
|
.navbar-brand {
|
|
color: #ffffff !important;
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.navbar-brand:hover {
|
|
color: var(--color-orange-primary) !important;
|
|
}
|
|
|
|
/* ========================================
|
|
Nav Links
|
|
======================================== */
|
|
|
|
.nav-link {
|
|
color: rgba(255, 255, 255, 0.9) !important;
|
|
font-weight: 500;
|
|
position: relative;
|
|
padding: 0.5rem 0.65rem !important;
|
|
transition: all 0.3s ease;
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%) scaleX(0);
|
|
width: 80%;
|
|
height: 2px;
|
|
background: var(--color-orange-primary);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--color-orange-primary) !important;
|
|
background-color: rgba(255, 133, 0, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.nav-link:hover::after {
|
|
transform: translateX(-50%) scaleX(1);
|
|
}
|
|
|
|
/* ========================================
|
|
Dropdown Menu
|
|
======================================== */
|
|
|
|
.dropdown-menu {
|
|
background: #ffffff;
|
|
border: none;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
border-radius: 8px;
|
|
padding: 0.5rem 0;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
scroll-behavior: smooth;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-gray-400) transparent;
|
|
}
|
|
|
|
/* Webkit browsers (Chrome, Safari, Edge) scrollbar */
|
|
.dropdown-menu::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.dropdown-menu::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.dropdown-menu::-webkit-scrollbar-thumb {
|
|
background-color: var(--color-gray-400);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.dropdown-menu::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--color-gray-500);
|
|
}
|
|
|
|
/* ========================================
|
|
Dropdown Items
|
|
======================================== */
|
|
|
|
.dropdown-item {
|
|
color: var(--color-neutral-600);
|
|
padding: 0.5rem 1.25rem;
|
|
transition: all 0.3s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background-color: rgba(255, 133, 0, 0.1);
|
|
color: var(--color-orange-primary);
|
|
}
|