Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master css : Registres / tooltip icone #21

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading