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