MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 34: Line 34:
}
}


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


/* Keep the tooltip visible if the tooltip itself is focused */
.underline-hover:focus:not(:focus-visible) .tooltip-text {
.underline-hover .tooltip-text:focus {
     visibility: hidden;
     visibility: visible;
     opacity: 0;
     opacity: 1;
}
}


Navigation menu