Fix: Actualizar estilos post-content para coincidir con template - Issue #134
PROBLEMA: - Los estilos del componente .post-content en staging no coincidían con el template base - Container .post-content no tenía background, padding, border-radius ni box-shadow - H2 border-bottom era 1px gris en lugar de 3px naranja - H2 font-weight era 600 en lugar de 700 - Links eran color Bootstrap azul (#0d6efd) en lugar de naranja (--color-orange-primary) - Márgenes y padding no coincidían con template SOLUCIÓN: - Reemplazado componente-post-content.css con estilos correctos del template - Source: apus-theme-template/css/style.css líneas 245-298 - Container ahora tiene background blanco, padding 2rem, border-radius 12px, box-shadow - H2 border-bottom cambiado a 3px solid var(--color-orange-primary) - H2 font-weight cambiado a 700 - Links color cambiado a var(--color-orange-primary) - Agregado responsive para .post-content container ARCHIVOS: - wp-content/themes/apus-theme/assets/css/componente-post-content.css - wp-content/themes/apus-theme/functions.php (version 1.0.11 → 1.0.12) Ref: #134 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,33 +1,42 @@
|
|||||||
/**
|
/**
|
||||||
* Post Content Typography
|
* Post Content Component
|
||||||
*
|
*
|
||||||
* Estilos de tipografía para contenido de posts
|
* Estilos para el contenedor y contenido de posts
|
||||||
* Template ref: css/style.css líneas 208-227
|
* Source: apus-theme-template/css/style.css líneas 245-298
|
||||||
*
|
*
|
||||||
* @package Apus_Theme
|
* @package Apus_Theme
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
POST CONTENT CONTAINER
|
||||||
|
============================================ */
|
||||||
|
|
||||||
|
.post-content {
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
POST CONTENT TYPOGRAPHY
|
POST CONTENT TYPOGRAPHY
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
||||||
.post-content h2 {
|
.post-content h2 {
|
||||||
font-size: 2rem;
|
color: var(--color-navy-primary);
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
margin-top: 2.5rem;
|
margin-top: 2.5rem;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.25rem;
|
||||||
border-bottom: 1px solid #eee;
|
padding-bottom: 0.75rem;
|
||||||
padding-bottom: 0.5rem;
|
border-bottom: 3px solid var(--color-orange-primary);
|
||||||
color: #1e3a5f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content h3 {
|
.post-content h3 {
|
||||||
font-size: 1.5rem;
|
color: var(--color-navy-light);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
color: #2c5282;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content h4 {
|
.post-content h4 {
|
||||||
@@ -38,37 +47,36 @@
|
|||||||
color: #495057;
|
color: #495057;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content p,
|
.post-content p {
|
||||||
.post-content li {
|
color: var(--color-neutral-600);
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
font-size: 1.1rem;
|
margin-bottom: 1.25rem;
|
||||||
color: #4a5568;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content ul,
|
.post-content ul,
|
||||||
.post-content ol {
|
.post-content ol {
|
||||||
padding-left: 2rem;
|
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
padding-left: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content li {
|
.post-content li {
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
color: var(--color-neutral-600);
|
||||||
|
|
||||||
.post-content a {
|
|
||||||
color: #0d6efd;
|
|
||||||
text-decoration: underline;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-content a:hover {
|
|
||||||
color: #0a58ca;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content strong {
|
.post-content strong {
|
||||||
font-weight: 700;
|
color: var(--color-navy-primary);
|
||||||
color: #212529;
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-content a {
|
||||||
|
color: var(--color-orange-primary);
|
||||||
|
text-decoration: underline;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-content a:hover {
|
||||||
|
color: var(--color-orange-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content blockquote {
|
.post-content blockquote {
|
||||||
@@ -102,8 +110,15 @@
|
|||||||
color: #212529;
|
color: #212529;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive */
|
/* ============================================
|
||||||
|
RESPONSIVE
|
||||||
|
============================================ */
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
@media (max-width: 767.98px) {
|
||||||
|
.post-content {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.post-content h2 {
|
.post-content h2 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ if (!defined('ABSPATH')) {
|
|||||||
/**
|
/**
|
||||||
* Theme Version
|
* Theme Version
|
||||||
*/
|
*/
|
||||||
define('APUS_VERSION', '1.0.11');
|
define('APUS_VERSION', '1.0.12');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Theme Setup
|
* Theme Setup
|
||||||
|
|||||||
Reference in New Issue
Block a user