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

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1:
/* Container for- theRemoved wholeall cardvisual weight */
.article-thumb {
vertical-align: top;
width: 150px; /* Fixed width for grid consistency */
padding: 0px 15px 25px 0px; /* Space for the grid gap */
background: nonetransparent !important; /* Forces removal of /* Removed backgroundgray */
border: none !important; /* Forces removal of /* Removed borderborders */
display: inline-block;
text-align: left; /* Left align everything */
box-sizing: border-box;
}
 
/* Image wrapper - Ensures no background oris borderinherited */
.article-thumb__imgwrap {
width: 100%;
height: 160px; /* Consistent vertical alignment for the row */
display: flex;
align-items: center;
justify-content: flex-start; /* Image sits on the left */
overflow: hidden;
margin-bottom: 10px; /* Clean gap between image and text */
background: transparent !important;
}
 
/* Targeting MediaWiki's internal image and link classes specifically */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap imga.mw-file-description {
display: block;
max-width: 100%;
Line 29 ⟶ 32:
width: auto;
height: auto;
border: none !important; /* Strips default MediaWiki thumbnail borders */
background: none !important; /* Strips default gray image backgrounds */
box-shadow: none !important; /* Strips any "lifted" effects */
}
 
/* Text Content Area - Using the requested #202122 color */
.article-thumb__content {
font-size: 0.85em; /* Uniform size for all text */
line-height: 1.4;
color: #202122; /* Standard dark text color */
}
 
/* Links and text styling */
.article-thumb__title a {
font-weight: bold; /* Keep bold to anchor the eye */
color: #202122;
text-decoration: none;
}
 
.article-thumb__title a:hover {
text-decoration: underline; /* Standard UX feedback */
}
 
.article-thumb__subtitle,
.article-thumb__description {
color: #202122; /* Matches theNormal titletext color as requested */
display: block;
}