Files
roi-theme/wp-content/themes/apus-theme/assets/css/pagination.css
FrankZamora 37eb5e1ad3 [FASE 2] Implementar CSS de componentes RDash - Issues #58-64
Implementación completa de estilos CSS que replican componentes del template RDash según validación de Issue #57.

**Archivos CSS Creados:**

1. **buttons.css (Issue #58)** - Botón "Let's Talk" en navbar
   - Gradiente naranja: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%)
   - Hover: translateY(-2px) con shadow profesional
   - Box-shadow: rgba(255, 107, 53, 0.3)
   - Border-radius: 6px, padding: 0.5rem 1.5rem
   - Responsive: width 100% en móvil (<991.98px)
   - Template ref: css/style.css líneas 527-552

2. **hero.css (Issue #59)** - Hero Section con gradiente azul
   - Background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%)
   - Box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25)
   - H1 color: #ffffff con text-shadow
   - Category badges hero: backdrop-filter blur(10px)
   - Badge background: rgba(255, 255, 255, 0.15)
   - Border: 1px solid rgba(255, 255, 255, 0.2)
   - Hover: translateY(-2px), shadow profesional
   - Template ref: css/style.css líneas 122-129

3. **badges.css (Issue #62)** - Clase .category-badge genérica
   - Background: #e9ecef, border-radius: 20px
   - Color: #6c757d, font-size: 0.813rem
   - Padding: 0.375rem 0.875rem
   - Variante .category-badge-hero para fondos oscuros
   - Backdrop-filter: blur(10px)
   - Hover transitions: all 0.3s ease
   - Template ref: css/style.css líneas 459-490

4. **post-content.css (Issue #63)** - Typography de contenido
   - H2: font-size 2rem, border-bottom 1px solid #eee
   - H2 color: #1e3a5f, margin-top: 2.5rem
   - H3: font-size 1.5rem, color: #2c5282
   - Párrafos: line-height 1.8, font-size 1.1rem
   - Links: color #0d6efd, underline, font-weight 500
   - Blockquote: border-left 4px solid #0d6efd
   - Code: background #f8f9fa, color #e83e8c
   - Pre: background #f8f9fa, border-radius 8px
   - Responsive: H2 1.5rem, párrafos 1rem en móvil
   - Template ref: css/style.css líneas 208-227

5. **pagination.css (Issue #64)** - Paginación personalizada
   - Page-link: border-radius 6px, padding 0.5rem 0.875rem
   - Hover: translateY(-2px), box-shadow profesional
   - Active: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%)
   - Active font-weight: 600
   - Disabled: opacity 0.5, cursor not-allowed
   - Responsive: hide intermediate numbers en móvil
   - Dark mode support
   - Print: display none
   - Template ref: css/style.css líneas 180-207

**Archivos CSS Modificados:**

1. **related-posts.css (Issue #60)** - Corrección background
   - Línea 55: background: #f8f9fa (antes #f7fafc)
   - Mantiene hover transition a #ffffff
   - Border-left 4px gradiente animado
   - Gradiente: linear-gradient(180deg, #1e3a5f 0%, #1a73e8 100%)
   - Opacity border: 0 → 1 en hover
   - Transform: translateY(-8px)
   - Shadow: 0 12px 32px rgba(26, 115, 232, 0.15)

**Verificación:**

1. **toc.css (Issue #61)** - VERIFICADO 
   - Ya tiene todos los estilos correctos
   - Background: #f8f9fa (línea 16)
   - Border: 1px solid #dee2e6 (línea 17)
   - Border-left 3px en links activos (líneas 180, 199)
   - Scrollbar 6px con colores #cbd5e0 y #a0aec0 (líneas 334-349)
   - Sticky position con top: 5.5rem (líneas 22-23)
   - Issue #55 completado previamente

**Integración:**

- **inc/enqueue-scripts.php** - Modificado
  - Nueva función: apus_enqueue_fase2_styles() prioridad 6
  - Enqueue buttons.css (global)
  - Enqueue hero.css (global)
  - Enqueue badges.css (global)
  - Enqueue pagination.css (global)
  - Enqueue post-content.css (solo is_single)
  - Enqueue related-posts.css (solo is_single)
  - Sintaxis PHP validada:  Sin errores

**Estadísticas:**

- Archivos CSS nuevos: 5 (buttons, hero, badges, post-content, pagination)
- Archivos CSS modificados: 2 (related-posts, enqueue-scripts)
- Líneas de código CSS: 700+ líneas
- Issues completados: 7 (#58, #59, #60, #61, #62, #63, #64)
- Validación PHP:  Sin errores

**Próximo Paso:**
Validación visual del usuario para verificar que tema coincide con template antes de proceder a FASE 3 (detalles y ajustes finos).

Relacionado con: #57 (Issue principal), #58-64 (sub-issues)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 21:24:13 -06:00

198 lines
3.9 KiB
CSS

/**
* Pagination Styles
*
* Estilos personalizados para paginación
* Template ref: css/style.css líneas 180-207
*
* @package Apus_Theme
* @since 1.0.0
*/
/* ============================================
PAGINATION PERSONALIZADA
============================================ */
.pagination {
margin-top: 3rem;
margin-bottom: 2rem;
}
.page-item {
margin: 0 0.25rem;
}
.page-link {
color: #495057;
background-color: #ffffff;
border: 1px solid #dee2e6;
border-radius: 6px;
padding: 0.5rem 0.875rem;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.page-link:hover {
color: #0d6efd;
background-color: #f8f9fa;
border-color: #0d6efd;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(13, 110, 253, 0.15);
z-index: 2;
}
.page-link:focus {
color: #0d6efd;
background-color: #e9ecef;
border-color: #0d6efd;
outline: 0;
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* Active page */
.page-item.active .page-link {
color: #ffffff;
background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
border-color: #0d6efd;
font-weight: 600;
box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
z-index: 3;
}
.page-item.active .page-link:hover {
background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}
/* Disabled state */
.page-item.disabled .page-link {
color: #adb5bd;
background-color: #ffffff;
border-color: #dee2e6;
cursor: not-allowed;
opacity: 0.5;
}
.page-item.disabled .page-link:hover {
transform: none;
box-shadow: none;
}
/* First and Last */
.page-item:first-child .page-link {
border-radius: 6px;
}
.page-item:last-child .page-link {
border-radius: 6px;
}
/* Prev and Next */
.page-item .page-link[rel="prev"],
.page-item .page-link[rel="next"] {
font-weight: 600;
padding: 0.5rem 1.125rem;
}
/* Ellipsis */
.page-item .page-link.dots {
border: none;
background: transparent;
cursor: default;
}
.page-item .page-link.dots:hover {
background: transparent;
transform: none;
box-shadow: none;
}
/* Responsive */
@media (max-width: 767.98px) {
.pagination {
margin-top: 2rem;
margin-bottom: 1.5rem;
font-size: 0.875rem;
}
.page-item {
margin: 0 0.15rem;
}
.page-link {
padding: 0.375rem 0.625rem;
border-radius: 4px;
}
.page-item .page-link[rel="prev"],
.page-item .page-link[rel="next"] {
padding: 0.375rem 0.75rem;
}
/* Hide some page numbers on mobile, keep only current +/- 1 */
.page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
display: none;
}
}
@media (max-width: 575.98px) {
.pagination {
font-size: 0.813rem;
}
.page-link {
padding: 0.3rem 0.5rem;
}
.page-item .page-link[rel="prev"],
.page-item .page-link[rel="next"] {
padding: 0.3rem 0.6rem;
}
}
/* Print */
@media print {
.pagination {
display: none;
}
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
.page-link {
transition: none;
}
.page-link:hover,
.page-item.active .page-link:hover {
transform: none;
}
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
.page-link {
color: #f8f9fa;
background-color: #212529;
border-color: #495057;
}
.page-link:hover {
color: #ffffff;
background-color: #343a40;
border-color: #0d6efd;
}
.page-item.active .page-link {
background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}
.page-item.disabled .page-link {
color: #6c757d;
background-color: #212529;
border-color: #495057;
}
}