payhere-embed-sdk
Version:
payhere.co embed widget
97 lines (93 loc) • 2.1 kB
CSS
.payhere-embed-button {
display: inline-block;
background: url('https://payhere-production-2.s3-eu-west-1.amazonaws.com/make-a-payment.svg') center center no-repeat;
background-size: contain;
width: 198px;
height: 50px;
text-indent: -9999px;
overflow: hidden;
}
.embed-module_embedContainer__2q9Md {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.7);
z-index: 9999998;
display: flex;
justify-content: space-around;
align-items: stretch;
backdrop-filter: blur(8px);
}
.embed-module_embedModal__3rP2H {
display: inline-block;
pointer-events: all;
background: white;
border-radius: 8px;
z-index: 9999999;
display: flex;
margin: 15px;
max-width: 400px;
width: 100%;
transform: scale(0);
transition: transform .3s ease;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.embed-module_embedIframe__30Rog {
border: none;
width: 100%;
margin: 0;
height: 100%;
}
.embed-module_ldsRing__14Ml- {
display: inline-block;
position: absolute;
left: calc(50% - 32px);
top: calc(50% - 32px);
width: 64px;
height: 64px;
}
.embed-module_ldsRing__14Ml- div {
box-sizing: border-box;
display: block;
position: absolute;
width: 51px;
height: 51px;
margin: 6px;
border: 6px solid white;
border-radius: 50%;
animation: embed-module_lds-ring__2UST5 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: white transparent transparent transparent;
}
.embed-module_ldsRing__14Ml- div:nth-child(1) {
animation-delay: -0.45s;
}
.embed-module_ldsRing__14Ml- div:nth-child(2) {
animation-delay: -0.3s;
}
.embed-module_ldsRing__14Ml- div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes embed-module_lds-ring__2UST5 {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media screen and (min-height: 500px) {
.embed-module_embedModal__3rP2H {
margin: 30px 15px;
}
}
@media screen and (min-height: 700px) {
.embed-module_embedContainer__2q9Md {
align-items: center;
}
.embed-module_embedModal__3rP2H {
height: 640px;
}
}