MediaWiki:Common.css

From Vanilla Plus
Revision as of 19:04, 13 February 2025 by Lokiy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.
.image-link {
    position: relative;
    text-decoration: none;
}

.image-preview {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    border: 1px solid #ccc;
    z-index: 10;
}

.image-link:hover + .image-preview {
    display: block;
}