From 82a5cf00da9af7fcb245087ac529c8bb4ee393e7 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Thu, 6 Nov 2025 19:43:48 -0600 Subject: [PATCH] =?UTF-8?q?Eliminar=20c=C3=B3digo=20comentado=20basura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROBLEMA: Código comentado es BASURA. No debe permanecer en archivos de producción. Para eso existe Git - historial completo disponible si se necesita. ARCHIVOS LIMPIADOS: 1. buttons.css: - ANTES: 54 líneas (header + código comentado) - AHORA: 9 líneas (solo header indicando deshabilitación) - ELIMINADO: ~45 líneas de CSS comentado 2. custom-style.css: - ELIMINADO: ~84 líneas de navbar comentado (líneas 86-166) - ELIMINADO: ~23 líneas de botón comentado (líneas 168-190) - REEMPLAZADO: con 1 línea de nota breve - ANTES: 107 líneas de código basura comentado - AHORA: 1 línea de referencia 3. enqueue-scripts.php: - ELIMINADO: ~13 líneas de enqueue buttons.css comentado - ELIMINADO: ~33 líneas de enqueue notification-bar comentado - AHORA: Código limpio sin basura TOTAL ELIMINADO: ~152 líneas de código comentado basura PRINCIPIO: - Código comentado = basura - Git guarda historial completo - Si se necesita algo, está en el commit anterior - Archivos de producción deben estar limpios REFERENCIAS: - CSS correcto está en: assets/css/style.css - Historial en Git si se necesita código anterior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../themes/apus-theme/assets/css/buttons.css | 51 +------- .../apus-theme/assets/css/custom-style.css | 110 +----------------- .../themes/apus-theme/inc/enqueue-scripts.php | 48 -------- 3 files changed, 4 insertions(+), 205 deletions(-) diff --git a/wp-content/themes/apus-theme/assets/css/buttons.css b/wp-content/themes/apus-theme/assets/css/buttons.css index 4bd594fb..9ee0988b 100644 --- a/wp-content/themes/apus-theme/assets/css/buttons.css +++ b/wp-content/themes/apus-theme/assets/css/buttons.css @@ -1,54 +1,9 @@ /** - * Buttons Styles + * Buttons Styles - ARCHIVO DESHABILITADO * - * ARCHIVO DESHABILITADO - Issue #101 - * - * CSS movido a assets/css/style.css (líneas 766-785) - * Este archivo contenía implementación INCORRECTA: - * - Gradiente en lugar de color sólido - * - Efectos de transform y shadow no presentes en template fuente - * - Media queries no documentadas - * - * Template fuente correcto: apus-theme-template/css/style.css líneas 163-180 + * CSS movido a assets/css/style.css + * Ver Issue #101 * * @package Apus_Theme * @since 1.0.0 */ - -/* -CONTENIDO ORIGINAL DESHABILITADO: - -.btn-lets-talk { - background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%); - color: #ffffff; - font-weight: 600; - padding: 0.5rem 1.5rem; - border: none; - border-radius: 6px; - transition: all 0.3s ease; - box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); -} - -.btn-lets-talk:hover { - background: linear-gradient(135deg, #FF5722 0%, #FF6B35 100%); - color: #ffffff; - transform: translateY(-2px); - box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45); -} - -.btn-lets-talk:active { - transform: translateY(0); - box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); -} - -.btn-lets-talk i { - font-size: 1.1rem; -} - -@media (max-width: 991.98px) { - .btn-lets-talk { - width: 100%; - margin-top: 1rem; - } -} -*/ diff --git a/wp-content/themes/apus-theme/assets/css/custom-style.css b/wp-content/themes/apus-theme/assets/css/custom-style.css index bcfecd38..08dcc7b2 100644 --- a/wp-content/themes/apus-theme/assets/css/custom-style.css +++ b/wp-content/themes/apus-theme/assets/css/custom-style.css @@ -79,115 +79,7 @@ body { color: var(--color-orange-primary); } -/* ======================================== - NAVBAR -======================================== */ - -/* - * NAVBAR CSS MOVIDO A: assets/css/style.css (líneas 687-764) - * Comentado para evitar duplicación según Issue #100 - * -.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 { - 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-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 { - background: #ffffff; - border: none; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); - border-radius: 8px; - padding: 0.5rem 0; -} - -.dropdown-item { - color: var(--color-neutral-600); - padding: 0.625rem 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); -} -*/ - -/* - * BOTÓN LET'S TALK CSS MOVIDO A: assets/css/style.css (líneas 766-785) - * Comentado para evitar duplicación según Issue #101 - * -.btn-lets-talk { - background-color: var(--color-orange-primary); - color: #ffffff; - font-weight: 600; - padding: 0.5rem 1.5rem; - border: none; - border-radius: 6px; - transition: all 0.3s ease; -} - -.btn-lets-talk:hover { - background-color: var(--color-orange-hover); - color: #ffffff; -} - -.btn-lets-talk i { - color: #ffffff; -} -*/ +/* NAVBAR y BOTÓN LET'S TALK: CSS movido a assets/css/style.css */ /* ======================================== HERO SECTION diff --git a/wp-content/themes/apus-theme/inc/enqueue-scripts.php b/wp-content/themes/apus-theme/inc/enqueue-scripts.php index c6aaa997..c36ba057 100644 --- a/wp-content/themes/apus-theme/inc/enqueue-scripts.php +++ b/wp-content/themes/apus-theme/inc/enqueue-scripts.php @@ -98,20 +98,6 @@ add_action('wp_enqueue_scripts', 'apus_enqueue_main_stylesheet', 5); * Estilos que replican componentes del template RDash */ function apus_enqueue_fase2_styles() { - // Buttons CSS - Let's Talk button (Issue #58) - // DESHABILITADO: CSS movido a assets/css/style.css (líneas 766-785) - // buttons.css tenía implementación incorrecta (gradiente en lugar de sólido) - // Ver Issue #101 - /* - wp_enqueue_style( - 'apus-buttons', - get_template_directory_uri() . '/assets/css/buttons.css', - array('apus-bootstrap'), - filemtime(get_template_directory() . '/assets/css/buttons.css'), - 'all' - ); - */ - // Hero Section CSS - Gradiente azul (Issue #59) wp_enqueue_style( 'apus-hero', @@ -478,40 +464,6 @@ function apus_enqueue_cta_box_sidebar_assets() { add_action('wp_enqueue_scripts', 'apus_enqueue_cta_box_sidebar_assets', 17); -/** - * Enqueue Top Notification Bar styles and scripts (Issue #39) - * - * DESHABILITADO: CSS ahora está en assets/css/style.css (líneas 658-685) - * siguiendo el template fuente apus-theme-template/index.html - * El componente no requiere JavaScript, es solo HTML/CSS estático. - */ -/* -function apus_enqueue_notification_bar_assets() { - // Notification Bar CSS - wp_enqueue_style( - 'apus-notification-bar', - get_template_directory_uri() . '/assets/css/notification-bar.css', - array('apus-bootstrap'), - APUS_VERSION, - 'all' - ); - - // Notification Bar JavaScript - wp_enqueue_script( - 'apus-notification-bar-js', - get_template_directory_uri() . '/assets/js/notification-bar.js', - array(), - APUS_VERSION, - array( - 'in_footer' => true, - 'strategy' => 'defer', - ) - ); -} - -add_action('wp_enqueue_scripts', 'apus_enqueue_notification_bar_assets', 18); -*/ - /** * Enqueue Footer Contact Form styles and scripts (Issue #37) */