ARQUITECTURA: Renombrar CSS para correspondencia 1-a-1 con documentación - Issue #133
PROBLEMA RESUELTO: - Duplicación de archivos CSS (hero.css y hero-section.css) - Nombres genéricos que no corresponden con documentación - Confusión sobre qué archivo editar RENOMBRAMIENTOS (7 archivos): ✅ notification-bar.css → componente-top-bar.css ✅ navbar.css → componente-navbar.css ✅ buttons.css → componente-boton-lets-talk.css ✅ hero.css → componente-hero-section.css (+ CSS correcto del template) ✅ toc-sidebar.css → componente-sidebar-toc.css ✅ social-share.css → componente-share-buttons.css ✅ footer-contact.css → componente-footer-contact-form.css ELIMINADO: ❌ hero-section.css (duplicado con CSS incorrecto) - Usaba clases .hero-section y .hero-category-badge - El HTML real usa .hero-title y .category-badge - Consolidado en componente-hero-section.css ACTUALIZACIONES: - enqueue-scripts.php: Todas las referencias actualizadas - functions.php: Version bump 1.0.8 → 1.0.9 - Eliminada función apus_enqueue_hero_section_styles() (duplicada) BENEFICIOS: ✅ Correspondencia directa 1-a-1 con carpetas de documentación ✅ Evita duplicaciones futuras ✅ Facilita identificar qué CSS editar ✅ Nomenclatura consistente y estándar Issue: #133 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,137 @@
|
||||
/**
|
||||
* Social Share Buttons Styles
|
||||
*
|
||||
* Estilos para los botones de compartir en redes sociales
|
||||
* con animaciones suaves y diseño responsive.
|
||||
*
|
||||
* @package Apus_Theme
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
/* Contenedor principal de la sección de compartir */
|
||||
.social-share-section {
|
||||
border-top: 1px solid #dee2e6;
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* Texto de compartir */
|
||||
.social-share-section .text-muted {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Contenedor de botones */
|
||||
.share-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Estilos base de los botones */
|
||||
.share-buttons .btn {
|
||||
transition: all 0.3s ease;
|
||||
border-width: 2px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1;
|
||||
min-width: 42px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* Efecto hover general */
|
||||
.share-buttons .btn:hover {
|
||||
transform: translateY(-3px) scale(1.1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
/* Efecto active (cuando se hace clic) */
|
||||
.share-buttons .btn:active {
|
||||
transform: translateY(-1px) scale(1.05);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Efectos específicos por red social */
|
||||
|
||||
/* Facebook - azul */
|
||||
.share-buttons .btn-outline-primary:hover {
|
||||
background-color: #1877f2;
|
||||
border-color: #1877f2;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* X (Twitter) - negro */
|
||||
.share-buttons .btn-outline-dark:hover {
|
||||
background-color: #000000;
|
||||
border-color: #000000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* LinkedIn - azul claro */
|
||||
.share-buttons .btn-outline-info:hover {
|
||||
background-color: #0a66c2;
|
||||
border-color: #0a66c2;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* WhatsApp - verde */
|
||||
.share-buttons .btn-outline-success:hover {
|
||||
background-color: #25d366;
|
||||
border-color: #25d366;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Email - gris */
|
||||
.share-buttons .btn-outline-secondary:hover {
|
||||
background-color: #6c757d;
|
||||
border-color: #6c757d;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Accesibilidad: focus para navegación con teclado */
|
||||
.share-buttons .btn:focus {
|
||||
outline: 2px solid currentColor;
|
||||
outline-offset: 2px;
|
||||
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
||||
}
|
||||
|
||||
/* Responsive: ajustes para móviles */
|
||||
@media (max-width: 576px) {
|
||||
.social-share-section {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.share-buttons {
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.share-buttons .btn {
|
||||
min-width: 40px;
|
||||
padding: 0.45rem 0.7rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive: pantallas muy pequeñas */
|
||||
@media (max-width: 360px) {
|
||||
.share-buttons .btn {
|
||||
min-width: 38px;
|
||||
padding: 0.4rem 0.65rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo de impresión: ocultar botones de compartir */
|
||||
@media print {
|
||||
.social-share-section {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user