Skip to content

Commit

Permalink
Merge branch 'denischiron-master-css' into dev
Browse files Browse the repository at this point in the history
Integration MAJ Registres / tooltip icone (Denis)
  • Loading branch information
Lucaterre committed Apr 15, 2024
2 parents c320efc + dbaa6be commit 3995fd5
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/components/RegisterCardNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div>
<div>Première page</div>
<div v-if="facSimile">
<span class="icon book-icon-card" title="Pages du fac-similé"><i class="fas fa-book"></i></span>
<span class="icon book-icon-card" aria-description="Pages du fac-similé"><i class="fas fa-book"></i></span>
<router-link :to="`/facsimile/${volume}/${firstCanvasID}`" @click="navigateToFacSimile(firstCanvasID, volume, yearFirstPage)">{{ firstPage }}</router-link>
</div>
<!--<div v-if="isEdited">
Expand Down Expand Up @@ -166,6 +166,37 @@ export default {
color: #000000;
}
.book-icon-card i {
position: relative;
}
.book-icon-card i::after {
content: "Pages du fac-similé";
position: absolute;
bottom: -40px;
left: 0;
z-index: 2;
display: inline-block;
padding: 3px 7px 8px;
background-color: #000000;
font-family: var(--font-secondary) !important;
font-weight: normal;
font-size: 16px;
color: #FFFFFF;
white-space: nowrap;
opacity: 0;
transform: translateY(10px);
transition: all ease-in-out 0.35s;
}
.book-icon-card i:hover::after {
opacity: 1;
transform: translateY(0);
}
.book-icon-card i:hover {
color: var(--light-brown-alt);
}
Expand Down Expand Up @@ -289,7 +320,7 @@ hr,
.card-content {
max-height: 0;
padding: 0;
overflow: hidden;
/* overflow: hidden; */
transition: max-height 0.5s ease-out; /* La transition se fera sur la hauteur max */
}
Expand Down

0 comments on commit 3995fd5

Please sign in to comment.