MediaWiki:Common.css: Difference between revisions

From Ironclad Wiki
Jump to navigation Jump to search
No edit summary
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* 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 */
}

Latest revision as of 22:24, 11 August 2025

/* CSS placed here will be applied to all skins */