MediaWiki:Common.css

From Vanilla Plus
Revision as of 22:10, 11 February 2025 by Admin (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.custom-tooltip {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dotted black; /* Adds a dotted underline to make it look like a link */
}

.tooltip-content {
    display: none; /* Hide the tooltip by default */
    position: absolute;
    top: 1.5em;
    left: 0;
    background: white;
    border: 1px solid black;
    padding: 5px;
    z-index: 100;
    width: auto;
    max-width: 250px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.custom-tooltip:hover .tooltip-content {
    display: block; /* Show the tooltip on hover */
}