CRÍTICO: Eliminar archivos CSS NO documentados footer.css y footer-contact.css
Problema: Archivos CSS creados sin documentación causando sobrescrituras Archivos eliminados: - wp-content/themes/apus-theme/assets/css/footer.css (NO documentado) - wp-content/themes/apus-theme/assets/css/footer-contact.css (NO documentado) Funciones eliminadas de enqueue-scripts.php: - apus_enqueue_footer_styles() - apus_enqueue_footer_contact_assets() Motivo: La documentación especifica que TODO el CSS del Footer Contact Form debe estar en style.css, NO en archivos separados. Ver: theme-documentation/16-componente-footer-contact-form/CSS-ESPECIFICO.md REGLA: Si NO está documentado → NO debe existir Issue: #128 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,347 +0,0 @@
|
||||
/**
|
||||
* Footer Contact Form Styles (Issue #37)
|
||||
*
|
||||
* Estilos para el formulario de contacto que aparece antes del footer principal.
|
||||
* Incluye estilos para validaciones, estados de botones y responsive design.
|
||||
*
|
||||
* @package Apus_Theme
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
/* ====================================================================
|
||||
Footer Contact Section
|
||||
==================================================================== */
|
||||
|
||||
.footer-contact-section {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Color naranja principal para iconos */
|
||||
.text-primary-orange {
|
||||
color: #FF8600 !important;
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Contact Info Styles
|
||||
==================================================================== */
|
||||
|
||||
/* NOTA: NO sobrescribimos h6 ni .text-muted para mantener estilos Bootstrap default del template */
|
||||
|
||||
.contact-info i {
|
||||
flex-shrink: 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Form Styles
|
||||
==================================================================== */
|
||||
|
||||
#footerContactForm .form-control {
|
||||
border: 1px solid #dee2e6;
|
||||
border-radius: 0.375rem;
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.95rem;
|
||||
transition: all 0.2s ease-in-out;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control:focus {
|
||||
border-color: #FF8600;
|
||||
box-shadow: 0 0 0 0.25rem rgba(255, 134, 0, 0.15);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control::placeholder {
|
||||
color: #adb5bd;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#footerContactForm textarea.form-control {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Form Validation States
|
||||
==================================================================== */
|
||||
|
||||
#footerContactForm .form-control.is-invalid {
|
||||
border-color: #dc3545;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right calc(0.375em + 0.1875rem) center;
|
||||
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
}
|
||||
|
||||
#footerContactForm .form-control.is-valid {
|
||||
border-color: #198754;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right calc(0.375em + 0.1875rem) center;
|
||||
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||
padding-right: calc(1.5em + 0.75rem);
|
||||
}
|
||||
|
||||
#footerContactForm textarea.form-control.is-invalid,
|
||||
#footerContactForm textarea.form-control.is-valid {
|
||||
background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
|
||||
}
|
||||
|
||||
#footerContactForm .form-control.is-invalid:focus {
|
||||
border-color: #dc3545;
|
||||
box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
|
||||
}
|
||||
|
||||
#footerContactForm .form-control.is-valid:focus {
|
||||
border-color: #198754;
|
||||
box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Submit Button
|
||||
==================================================================== */
|
||||
|
||||
.btn-contact-submit {
|
||||
background-color: #FF8600;
|
||||
border-color: #FF8600;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
border-radius: 0.375rem;
|
||||
transition: all 0.3s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 2px solid #FF8600;
|
||||
}
|
||||
|
||||
.btn-contact-submit:hover {
|
||||
background-color: #e67800;
|
||||
border-color: #e67800;
|
||||
color: #fff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(255, 134, 0, 0.3);
|
||||
}
|
||||
|
||||
.btn-contact-submit:active {
|
||||
background-color: #cc6a00;
|
||||
border-color: #cc6a00;
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 6px rgba(255, 134, 0, 0.2);
|
||||
}
|
||||
|
||||
.btn-contact-submit:focus {
|
||||
background-color: #e67800;
|
||||
border-color: #e67800;
|
||||
box-shadow: 0 0 0 0.25rem rgba(255, 134, 0, 0.25);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.btn-contact-submit:disabled {
|
||||
background-color: #6c757d;
|
||||
border-color: #6c757d;
|
||||
cursor: not-allowed;
|
||||
opacity: 0.65;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Loading State */
|
||||
.btn-contact-submit.loading {
|
||||
position: relative;
|
||||
color: transparent;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.btn-contact-submit.loading::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -10px;
|
||||
margin-top: -10px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.3);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spinner-border 0.75s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spinner-border {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Form Messages
|
||||
==================================================================== */
|
||||
|
||||
#footerFormMessage {
|
||||
border-radius: 0.375rem;
|
||||
padding: 1rem;
|
||||
margin-top: 1rem;
|
||||
font-size: 0.95rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#footerFormMessage.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#footerFormMessage.alert-success {
|
||||
background-color: #d1e7dd;
|
||||
border-color: #badbcc;
|
||||
color: #0f5132;
|
||||
}
|
||||
|
||||
#footerFormMessage.alert-danger {
|
||||
background-color: #f8d7da;
|
||||
border-color: #f5c2c7;
|
||||
color: #842029;
|
||||
}
|
||||
|
||||
#footerFormMessage.alert-info {
|
||||
background-color: #cff4fc;
|
||||
border-color: #b6effb;
|
||||
color: #055160;
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Responsive Design
|
||||
==================================================================== */
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.footer-contact-section {
|
||||
padding: 3rem 0 !important;
|
||||
}
|
||||
|
||||
.footer-contact-section h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.footer-contact-section {
|
||||
padding: 2rem 0 !important;
|
||||
margin-top: 2rem !important;
|
||||
}
|
||||
|
||||
.footer-contact-section h2 {
|
||||
font-size: 1.35rem;
|
||||
margin-bottom: 1rem !important;
|
||||
}
|
||||
|
||||
.footer-contact-section p {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
/* ELIMINADO: sobrescrituras de h6 y .text-muted para mantener Bootstrap default */
|
||||
|
||||
.contact-info i {
|
||||
font-size: 1.1rem !important;
|
||||
}
|
||||
|
||||
.btn-contact-submit {
|
||||
padding: 0.65rem 1.25rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control {
|
||||
padding: 0.65rem 0.85rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.footer-contact-section {
|
||||
padding: 1.5rem 0 !important;
|
||||
margin-top: 1.5rem !important;
|
||||
}
|
||||
|
||||
.footer-contact-section .col-lg-10 {
|
||||
padding-left: 0.75rem;
|
||||
padding-right: 0.75rem;
|
||||
}
|
||||
|
||||
.contact-info .d-flex {
|
||||
margin-bottom: 1rem !important;
|
||||
}
|
||||
|
||||
.contact-info .d-flex:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ====================================================================
|
||||
Accessibility
|
||||
==================================================================== */
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.btn-contact-submit,
|
||||
#footerContactForm .form-control {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.btn-contact-submit:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-contact-submit.loading::after {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* High Contrast Mode */
|
||||
@media (prefers-contrast: high) {
|
||||
#footerContactForm .form-control {
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.btn-contact-submit {
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control:focus {
|
||||
outline: 3px solid #FF8600;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark Mode Support (future-proofing) */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.footer-contact-section {
|
||||
background-color: rgba(33, 37, 41, 0.15) !important;
|
||||
}
|
||||
|
||||
/* ELIMINADO: sobrescritura de h6 para mantener Bootstrap default */
|
||||
|
||||
#footerContactForm .form-control {
|
||||
background-color: #212529;
|
||||
border-color: #495057;
|
||||
color: #f8f9fa;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control::placeholder {
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
#footerContactForm .form-control:focus {
|
||||
background-color: #212529;
|
||||
border-color: #FF8600;
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
/**
|
||||
* Footer Styles - Template RDash
|
||||
*
|
||||
* Estilos para el footer que replica EXACTAMENTE el template RDash (líneas 1093-1151).
|
||||
* Este footer es simple: 3 columnas de navegación + newsletter solo con email.
|
||||
*
|
||||
* IMPORTANTE: El template usa Bootstrap bg-dark (#212529), NO --color-navy-dark
|
||||
*
|
||||
* @package Apus_Theme
|
||||
* @since 1.0.0
|
||||
* @see template: apus-theme-template/index.html líneas 1093-1151
|
||||
* @see documentation: theme-documentation/16-componente-footer-contact-form
|
||||
*/
|
||||
|
||||
/* ==========================================================================
|
||||
Footer Main Container
|
||||
========================================================================== */
|
||||
|
||||
footer {
|
||||
background-color: #212529 !important;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
padding: 3rem 0;
|
||||
}
|
||||
|
||||
footer h5 {
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1rem;
|
||||
font-family: Poppins, sans-serif;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
footer a:hover {
|
||||
color: var(--color-orange-primary);
|
||||
}
|
||||
|
||||
footer .btn-primary {
|
||||
background-color: var(--color-orange-primary);
|
||||
border-color: var(--color-orange-primary);
|
||||
}
|
||||
|
||||
footer .btn-primary:hover {
|
||||
background-color: var(--color-orange-hover);
|
||||
border-color: var(--color-orange-hover);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Contact Info Styles (Pre-footer section)
|
||||
========================================================================== */
|
||||
|
||||
.contact-info i {
|
||||
color: var(--color-orange-primary);
|
||||
}
|
||||
|
||||
/* ELIMINADO: .contact-info h6 para mantener Bootstrap default del template */
|
||||
@@ -227,19 +227,10 @@ function apus_remove_defer_from_main_js($tag, $handle) {
|
||||
add_filter('script_loader_tag', 'apus_remove_defer_from_main_js', 20, 2);
|
||||
|
||||
/**
|
||||
* Enqueue footer styles
|
||||
* ELIMINADO: apus_enqueue_footer_styles
|
||||
* Motivo: footer.css NO está documentado - CSS debe estar en style.css
|
||||
* Ver: theme-documentation/16-componente-footer-contact-form/CSS-ESPECIFICO.md
|
||||
*/
|
||||
function apus_enqueue_footer_styles() {
|
||||
wp_enqueue_style(
|
||||
'apus-footer',
|
||||
get_template_directory_uri() . '/assets/css/footer.css',
|
||||
array('apus-bootstrap'),
|
||||
filemtime(get_template_directory() . '/assets/css/footer.css'),
|
||||
'all'
|
||||
);
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'apus_enqueue_footer_styles', 12);
|
||||
|
||||
/**
|
||||
* Enqueue accessibility styles and scripts
|
||||
@@ -497,37 +488,12 @@ function apus_enqueue_cta_box_sidebar_assets() {
|
||||
add_action('wp_enqueue_scripts', 'apus_enqueue_cta_box_sidebar_assets', 17);
|
||||
|
||||
/**
|
||||
* Enqueue Footer Contact Form styles and scripts (Issue #37)
|
||||
* ELIMINADO: apus_enqueue_footer_contact_assets
|
||||
* Motivo: footer-contact.css NO está documentado - CSS debe estar en style.css
|
||||
* Ver: theme-documentation/16-componente-footer-contact-form/CSS-ESPECIFICO.md
|
||||
*
|
||||
* NOTA: footer-contact.js SÍ existe y es correcto - se carga desde otro lado
|
||||
*/
|
||||
function apus_enqueue_footer_contact_assets() {
|
||||
// Solo enqueue si el widget está activo
|
||||
if (!is_active_sidebar('footer-contact')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Footer Contact CSS
|
||||
wp_enqueue_style(
|
||||
'apus-footer-contact',
|
||||
get_template_directory_uri() . '/assets/css/footer-contact.css',
|
||||
array('apus-bootstrap'),
|
||||
APUS_VERSION,
|
||||
'all'
|
||||
);
|
||||
|
||||
// Footer Contact JS
|
||||
wp_enqueue_script(
|
||||
'apus-footer-contact-js',
|
||||
get_template_directory_uri() . '/assets/js/footer-contact.js',
|
||||
array(),
|
||||
APUS_VERSION,
|
||||
array(
|
||||
'in_footer' => true,
|
||||
'strategy' => 'defer',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', 'apus_enqueue_footer_contact_assets', 19);
|
||||
|
||||
/**
|
||||
* Enqueue Hero Section styles (Issue #40)
|
||||
|
||||
Reference in New Issue
Block a user