| 1 |
.king-addons-phone-call { |
| 2 |
width: 100%; |
| 3 |
display: flex; |
| 4 |
} |
| 5 |
|
| 6 |
.king-addons-phone-call.align-left { |
| 7 |
justify-content: flex-start; |
| 8 |
} |
| 9 |
|
| 10 |
.king-addons-phone-call.align-center { |
| 11 |
justify-content: center; |
| 12 |
} |
| 13 |
|
| 14 |
.king-addons-phone-call.align-right { |
| 15 |
justify-content: flex-end; |
| 16 |
} |
| 17 |
|
| 18 |
.king-addons-phone-call__button { |
| 19 |
display: inline-flex; |
| 20 |
align-items: center; |
| 21 |
gap: 8px; |
| 22 |
padding: 12px 16px; |
| 23 |
background: #111827; |
| 24 |
color: #ffffff; |
| 25 |
border-radius: 10px; |
| 26 |
border: 1px solid #111827; |
| 27 |
text-decoration: none; |
| 28 |
font-weight: 700; |
| 29 |
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; |
| 30 |
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); |
| 31 |
position: relative; |
| 32 |
--kng-phone-effect-color: currentColor; |
| 33 |
--kng-phone-effect-color-hover: var(--kng-phone-effect-color, currentColor); |
| 34 |
--kng-phone-effect-thickness: 2px; |
| 35 |
--kng-phone-effect-inset: -10px; |
| 36 |
--kng-phone-effect-duration: 1.6s; |
| 37 |
--kng-phone-effect-opacity: 0.35; |
| 38 |
--kng-phone-effect-scale-start: 0.9; |
| 39 |
--kng-phone-effect-scale-end: 1.35; |
| 40 |
--kng-phone-hover-scale: 1; |
| 41 |
} |
| 42 |
|
| 43 |
.king-addons-phone-call__button.is-icon-right { |
| 44 |
flex-direction: row-reverse; |
| 45 |
} |
| 46 |
|
| 47 |
.king-addons-phone-call__button:hover { |
| 48 |
background-color: #0b1220; |
| 49 |
border-color: #0b1220; |
| 50 |
transform: scale(var(--kng-phone-hover-scale, 1)); |
| 51 |
} |
| 52 |
|
| 53 |
.king-addons-phone-call__icon { |
| 54 |
display: inline-flex; |
| 55 |
align-items: center; |
| 56 |
justify-content: center; |
| 57 |
font-size: 18px; |
| 58 |
} |
| 59 |
|
| 60 |
.king-addons-phone-call__icon i, |
| 61 |
.king-addons-phone-call__icon svg { |
| 62 |
display: block; |
| 63 |
width: 1em; |
| 64 |
height: 1em; |
| 65 |
} |
| 66 |
|
| 67 |
.king-addons-phone-call__icon svg { |
| 68 |
fill: currentColor; |
| 69 |
} |
| 70 |
|
| 71 |
.king-addons-phone-call__text { |
| 72 |
display: inline-flex; |
| 73 |
align-items: center; |
| 74 |
} |
| 75 |
|
| 76 |
/* Pro: floating + animations */ |
| 77 |
.king-addons-phone-call__button.is-floating { |
| 78 |
position: fixed; |
| 79 |
inset: auto 16px 20px auto; |
| 80 |
z-index: 9999; |
| 81 |
} |
| 82 |
|
| 83 |
.king-addons-phone-call__button.is-floating.is-left { |
| 84 |
inset: auto auto 20px 16px; |
| 85 |
} |
| 86 |
|
| 87 |
.king-addons-phone-call__button.is-anim-pulse { |
| 88 |
/* Pulse is implemented via ::before so it can use effect color. */ |
| 89 |
} |
| 90 |
|
| 91 |
.king-addons-phone-call__button.is-anim-bounce { |
| 92 |
animation: king-addons-phone-call-bounce 1.4s ease-in-out infinite; |
| 93 |
} |
| 94 |
|
| 95 |
.king-addons-phone-call__button.is-anim-pulse::before, |
| 96 |
.king-addons-phone-call__button.is-anim-waves::before, |
| 97 |
.king-addons-phone-call__button.is-anim-waves::after, |
| 98 |
.king-addons-phone-call__button.is-anim-ring::before { |
| 99 |
content: ''; |
| 100 |
position: absolute; |
| 101 |
inset: var(--kng-phone-effect-inset, -10px); |
| 102 |
border-radius: inherit; |
| 103 |
pointer-events: none; |
| 104 |
opacity: 0; |
| 105 |
} |
| 106 |
|
| 107 |
.king-addons-phone-call__button.is-anim-pulse::before { |
| 108 |
border: var(--kng-phone-effect-thickness, 2px) solid var(--kng-phone-effect-color, currentColor); |
| 109 |
animation: king-addons-phone-call-pulse-outline var(--kng-phone-effect-duration, 1.6s) ease-out infinite; |
| 110 |
} |
| 111 |
|
| 112 |
.king-addons-phone-call__button:hover.is-anim-pulse::before { |
| 113 |
border-color: var(--kng-phone-effect-color-hover, var(--kng-phone-effect-color, currentColor)); |
| 114 |
} |
| 115 |
|
| 116 |
.king-addons-phone-call__button.is-anim-waves::before, |
| 117 |
.king-addons-phone-call__button.is-anim-waves::after { |
| 118 |
border: var(--kng-phone-effect-thickness, 2px) solid var(--kng-phone-effect-color, currentColor); |
| 119 |
animation: king-addons-phone-call-waves var(--kng-phone-effect-duration, 1.8s) ease-out infinite; |
| 120 |
} |
| 121 |
|
| 122 |
.king-addons-phone-call__button:hover.is-anim-waves::before, |
| 123 |
.king-addons-phone-call__button:hover.is-anim-waves::after { |
| 124 |
border-color: var(--kng-phone-effect-color-hover, var(--kng-phone-effect-color, currentColor)); |
| 125 |
} |
| 126 |
|
| 127 |
.king-addons-phone-call__button.is-anim-waves::after { |
| 128 |
animation-delay: calc(var(--kng-phone-effect-duration, 1.8s) / 2); |
| 129 |
} |
| 130 |
|
| 131 |
.king-addons-phone-call__button.is-anim-ring::before { |
| 132 |
border: var(--kng-phone-effect-thickness, 2px) solid var(--kng-phone-effect-color, currentColor); |
| 133 |
animation: king-addons-phone-call-ring var(--kng-phone-effect-duration, 0.9s) ease-in-out infinite; |
| 134 |
opacity: var(--kng-phone-effect-opacity, 0.35); |
| 135 |
} |
| 136 |
|
| 137 |
.king-addons-phone-call__button:hover.is-anim-ring::before { |
| 138 |
border-color: var(--kng-phone-effect-color-hover, var(--kng-phone-effect-color, currentColor)); |
| 139 |
} |
| 140 |
|
| 141 |
@keyframes king-addons-phone-call-pulse-outline { |
| 142 |
0% { |
| 143 |
transform: scale(var(--kng-phone-effect-scale-start, 0.9)); |
| 144 |
opacity: var(--kng-phone-effect-opacity, 0.35); |
| 145 |
} |
| 146 |
100% { |
| 147 |
transform: scale(var(--kng-phone-effect-scale-end, 1.35)); |
| 148 |
opacity: 0; |
| 149 |
} |
| 150 |
} |
| 151 |
|
| 152 |
@keyframes king-addons-phone-call-bounce { |
| 153 |
0%, 100% { transform: translateY(0); } |
| 154 |
50% { transform: translateY(-4px); } |
| 155 |
} |
| 156 |
|
| 157 |
@keyframes king-addons-phone-call-waves { |
| 158 |
0% { |
| 159 |
transform: scale(var(--kng-phone-effect-scale-start, 0.9)); |
| 160 |
opacity: var(--kng-phone-effect-opacity, 0.35); |
| 161 |
} |
| 162 |
100% { |
| 163 |
transform: scale(var(--kng-phone-effect-scale-end, 1.35)); |
| 164 |
opacity: 0; |
| 165 |
} |
| 166 |
} |
| 167 |
|
| 168 |
@keyframes king-addons-phone-call-ring { |
| 169 |
0%, 100% { transform: rotate(0deg); } |
| 170 |
20% { transform: rotate(-4deg); } |
| 171 |
40% { transform: rotate(4deg); } |
| 172 |
60% { transform: rotate(-4deg); } |
| 173 |
80% { transform: rotate(4deg); } |
| 174 |
} |
| 175 |
|
| 176 |
@media (max-width: 768px) { |
| 177 |
.king-addons-phone-call__button { |
| 178 |
width: auto; |
| 179 |
} |
| 180 |
} |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|