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

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1:
/* ContainerBase forcard the whole cardstyle */
.article-thumb {
vertical-align: top;
width: 150px; /* Fixed width for grid consistency */
/* Increase the second value (40px) to add more space to the right */
padding: 0px 10px 20px 0px; /* Added right padding for breathing room between cards */
padding: 0px 20px 20px 0px;
background: transparent !important; /* Clean look */
display: inline-block;
border: 0;
text-align: left; /* Force left alignment of the whole block */
box-sizing: border-box;
display: inline-block;
}
 
/* ImageAlignment wrapperModifier Classes */
.article-thumb--align-center { text-align: center; }
.article-thumb--align-left { text-align: left; }
.article-thumb--align-right { text-align: right; }
 
.article-thumb__imgwrap {
width: 100%;
height: 130px;
height: 160px; /* Consistent height for image area */
display: flex;
align-items: center;
justify-content: flex-start; /* Align the image to the left within its container */
overflow: hidden;
margin-bottom: 8px0px; /* Space between image and text */
}
 
.article-thumb__imgwrap .mw-file-elementimg,
.article-thumb__imgwrap img.mw-file-element {
display: block;
max-width: 100%;
Line 30 ⟶ 35:
}
 
/* TextPage ContentTitle Area/ Caption */
.article-thumb__contentthumb__caption {
margin: 0px;
font-size: 0.85em; /* Global size for all text in the card */
line-height: 1.3;
font-weight: bold;
}
 
/* Direct link targeting to force 0.85em on mobile */
.article-thumb__titlethumb__caption a {
font-weight: bold; /* Title is 0.85em but bold for hierarchy */
font-size: 0.85em !important;
color: #000;
/* color: #202122 !important;
text-decoration: none;
text-decoration: none;*/
}
 
/* Subtitle and Description */
.article-thumb__subtitlethumb__text {
color: #333; /* Slightly lighter than black */
color: #000202122;
font-size: 0.85em !important;
font-weight: normal;
line-height: 1;
display: block;
}
 
.article-thumb__descriptionthumb a {
text-decoration: none;
color: #666; /* Soft gray for meta-info */
}