Skip to content

Commit 58da268

Browse files
committed
ajustes de visualización
1 parent 958a566 commit 58da268

5 files changed

Lines changed: 68 additions & 13 deletions

File tree

data/constel-db.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 1,
3-
"updatedAt": "2026-03-24T08:24:24.880Z",
3+
"updatedAt": "2026-03-24T09:39:04.032Z",
44
"sessionId": "",
55
"sources": {
66
"src_mn1lgx417b21": {
@@ -7103,6 +7103,28 @@
71037103
"con_mn1oeclkynn7"
71047104
],
71057105
"createdAt": "2026-03-23T05:32:13.285Z"
7106+
},
7107+
"exc_mn4ewhxn2fhf": {
7108+
"id": "exc_mn4ewhxn2fhf",
7109+
"sourceId": "src_mn1lgx417b21",
7110+
"text": "aquí\n hoy\n universo",
7111+
"start": 31528,
7112+
"end": 31549,
7113+
"conceptIds": [
7114+
"con_new_actopoet1"
7115+
],
7116+
"createdAt": "2026-03-24T09:28:19.403Z"
7117+
},
7118+
"exc_mn4exavb57x2": {
7119+
"id": "exc_mn4exavb57x2",
7120+
"sourceId": "src_mn1lgx417b21",
7121+
"text": "la poesía el acto poético matrimonio de la mar con el dogo la poesía semejante a aquellos franciscanos joaquinitas que partieron a bautizar a todos los hombres para que el mundo y su historia tuvieran acabamiento para apresurar así el fin del mundo la poesía como acto parte a celebrar las bodas del lugar y de la fórmula",
7122+
"start": 33018,
7123+
"end": 33359,
7124+
"conceptIds": [
7125+
"con_new_actopoet1"
7126+
],
7127+
"createdAt": "2026-03-24T09:28:56.903Z"
71067128
}
71077129
},
71087130
"concepts": {
@@ -7355,7 +7377,7 @@
73557377
"con_intro_proeza01": {
73567378
"id": "con_intro_proeza01",
73577379
"label": "la proeza",
7358-
"themeId": "thm_mn2eh17kwbm8",
7380+
"themeId": "thm_mn2ekumrwz9z",
73597381
"createdAt": "2026-03-23T12:00:00.000Z"
73607382
},
73617383
"con_intro_vigilia1": {
@@ -7445,7 +7467,7 @@
74457467
"con_new_gratuidad": {
74467468
"id": "con_new_gratuidad",
74477469
"label": "gratuidad",
7448-
"themeId": null,
7470+
"themeId": "thm_mn2eh17kwbm8",
74497471
"createdAt": "2026-03-23T12:00:00.000Z"
74507472
},
74517473
"con_mn2e40yygss4": {
@@ -7764,6 +7786,6 @@
77647786
}
77657787
},
77667788
"ui": {
7767-
"selectedConceptId": null
7789+
"selectedConceptId": "con_new_gratuidad"
77687790
}
77697791
}

public/css/layout.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,18 @@ body {
174174
transition: opacity 0.15s;
175175
}
176176

177+
[data-theme="dark"] .marks-toggle {
178+
color: var(--ink);
179+
}
180+
177181
.marks-toggle:hover {
178182
opacity: 1;
179183
}
180184

