Added logic to hint at the exit label in elmah
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
}
|
||||
|
||||
/* expand on hover */
|
||||
.elmah-return-btn.show-label::before,
|
||||
.elmah-return-btn:hover::before {
|
||||
max-width: 220px;
|
||||
padding: 0.5rem;
|
||||
@@ -48,6 +49,7 @@
|
||||
}
|
||||
|
||||
/* hover colors */
|
||||
.elmah-return-btn.show-label,
|
||||
.elmah-return-btn:hover {
|
||||
background: #0b5ed7;
|
||||
color: white;
|
||||
|
||||
@@ -7,4 +7,11 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
btn.className = "elmah-return-btn";
|
||||
|
||||
document.body.appendChild(btn);
|
||||
|
||||
const showLabelBriefly = () => {
|
||||
btn.classList.add("show-label");
|
||||
setTimeout(() => btn.classList.remove("show-label"), 2000);
|
||||
};
|
||||
|
||||
setTimeout(showLabelBriefly, 1000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user