81 lines
1.4 KiB
CSS
81 lines
1.4 KiB
CSS
/* Popup container - can be anything you want */
|
|
.popup {
|
|
position: relative;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
@media print {
|
|
.popup {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* The actual popup */
|
|
.popup .popuptext {
|
|
visibility: hidden;
|
|
width: 500px;
|
|
background-color: #eaeaea;
|
|
border: 1px solid #c3c3c3
|
|
color: #000;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
padding: 8px 0;
|
|
position: absolute;
|
|
z-index: 1;
|
|
bottom: 125%;
|
|
left: 50%;
|
|
margin-left: -250px;
|
|
font-size: 12pt;
|
|
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.popuptext {
|
|
font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
|
|
}
|
|
|
|
/* Popup arrow */
|
|
.popup .popuptext::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: #555 transparent transparent transparent;
|
|
}
|
|
|
|
/* Toggle this class - hide and show the popup */
|
|
.popup .show {
|
|
visibility: visible;
|
|
-webkit-animation: fadeIn 1s;
|
|
animation: fadeIn 1s;
|
|
}
|
|
|
|
/* Add animation (fade in the popup) */
|
|
@-webkit-keyframes fadeIn {
|
|
from {opacity: 0;}
|
|
to {opacity: 1;}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {opacity: 0;}
|
|
to {opacity:1 ;}
|
|
}
|
|
|
|
.popupCircle {
|
|
display: inline-block;
|
|
width: 0.25em;
|
|
height: 0.25em;
|
|
margin-right: 0.25em;
|
|
float: left;
|
|
}
|
|
|
|
.popupCircle:last-child {
|
|
margin-right: 0;
|
|
}
|