Skip to content

Commit

Permalink
Merge pull request #110 from enflujo/correccion-indice
Browse files Browse the repository at this point in the history
🐛 Corregir error en índice
  • Loading branch information
1cgonza authored Sep 21, 2023
2 parents 9e9a9e7 + dde6c3a commit 38b1ec3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions src/componentes/Indice.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ const elementosAbreviados = ['intro', 'I.', 'II.', 'III.', 'IV.', 'conclusion'];
elementos.map((elemento, i) => {
if (i === 0) {
return (
<li class="enlaceIndice">
<a href={`#${elemento.enlace}`}>
<li>
<a class="enlaceIndice" href={`#${elemento.enlace}`}>
<img class="icono" src="/especiales/vacs/iconos/flor_1.svg" />{' '}
<span class="nombre">{elemento.nombre}</span>
</a>
</li>
);
} else if (i === elementos.length - 1) {
return (
<li class="enlaceIndice">
<a href={`#${elemento.enlace}`}>
<li>
<a class="enlaceIndice" href={`#${elemento.enlace}`}>
<img class="icono" src="/especiales/vacs/iconos/flor_2.svg" />{' '}
<span class="nombre">{elemento.nombre}</span>
</a>
</li>
);
} else {
return (
<a href={`#${elemento.enlace}`}>
<li class="enlaceIndice">
<li>
<a class="enlaceIndice" href={`#${elemento.enlace}`}>
{elementosAbreviados[i]} <span class="nombre">{elemento.nombre}</span>
</li>
</a>
</a>
</li>
);
}
})
Expand Down Expand Up @@ -73,7 +73,7 @@ const elementosAbreviados = ['intro', 'I.', 'II.', 'III.', 'IV.', 'conclusion'];
}
li {
margin-bottom: 1.2em;
max-width: 145px;
max-width: 10vw;
}
}

Expand All @@ -82,6 +82,7 @@ const elementosAbreviados = ['intro', 'I.', 'II.', 'III.', 'IV.', 'conclusion'];

.icono {
height: 0.8em;

-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(1) brightness(0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/estilosGlobales.scss
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ main {
}

.anchoTitulo {
max-width: 90vw;
max-width: 70vw;
margin: 0 auto;
}
.destacado {
Expand Down

0 comments on commit 38b1ec3

Please sign in to comment.