MediaWiki:Common.css

From Ironclad Wiki
Revision as of 21:20, 11 August 2025 by X5f4k4 (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 */
/* Ironclad pressable buttons */
.ic-btn {
  display: inline-block;
  overflow: hidden;       /* clips the bottom edge when pressed */
  border-radius: 10px;    /* match button art corners */
  line-height: 0;         /* removes unwanted gap around inline images */
}

/* Link and image inside the button */
.ic-btn > a,
.ic-btn img {
  display: block;
  border-radius: 10px;
}

.ic-btn img {
  width: 100%;
  height: auto;
  pointer-events: none; /* clicks go to the link, not the image */
}

/* Animation target is the link itself */
.ic-btn > a {
  transition: transform 120ms ease;
  transform-origin: top center;
}

/* Pressed state — moves down and squashes slightly from the top */
.ic-btn:active > a,
.ic-btn.is-pressed > a {
  transform: translateY(8px) scaleY(0.94);
}

/* No hover effect at all */
.ic-btn:hover,
.ic-btn:hover > a {
  /* intentionally empty to prevent hover animations */
}