MediaWiki:Common.css
MediaWiki interface page
More actions
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.
/* Fix for LinkCards Icons */
.link-card img,
.card-img-top {
object-fit: contain !important; /* Prevents stretching */
padding: 20px !important; /* Adds white space around the icon */
height: 140px !important; /* Sets a fixed height for consistency */
width: 100% !important; /* Ensures it centers in the container */
background-color: #f8f9fa; /* Optional: Light gray background for the image area */
}