From 795c7a0eb1ee938a07376ee587300b573b39a611 Mon Sep 17 00:00:00 2001 From: adevopg Date: Mon, 13 Jul 2026 13:29:10 +0000 Subject: [PATCH] =?UTF-8?q?web-next:=20fix=20paginaci=C3=B3n=20azul=20en?= =?UTF-8?q?=20enlaces=20visitados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El tema tiene `a:visited{color:#2471a9}` (espec. 0,1,1) que ganaba a `.nw-page-link` (0,1,0) → Anterior/Siguiente y los números visitados salían azules. Se añaden selectores `.nw-page-link:link/:visited/:hover` y `.nw-page-current:link/:visited` (espec. 0,2,0) para ganar y mantener el estilo del tema (crema + actual en dorado). Co-Authored-By: Claude Opus 4.8 (1M context) --- web-next/app/globals.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/web-next/app/globals.css b/web-next/app/globals.css index 3e856a2..0e9ee56 100644 --- a/web-next/app/globals.css +++ b/web-next/app/globals.css @@ -101,7 +101,9 @@ textarea:focus { background: hsla(0, 0%, 100%, 0.1); color: #fff; } -/* Paginación con el estilo de los botones del tema (borde + fondo tenue + hover). */ +/* Paginación con el estilo de los botones del tema (borde + fondo tenue + hover). + Los selectores :link/:visited elevan la especificidad para ganar a las reglas + `a`/`a:visited` del tema (que si no dejan los enlaces visitados en azul). */ .nw-page-link { display: inline-block; min-width: 42px; @@ -109,15 +111,20 @@ textarea:focus { margin: 0 3px; border: 2px solid #352e2b; background: hsla(0, 0%, 100%, 0.05); - color: #ebdec2; text-align: center; transition: 0.3s; } +.nw-page-link:link, +.nw-page-link:visited { + color: #ebdec2; +} .nw-page-link:hover { background: hsla(0, 0%, 100%, 0.1); color: #fff; } -.nw-page-current { +.nw-page-current, +.nw-page-current:link, +.nw-page-current:visited { border-color: #b17c02; color: #d79602; background: hsla(40, 90%, 45%, 0.12);