185+
.marks-toggle .eye-glint {
186+
fill: var(--bg);
187+
}
188+
181189
/* ── SVG icon inside buttons ─────────────────────────────────────────── */
182190
.btn-svg-icon {
183191
width: 14px;

public/icons/icons_eye-open.svg

Lines changed: 6 additions & 7 deletions
Loading

public/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ <h1 class="logo">con<span class="section-sign">§</span>tel <span class="version
5454
<span class="tab-source-title" id="tabSourceTitle">
5555
<span id="readerTitle"></span>
5656
<button class="btn-icon marks-toggle" id="marksToggle" title="Mostrar/ocultar marcas">
57-
<img src="icons/icons_eye-open.svg" id="marksToggleIcon" alt="marcas" width="18" height="18">
57+
<svg id="marksToggleIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="18" height="18" fill="currentColor">
58+
<path d="M17.7,13.5c0,2-1.6,3.7-3.7,3.7s-3.7-1.6-3.7-3.7,1.6-3.7,3.7-3.7,3.7,1.6,3.7,3.7"/>
59+
<path d="M14,10.9c3.9,0,7.6,1.2,10.7,3.2-2.2-3.6-6.1-6.1-10.7-6.1s-8.5,2.4-10.7,6.1c3.1-2,6.7-3.2,10.7-3.2"/>
60+
<path d="M21,17.8c-2.2.8-4.5,1.3-7,1.3s-4.8-.5-7-1.3c2,1.4,4.4,2.3,7,2.3s5-.8,7-2.3"/>
61+
<path class="eye-glint" d="M16.7,12.3c0,.8-.7,1.5-1.5,1.5s-1.5-.7-1.5-1.5.7-1.5,1.5-1.5,1.5.7,1.5,1.5"/>
62+
</svg>
5863
</button>
5964
</span>
6065
</nav>

public/js/tabs/reader.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,35 @@ function showToast(message) {
509509
toast.addEventListener("animationend", () => toast.remove());
510510
}
511511

512+
const SVG_NS = "http://www.w3.org/2000/svg";
513+
const EYE_OPEN_PATHS = [
514+
{ d: "M17.7,13.5c0,2-1.6,3.7-3.7,3.7s-3.7-1.6-3.7-3.7,1.6-3.7,3.7-3.7,3.7,1.6,3.7,3.7" },
515+
{ d: "M14,10.9c3.9,0,7.6,1.2,10.7,3.2-2.2-3.6-6.1-6.1-10.7-6.1s-8.5,2.4-10.7,6.1c3.1-2,6.7-3.2,10.7-3.2" },
516+
{ d: "M21,17.8c-2.2.8-4.5,1.3-7,1.3s-4.8-.5-7-1.3c2,1.4,4.4,2.3,7,2.3s5-.8,7-2.3" },
517+
{ d: "M16.7,12.3c0,.8-.7,1.5-1.5,1.5s-1.5-.7-1.5-1.5.7-1.5,1.5-1.5,1.5.7,1.5,1.5", cls: "eye-glint" },
518+
];
519+
const EYE_CLOSE_PATHS = [
520+
{ d: "M14,17c3.9,0,7.6-1.2,10.7-3.2-2.2,3.6-6.1,6.1-10.7,6.1s-8.5-2.4-10.7-6.1c3.1,2,6.7,3.2,10.7,3.2" },
521+
];
522+
523+
function setSvgPaths(svg, paths) {
524+
while (svg.firstChild) svg.removeChild(svg.firstChild);
525+
for (const p of paths) {
526+
const el = document.createElementNS(SVG_NS, "path");
527+
el.setAttribute("d", p.d);
528+
if (p.cls) el.setAttribute("class", p.cls);
529+
svg.appendChild(el);
530+
}
531+
}
532+
512533
function initMarksToggle() {
513534
const btn = document.getElementById("marksToggle");
514535
const icon = document.getElementById("marksToggleIcon");
515536
if (!btn || !icon) return;
516537

517538
btn.addEventListener("click", () => {
518539
marksVisible = !marksVisible;
519-
icon.src = marksVisible ? "icons/icons_eye-open.svg" : "icons/icons_eye-close.svg";
540+
setSvgPaths(icon, marksVisible ? EYE_OPEN_PATHS : EYE_CLOSE_PATHS);
520541
const readerContent = document.getElementById("readerTextContent");
521542
if (readerContent) {
522543
readerContent.classList.toggle("marks-hidden", !marksVisible);

0 commit comments

Comments
 (0)