Template:TooltipPopup/styles.css

From Mizuumi Wiki
Jump to navigation Jump to search
.tooltipcard {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
.tooltiptext {
    background-color: white !important;
    border: 2px solid;
}

.tooltipcard .tooltiptext {
    visibility: hidden;
    background-color: inherit;
    color: inherit;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltipcard:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltipcard-top .tooltiptext-top::after {
    content: " ";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-color: black transparent transparent transparent;
}

.tooltipcard-bottom .tooltiptext-bottom::after {
    content: " ";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    bottom: 100%;  
    left: 50%;
    margin-left: -5px;
    border-color: transparent transparent black transparent;
}

/*

.tooltipcard-right .tooltiptext-right::after {
    content: " ";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    top: 50%;
    right: 100%; 
    margin-top: -5px;
    border-color: transparent black transparent transparent;
}

.tooltipcard-left .tooltiptext-left::after {
    content: " ";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    top: 50%;
    left: 100%; 
    margin-top: -5px;
    border-color: transparent transparent transparent black;
}

*/