Template:TooltipPopup/styles.css: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
   }
   }
    
    
.tooltiptext {
    background-color: white !important;
    border: 2px solid;
}
.tooltipcard .tooltiptext {
.tooltipcard .tooltiptext {
     visibility: hidden;
     visibility: hidden;
     background-color: rgb(84, 84, 84);
     background-color: inherit;
     color: #fff;
     color: inherit;
     text-align: center;
     text-align: center;
     border-radius: 6px;
     border-radius: 6px;
Line 23: Line 28:
}
}


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


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


.tooltipcard-right .tooltiptext-right::after {
.tooltipcard-right .tooltiptext-right::after {
    content: " ";
    position: absolute;
    border-width: 5px;
    border-style: solid;
     top: 50%;
     top: 50%;
     right: 100%;  
     right: 100%;  
Line 52: Line 64:


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

Latest revision as of 23:22, 8 February 2024

.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;
}

*/