Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
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; /* Forces the whole image to show */
     object-fit: contain !important; /* Prevents stretching */
     width: 100%;
    padding: 20px !important;        /* Adds white space around the icon */
     height: 200px; /* You might need to match the extension's default height */
     height: 140px !important;       /* Sets a fixed height for consistency */
     background-color: #f8f9fa; /* Optional: Adds a background color to the empty space */
     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 */
}