copy to clipboard

This commit is contained in:
home
2020-06-09 22:28:19 +02:00
parent 6c84a89889
commit 99796b95e3
3 changed files with 68 additions and 1 deletions

35
copy-to-clipboard.css Normal file
View File

@@ -0,0 +1,35 @@
.copy-to-clipboard {
position: relative;
display: inline-block;
}
.copy-to-clipboard .tooltiptext {
visibility: hidden;
width: 140px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 150%;
left: 50%;
margin-left: -75px;
}
.copy-to-clipboard .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.copy-to-clipboard:hover .tooltiptext {
visibility: visible;
opacity: 1;
}