MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 13: Line 13:


/* Tooltip container */
/* Tooltip container */
.underline-hover .tooltip-text {
.tooltip-wrapper {
    position: relative;
}
 
.tooltip-text {
     visibility: hidden;
     visibility: hidden;
     background-color: #555;
     background-color: #555;
Line 34: Line 38:
}
}


/* Show the tooltip text when the span is focused and hide when clicked again */
/* Show the tooltip text when the wrapper is focused */
.underline-hover:focus-within .tooltip-text {
.tooltip-wrapper:focus-within .tooltip-text {
     visibility: visible;
     visibility: visible;
     opacity: 1;
     opacity: 1;
}
}


.underline-hover:focus:not(:focus-visible) .tooltip-text {
/* Hide the tooltip text when the wrapper loses focus */
.tooltip-wrapper:focus:not(:focus-visible) .tooltip-text {
     visibility: hidden;
     visibility: hidden;
     opacity: 0;
     opacity: 0;

Navigation menu