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

Content deleted Content added
No edit summary
Tag: Manual revert
No edit summary
Tag: Reverted
Line 1:
/* Unified lookContainer for allthe articlewhole thumbnailscard */
.article-thumb {
vertical-align: top;
width: 150px; /* exactFixed width for allgrid cardsconsistency */
padding: 0px 0px10px 20px 0px; /* Added right padding for breathing room between cards */
background: #FFFFFFtransparent; /* same backgroundClean everywherelook */
border: 0; /* no border */
box-sizing: border-box;
display: inline-block;
text-align: left; /* Force left alignment of the whole block */
text-align: center;
box-sizing: border-box;
}
 
/* Image wrapper */
.article-thumb__imgwrap {
width: 100%;
height: 160px; /* exactConsistent height sofor rowsimage alignarea */
padding: 0px 0px 0px 0px;
display: flex;
align-items: center;
justify-content: centerflex-start; /* Align the image to the left within its container */
overflow: hidden; /* safety against odd aspect ratios */
margin-bottom: 8px; /* Space between image and text */
}
 
/* Let the image fit without cropping or stretching */
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap img {
Line 27 ⟶ 26:
max-width: 100%;
max-height: 100%;
width: auto; /* prevent stretch */
height: auto; /* prevent stretch */
}
 
/* Text Content Area */
.article-thumb__captionthumb__content {
margin: 0px 5px 0px 5px;
font-size: 0.85em; /* Global size for all text in the card */
line-height: 1.353;
}
 
.article-thumbthumb__title a {
/* Optional: cleaner links under the image */
font-weight: bold; /* Title is 0.85em but bold for hierarchy */
.article-thumb a {
color: #000;
text-decoration: none;
}
 
.article-thumb__subtitle {
color: #333; /* Slightly lighter than black */
}
 
.article-thumb__description {
bordercolor: 0#666; /* noSoft gray for bordermeta-info */
}