Skip to content

Instantly share code, notes, and snippets.

@alanef
Created November 12, 2021 11:36
Show Gist options
  • Select an option

  • Save alanef/571c894923338120f0eaf5bda2336b9d to your computer and use it in GitHub Desktop.

Select an option

Save alanef/571c894923338120f0eaf5bda2336b9d to your computer and use it in GitHub Desktop.
.help-tip {
position: absolute;
text-align: center;
background-color: #409EBB;
border-radius: 50%;
width: 15px;
height: 15px;
font-size: 12px;
line-height: 17px;
cursor: default;
right: -12px;
top: 0; }
.help-tip:before {
content: "?";
font-weight: bold;
color: #fff; }
.help-tip:hover p {
display: block;
transform-origin: 100% 0%;
-webkit-animation: fadeIn 0.3s ease-in-out;
animation: fadeIn 0.3s ease-in-out; }
.help-tip p {
z-index: 9000;
display: none;
text-align: left;
background-color: #0C3A5B;
padding: 20px;
width: 300px;
position: absolute;
border-radius: 3px;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
right: -200px;
color: #fff;
font-size: 16px;
line-height: 1.4; }
@media screen and (max-width: 400px) {
.help-tip p {
width: 200px; } }
.help-tip a {
box-shadow: none;
color: #fff; }
.help-tip a:hover {
color: #000; }
.help-tip p:before {
position: absolute;
content: "";
width: 0;
height: 0;
border: 6px solid transparent;
border-bottom-color: #0C3A5B;
right: 200px;
top: -12px; }
.help-tip p:after {
width: 100%;
height: 40px;
content: "";
position: absolute;
top: -40px;
left: 0; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment