Created
July 31, 2020 17:37
-
-
Save ericakfranz/24b6e30f38a7441f48c85a197d33f06a to your computer and use it in GitHub Desktop.
Floating MonsterLink example 1 CSS
This file contains hidden or 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
/* --- Floating MonsterLink Style 1 CSS --- | |
------------------------------------------ */ | |
.floating-monsterlink.style1.show { | |
right: 30px; | |
} | |
.floating-monsterlink.style1 { | |
margin: 0; | |
width: auto; | |
border-radius: 10px; | |
display: inline-block; | |
position: absolute; | |
bottom: 30px; | |
right: -350px; | |
width: 160px; | |
padding: 10px 10px 10px 60px; | |
background-color: #eaeaea; | |
border: 5px solid #165c92; | |
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); | |
-moz-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); | |
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); | |
-webkit-transition: right 3000ms ease-in-out; | |
-moz-transition: right 3000ms ease-in-out; | |
-o-transition: right 3000ms ease-in-out; | |
transition: right 3000ms ease-in-out; | |
} | |
.floating-monsterlink.style1 .floating-avatar { | |
top: -20px; | |
margin: 0; | |
padding: 0; | |
display: block; | |
overflow: hidden; | |
width: 120px; | |
height: 120px; | |
position: absolute; | |
margin-left: -150px; | |
border-radius: 999em; | |
border: 8px solid #165c92; | |
background-color: #165c92; | |
-webkit-box-shadow: -2px 2px 15px 0 rgba(0, 0, 0, 0.4); | |
-moz-box-shadow: -2px 2px 15px 0 rgba(0, 0, 0, 0.4); | |
box-shadow: -2px 2px 15px 0 rgba(0, 0, 0, 0.4); | |
} | |
.floating-monsterlink.style1 .floating-avatar span { | |
width: 106px; | |
height: 106px; | |
display: block; | |
overflow: hidden; | |
border-radius: 999em; | |
background-size: cover; | |
background-color: #eaeaea; | |
border: 15px solid #eaeaea; | |
margin: -8px auto auto -8px; | |
background-image: url('https://optinmonster.com/wp-content/uploads/2015/09/erica-avatar-200x200.jpg'); | |
} | |
.floating-monsterlink.style1 .floating-cta { | |
padding: 0; | |
font-size: 13px; | |
text-align: left; | |
line-height: 1.5em; | |
margin: 0 auto 15px; | |
font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; | |
} | |
.floating-monsterlink.style1 p.floating-cta:last-of-type { | |
margin: 0 auto; | |
} | |
.floating-monsterlink.style1 a.manual-optin-trigger { | |
color: #043f6c; | |
text-decoration: underline; | |
} | |
.floating-monsterlink.style1 a.float-close { | |
top: -15px; | |
right: -15px; | |
color: #fff; | |
height: 24px; | |
width: 24px; | |
font-weight: 300; | |
line-height: 23px; | |
text-align: center; | |
position: absolute; | |
border-radius: 999em; | |
text-decoration: none; | |
background-color: #444; | |
font-family: sans-serif; | |
-webkit-box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.4); | |
-moz-box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.4); | |
box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.4); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment