Created
May 7, 2020 20:47
-
-
Save jackzerby/728032c19838b99d7b3d50c0fcc26afe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ---------------------------------------------------- | |
Desktop With Avatar | |
----------------------------------------------------- */ | |
iframe { height: 160px; } | |
#ctaMessageAgentAvatar { | |
width: 30px; | |
height: 30px; | |
border-radius: 30px; | |
display: block; | |
margin-right: 10px; | |
} | |
#ctaMessageAgent { | |
display: flex; | |
align-items: center; | |
color: #364650; | |
font-size: 12px; | |
padding: 15px 10px; | |
background: #FCFDFD; | |
border-bottom: 1px solid #F1F4F8; | |
width: 100%; | |
justify-content: center; | |
} | |
#ctaMessageAgentName { | |
font-weight: bold; | |
} | |
#ctaMessageAgentDetailsName { | |
line-height: 1; | |
font-weight: bold; | |
margin-bottom: 3px; | |
} | |
#ctaMessageAgentDetailsRole { | |
line-height: 1; | |
} | |
<div id="ctaMessage"> | |
<div id="ctaMessageAgent"> | |
<img id="ctaMessageAgentAvatar" src="https://pouch.jumpshare.com/preview/To694vwVSDl9jX5y51q56Ux2XnfV-Tt9BAUAWYsZruQn9uER6YtyeKjPwTVr0KMC4_gIjROwwDMslCW48jtjrBA1jQB_zmxltR5bgJ1-nls"> | |
<div id="ctaMessageAgentDetails"> | |
<div id="ctaMessageAgentDetailsName">Amy Smith</div> | |
<div id="ctaMessageAgentDetailsRole">Assigned Agent</div> | |
</div> | |
</div> | |
<div id="ctaMessageBody"> Do you have questions?<br> Call or text today, we are here to help! <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M11 10c-1 1-1 2-2 2s-2-1-3-2-2-2-2-3 1-1 2-2-2-4-3-4-3 3-3 3c0 2 2.055 6.055 4 8s6 4 8 4c0 0 3-2 3-3s-3-4-4-3z"></path> </svg> | |
<span id="ctaMessagePhone">855-888-9769</span> | |
</div> | |
<div id="ctaMessageClose"> | |
<svg preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M13.957 3.457l-1.414-1.414-4.543 4.543-4.543-4.543-1.414 1.414 4.543 4.543-4.543 4.543 1.414 1.414 4.543-4.543 4.543 4.543 1.414-1.414-4.543-4.543z"></path> </svg> | |
</div> | |
</div> | |
/* ---------------------------------------------------- | |
Desktop Without Avatar | |
----------------------------------------------------- */ | |
iframe { height: 157px; } | |
#ctaMessageAgentAvatar { | |
width: 30px; | |
height: 30px; | |
border-radius: 30px; | |
display: none; | |
margin-right: 10px; | |
} | |
#ctaMessageAgent { | |
display: flex; | |
align-items: center; | |
color: #364650; | |
font-size: 12px; | |
padding: 15px 10px; | |
background: #FCFDFD; | |
border-bottom: 1px solid #F1F4F8; | |
width: 100%; | |
justify-content: center; | |
text-align:center; | |
} | |
#ctaMessageAgentName { | |
font-weight: bold; | |
} | |
#ctaMessageAgentDetailsName { | |
line-height: 1; | |
font-weight: bold; | |
margin-bottom: 3px; | |
} | |
#ctaMessageAgentDetailsRole { | |
line-height: 1; | |
} | |
<div id="ctaMessage"> | |
<div id="ctaMessageAgent"> | |
<img id="ctaMessageAgentAvatar" src="https://pouch.jumpshare.com/preview/To694vwVSDl9jX5y51q56Ux2XnfV-Tt9BAUAWYsZruQn9uER6YtyeKjPwTVr0KMC4_gIjROwwDMslCW48jtjrBA1jQB_zmxltR5bgJ1-nls"> | |
<div id="ctaMessageAgentDetails"> | |
<div id="ctaMessageAgentDetailsName">Amy Smith</div> | |
<div id="ctaMessageAgentDetailsRole">Assigned Agent</div> | |
</div> | |
</div> | |
<div id="ctaMessageBody"> Do you have questions?<br> Call or text today, we are here to help! <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M11 10c-1 1-1 2-2 2s-2-1-3-2-2-2-2-3 1-1 2-2-2-4-3-4-3 3-3 3c0 2 2.055 6.055 4 8s6 4 8 4c0 0 3-2 3-3s-3-4-4-3z"></path> </svg> | |
<span id="ctaMessagePhone">855-888-9769</span> | |
</div> | |
<div id="ctaMessageClose"> | |
<svg preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M13.957 3.457l-1.414-1.414-4.543 4.543-4.543-4.543-1.414 1.414 4.543 4.543-4.543 4.543 1.414 1.414 4.543-4.543 4.543 4.543 1.414-1.414-4.543-4.543z"></path> </svg> | |
</div> | |
</div> | |
<div id="ctaMessageBodyMobileAgent"> | |
<img id="ctaMessageBodyMobileAgentAvatar" src="https://pouch.jumpshare.com/preview/To694vwVSDl9jX5y51q56Ux2XnfV-Tt9BAUAWYsZruQn9uER6YtyeKjPwTVr0KMC4_gIjROwwDMslCW48jtjrBA1jQB_zmxltR5bgJ1-nls"> | |
<div id="ctaMessageBodyMobileAgentDetails"> | |
<div id="ctaMessageBodyMobileAgentDetailsName">Amy Smith</div> | |
<div id="ctaMessageBodyMobileAgentDetailsRole">Assigned Agent</div> | |
</div> | |
</div> | |
/* ---------------------------------------------------- | |
Mobile With Avatar | |
----------------------------------------------------- */ | |
iframe[name="widgetCta"] { | |
width: 100%; | |
height: 70px; | |
overflow: hidden; | |
position: fixed; | |
bottom: 0px; | |
right: 0px; | |
z-index: 2147483647; | |
border: 0px none; | |
display: block; | |
border-radius: 0px; | |
background: transparent; | |
} | |
#ctaMessageBodyMobileAgentAvatar { | |
width: 30px; | |
height: 30px; | |
border-radius: 30px; | |
display: block; | |
margin-right: 5px; | |
} | |
#ctaMessageBodyMobileAgent { | |
font-size: 12px; | |
line-height: 1; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
width: 100%; | |
} | |
#ctaMessageBodyMobile a.phoneLinkSms { | |
margin-left: auto; | |
border-left: 1px solid #f1f4f8; | |
} | |
#ctaMessageBodyMobileAgentDetailsName { | |
font-weight: bold; | |
margin-bottom: 3px; | |
} | |
#ctaMessagee { | |
margin-top: 20px; | |
box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 20px 0px; | |
background: white; | |
} | |
#ctaMessageBodyMobile a.phoneLink { | |
border-right: 1px solid #f1f4f8; | |
} | |
<div id="ctaMessagee"> | |
<div id="ctaMessageBodyMobile"> | |
<a class="phoneLink" target="_parent" href="tel:855-888-9769"> <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="20" height="20" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M11 10c-1 1-1 2-2 2s-2-1-3-2-2-2-2-3 1-1 2-2-2-4-3-4-3 3-3 3c0 2 2.055 6.055 4 8s6 4 8 4c0 0 3-2 3-3s-3-4-4-3z"></path> </svg></a> | |
<div id="ctaMessageBodyMobileAgent"> | |
<img id="ctaMessageBodyMobileAgentAvatar" src="https://pouch.jumpshare.com/preview/To694vwVSDl9jX5y51q56Ux2XnfV-Tt9BAUAWYsZruQn9uER6YtyeKjPwTVr0KMC4_gIjROwwDMslCW48jtjrBA1jQB_zmxltR5bgJ1-nls"> | |
<div id="ctaMessageBodyMobileAgentDetails"> | |
<div id="ctaMessageBodyMobileAgentDetailsName">Amy Smith</div> | |
<div id="ctaMessageBodyMobileAgentDetailsRole">Assigned Agent</div> | |
</div> | |
</div> | |
<a class="phoneLinkSms" target="_parent" href="sms:855-888-9769"> <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="20" height="20" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M8 1c4.418 0 8 2.91 8 6.5s-3.582 6.5-8 6.5c-0.424 0-0.841-0.027-1.247-0.079-1.718 1.718-3.77 2.027-5.753 2.072v-0.421c1.071-0.525 2-1.48 2-2.572 0-0.152-0.012-0.302-0.034-0.448-1.809-1.192-2.966-3.012-2.966-5.052 0-3.59 3.582-6.5 8-6.5z"></path> </svg></a> | |
<div id="ctaMessageClose"> | |
<div id="largerTouchTarget"> <svg preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M13.957 3.457l-1.414-1.414-4.543 4.543-4.543-4.543-1.414 1.414 4.543 4.543-4.543 4.543 1.414 1.414 4.543-4.543 4.543 4.543 1.414-1.414-4.543-4.543z"></path> </svg> | |
</div> | |
</div> | |
</div> | |
</div> | |
/* ---------------------------------------------------- | |
Mobile Without Avatar | |
----------------------------------------------------- */ | |
iframe[name="widgetCta"] { | |
width: 100%; | |
height: 70px; | |
overflow: hidden; | |
position: fixed; | |
bottom: 0px; | |
right: 0px; | |
z-index: 2147483647; | |
border: 0px none; | |
display: block; | |
border-radius: 0px; | |
background: transparent; | |
} | |
#ctaMessageBodyMobileAgentAvatar { | |
width: 30px; | |
height: 30px; | |
border-radius: 30px; | |
display: none; | |
margin-right: 5px; | |
text-align:center; | |
} | |
#ctaMessageBodyMobileAgent { | |
font-size: 12px; | |
line-height: 1; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
width: 100%; | |
} | |
#ctaMessageBodyMobile a.phoneLinkSms { | |
margin-left: auto; | |
border-left: 1px solid #f1f4f8; | |
} | |
#ctaMessageBodyMobileAgentDetailsName { | |
font-weight: bold; | |
margin-bottom: 3px; | |
} | |
#ctaMessagee { | |
margin-top: 20px; | |
box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 20px 0px; | |
background: white; | |
} | |
#ctaMessageBodyMobile a.phoneLink { | |
border-right: 1px solid #f1f4f8; | |
} | |
<div id="ctaMessagee"> | |
<div id="ctaMessageBodyMobile"> | |
<a class="phoneLink" target="_parent" href="tel:855-888-9769"> <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="20" height="20" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M11 10c-1 1-1 2-2 2s-2-1-3-2-2-2-2-3 1-1 2-2-2-4-3-4-3 3-3 3c0 2 2.055 6.055 4 8s6 4 8 4c0 0 3-2 3-3s-3-4-4-3z"></path> </svg></a> | |
<div id="ctaMessageBodyMobileAgent"> | |
<img id="ctaMessageBodyMobileAgentAvatar" src="https://pouch.jumpshare.com/preview/To694vwVSDl9jX5y51q56Ux2XnfV-Tt9BAUAWYsZruQn9uER6YtyeKjPwTVr0KMC4_gIjROwwDMslCW48jtjrBA1jQB_zmxltR5bgJ1-nls"> | |
<div id="ctaMessageBodyMobileAgentDetails"> | |
<div id="ctaMessageBodyMobileAgentDetailsName">Amy Smith</div> | |
<div id="ctaMessageBodyMobileAgentDetailsRole">Assigned Agent</div> | |
</div> | |
</div> | |
<a class="phoneLinkSms" target="_parent" href="sms:855-888-9769"> <svg class="ctaMessageIcon" preserveAspectRatio="xMidYMid" width="20" height="20" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M8 1c4.418 0 8 2.91 8 6.5s-3.582 6.5-8 6.5c-0.424 0-0.841-0.027-1.247-0.079-1.718 1.718-3.77 2.027-5.753 2.072v-0.421c1.071-0.525 2-1.48 2-2.572 0-0.152-0.012-0.302-0.034-0.448-1.809-1.192-2.966-3.012-2.966-5.052 0-3.59 3.582-6.5 8-6.5z"></path> </svg></a> | |
<div id="ctaMessageClose"> | |
<div id="largerTouchTarget"> <svg preserveAspectRatio="xMidYMid" width="14" height="14" viewBox="0 0 16 16"> <path fillrule="evenodd" fill="currentColor" d="M13.957 3.457l-1.414-1.414-4.543 4.543-4.543-4.543-1.414 1.414 4.543 4.543-4.543 4.543 1.414 1.414 4.543-4.543 4.543 4.543 1.414-1.414-4.543-4.543z"></path> </svg> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment