Template:Article thumbnail/styles.css
Appearance
/* Container */
.article-thumb {
vertical-align: top;
width: 150px;
padding: 0px 15px 20px 0px; /* Added 15px right padding for a gap between cards */
background: transparent !important;
border: none !important;
display: inline-block;
text-align: left;
box-sizing: border-box;
}
/* Image wrapper */
.article-thumb__imgwrap {
width: 100%;
height: 150px; /* Fixed height to keep the grid aligned */
display: flex;
align-items: center;
justify-content: flex-start; /* Aligns "as is" image to the left */
overflow: hidden;
margin-bottom: 5px;
background: transparent !important;
}
/* Strip MediaWiki default styling from image links and files */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap a,
.article-thumb__imgwrap .mw-file-description {
display: block;
height: 150px !important; /* Force the height you want */
width: auto !important; /* Let width be "as is" based on aspect ratio */
max-width: 150px;
border: none !important;
background: none !important;
background-color: transparent !important;
box-shadow: none !important;
}
/* Content Area */
.article-thumb__content {
font-size: 0.85em;
line-height: 1.4;
color: #202122;
}
.article-thumb__title a {
font-weight: bold;
color: #202122;
text-decoration: none;
}
.article-thumb__subtitle,
.article-thumb__description {
color: #202122;
display: block;
}