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:
.tooltip-wrapper {
    position: relative;
    display: inline-block; /* Ensure it fits the content */
}
.underline-hover {
.underline-hover {
     position: relative;
     position: relative;
Line 13: Line 18:


/* Tooltip container */
/* Tooltip container */
.tooltip-wrapper {
    position: relative;
}
.tooltip-text {
.tooltip-text {
     visibility: hidden;
     visibility: hidden;
     background: #DDD7CC;
     background-color: #555;
     color: #000;
     color: #fff;
     text-align: center;
     text-align: center;
     padding: 5px 10px;
     padding: 5px 10px;
Line 28: Line 29:
     position: absolute;
     position: absolute;
     z-index: 9999; /* Ensure it's on top of all objects */
     z-index: 9999; /* Ensure it's on top of all objects */
     top: 100%; /* Position below the text */
     top: 50%; /* Center vertically relative to the text */
     left: 50%;
     right: 100%; /* Position to the left of the text */
     transform: translateX(-50%); /* Center the tooltip */
     transform: translateY(-50%); /* Center the tooltip vertically */
     opacity: 0;
     opacity: 0;
     transition: opacity 0.3s ease-in-out;
     transition: opacity 0.3s ease-in-out;
Line 49: Line 50:
     opacity: 0;
     opacity: 0;
}
}




Navigation menu