MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
.underline-hover {
    position: relative;
    text-decoration: none;
    transition: text-decoration 0.3s ease-in-out;
}
.underline-hover {
.underline-hover {
     position: relative;
     position: relative;
Line 17: Line 12:
.underline-hover .tooltip-text {
.underline-hover .tooltip-text {
     visibility: hidden;
     visibility: hidden;
    width: 120px; /* Adjust width as needed */
     background-color: #DDD7CC;
     background-color: #DDD7CC;
     color: #000;
     color: #000;
    width: 300px
     text-align: center;
     text-align: center;
     padding: 5px 0;
     padding: 5px 10px; /* Adjust padding as needed */
     border-radius: 6px;
     border-radius: 6px;
 
    white-space: nowrap; /* Prevents the text from wrapping */
   
     /* Positioning */
     /* Positioning */
     position: absolute;
     position: absolute;
Line 30: Line 24:
     top: 100%; /* Position below the text */
     top: 100%; /* Position below the text */
     left: 50%;
     left: 50%;
     margin-left: -60px; /* Center the tooltip */
     transform: translateX(-50%); /* Center the tooltip */
     opacity: 0;
     opacity: 0;
     transition: opacity 0.3s ease-in-out;
     transition: opacity 0.3s ease-in-out;
Line 40: Line 34:
     opacity: 1;
     opacity: 1;
}
}




Navigation menu