Template:Article thumbnail/styles.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1:
/* Unified look for all article thumbnails */
/* Container */
.article-thumb {
vertical-align: top;
width: 150px; /* exact width for all cards */
padding: 0px 15px0px 20px 0px; /* Added 15px right padding for a gap between cards */
background: #FFFFFF; /* same background everywhere */
background: transparent !important;
border: 0; /* no border */
border: none !important;
display: inline-block;
text-align: left;
box-sizing: border-box;
display: inline-block;
text-align: leftcenter;
}
 
/* Image wrapper */
.article-thumb__imgwrap {
width: 100%;
height: 150px160px; /* Fixedexact height to keep theso gridrows alignedalign */
padding: 0px 0px 0px 0px;
display: flex;
align-items: center;
justify-content: flex-startcenter; /* Aligns "as is" image to the left */
overflow: hidden; /* safety against odd aspect ratios */
margin-bottom: 5px;
background: transparent !important;
}
 
/* Let the image fit without cropping or stretching */
/* Strip MediaWiki default styling from image links and files */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap a,img {
.article-thumb__imgwrap .mw-file-description {
display: block;
max-width: 150px100%;
height: 150px !important; /* Force the height you want */
max-height: 100%;
width: auto !important; /* Let width be "as is" based on aspect ratio */
width: auto; /* prevent stretch */
max-width: 150px;
height: auto; /* prevent stretch */
border: none !important;
background: none !important;
background-color: transparent !important;
box-shadow: none !important;
}
 
.article-thumb__contentthumb__caption {
/* Content Area */
margin-bottom: 0px 5px 0px 5px;
.article-thumb__content {
font-size: 0.85em;
line-height: 1.435;
color: #202122;
}
 
/* Optional: cleaner links under the image */
.article-thumb__titlethumb a {
font-weight: bold;
color: #202122;
text-decoration: none;
}
 
.article-thumb__subtitle,
.article-thumb__description {
color: #202122;
display: block;
}