make copeme popup on center of element
This commit is contained in:
parent
b0b52e5388
commit
88f014eb51
|
@ -1,22 +1,23 @@
|
||||||
section.copyme-containter {
|
section.copyme-containter {
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.copypopup {
|
span.copypopup {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: var(--success);
|
background-color: var(--success);
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
right: -20px;
|
transform: rotate(12deg);
|
||||||
top: -5px;
|
opacity: 0;
|
||||||
transform: rotate(12deg);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
section.copyme-containter span.success {
|
section.copyme-containter span.success {
|
||||||
animation: fade-in 2s forwards;
|
animation: fade-in 2s forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fade-in {
|
@keyframes fade-in {
|
||||||
|
|
Loading…
Reference in New Issue