Skip to content

Commit

Permalink
Add tooltip to sign add to all pages feature (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
reecebrowne authored Nov 25, 2024
1 parent 5936e85 commit da46d94
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/messages_en_GB.properties
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ sign.save=Save Signature
sign.personalSigs=Personal Signatures
sign.sharedSigs=Shared Signatures
sign.noSavedSigs=No saved signatures found

sign.addToAll=Add to all pages

#repair
repair.title=Repair
Expand Down
27 changes: 27 additions & 0 deletions src/main/resources/static/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,30 @@ input:-webkit-autofill:focus {
input[data-autocompleted] {
background-color: transparent !important;
}
.btn-tooltip {
position: absolute;
display: none;
bottom: 3.2rem;
white-space: nowrap;
flex-wrap: nowrap;
width: fit-content;
padding: 7px;
background-color: rgba(0, 29, 41, 0.9);
border-radius: 3px;
font-size: 12px;
color: whitesmoke;
animation: fadeup 0.15s linear;
}
@keyframes fadeup {
0% {
transform: translateY(10px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.btn:hover .btn-tooltip {
display: block;
}
32 changes: 2 additions & 30 deletions src/main/resources/static/css/multi-tool.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,34 +286,6 @@ label {
.checkbox-label {
font-size: medium;
}

.btn-tooltip {
position: absolute;
display: none;
bottom: 3.2rem;
white-space: nowrap;
flex-wrap: nowrap;
width: fit-content;
padding: 7px;
background-color: rgba(0, 29, 41, 0.9);
border-radius: 3px;
font-size: 12px;
color: whitesmoke;
animation: fadeup 0.15s linear;
}
.btn {
position: relative; /* Ensure the button is the positioning context for its children */
}
@keyframes fadeup {
0% {
transform: translateY(10px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.btn:hover .btn-tooltip {
display: block;
}
position: relative;
}
1 change: 1 addition & 0 deletions src/main/resources/templates/sign.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ <h5 th:text="#{sign.sharedSigs}"></h5>
<span class="material-symbols-rounded">
content_copy
</span>
<span class="btn-tooltip" th:text="#{sign.addToAll}"></span>
</button>
<button class="btn btn-outline-secondary" onclick="goToFirstOrLastPage(false)" style="margin-left:auto">
<span class="material-symbols-rounded">
Expand Down

0 comments on commit da46d94

Please sign in to comment.