Fix share buttons: Seguir documentación CSS-ESPECIFICO.md

PROBLEMA:
- social-share.css se estaba cargando con CSS adicional no documentado
- custom-style.css tenía reglas duplicadas
- Múltiples archivos CSS causaban conflictos

SOLUCIÓN:
- Deshabilitado enqueue de social-share.css en enqueue-scripts.php
- Eliminado CSS duplicado de custom-style.css
- Mantener SOLO las 2 reglas en style.css según documentación

Archivos modificados:
- inc/enqueue-scripts.php (deshabilitado líneas 398-416)
- assets/css/custom-style.css (eliminado líneas 659-666)

Según: theme-documentation/13-componente-share-buttons/CSS-ESPECIFICO.md
Solo debe haber 2 reglas CSS + Bootstrap outline classes

Fixes #124

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-07 11:50:45 -06:00
parent 485c10d635
commit 58f12fd4e6
3 changed files with 18 additions and 10 deletions

View File

@@ -2,7 +2,16 @@
"permissions": {
"allow": [
"Bash(\"/c/Program Files/GitHub CLI/gh.exe\" issue close:*)",
"Bash(git -C \"D:\\_Desarrollo\\02AnalisisDePreciosUnitarios\\analisisdepreciosunitarios.com\" diff --stat)"
"Bash(git -C \"D:\\_Desarrollo\\02AnalisisDePreciosUnitarios\\analisisdepreciosunitarios.com\" diff --stat)",
"Bash(ssh VPSContabo:*)",
"mcp__github__add_issue_comment",
"mcp__github__issue_write",
"mcp__github__list_issues",
"mcp__github__get_me",
"mcp__github__search_repositories",
"WebFetch(domain:stag.analisisdepreciosunitarios.com)",
"Bash(curl:*)",
"Bash(grep:*)"
],
"deny": [],
"ask": []

View File

@@ -654,17 +654,11 @@ body {
/* ========================================
SHARE BUTTONS
========================================
ELIMINADO: CSS movido a style.css según documentación
Ver: theme-documentation/13-componente-share-buttons/CSS-ESPECIFICO.md
======================================== */
.share-buttons .btn {
transition: all 0.3s ease;
border-width: 2px;
}
.share-buttons .btn:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* ========================================
VIDEO IFRAME STYLING
======================================== */

View File

@@ -391,7 +391,11 @@ add_action('wp_enqueue_scripts', 'apus_enqueue_theme_styles', 13);
/**
* Enqueue social share styles
*
* DESHABILITADO: CSS de share buttons debe estar SOLO en style.css
* Ver documentación: theme-documentation/13-componente-share-buttons/CSS-ESPECIFICO.md
*/
/*
function apus_enqueue_social_share_styles() {
// Only enqueue on single posts
if (!is_single()) {
@@ -409,6 +413,7 @@ function apus_enqueue_social_share_styles() {
}
add_action('wp_enqueue_scripts', 'apus_enqueue_social_share_styles', 14);
*/
/**
* Enqueue APU Tables styles