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

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1:
/* Base card style */
/* Container - Removed all visual weight */
.article-thumb {
vertical-align: top;
width: 150px;
/* Increase the second value (40px) to add more space to the right */
padding: 0px 0px20px 0px20px 0px;
background: transparent !important; /* Forces removal of gray */
border: none !important; /* Forces removal of borders */
displayborder: inline-block0;
text-align: left;
box-sizing: border-box;
display: inline-block;
}
 
/* Alignment Modifier Classes */
/* Image wrapper - Ensures no background is inherited */
.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: 150px130px;
display: flex;
align-items: center;
justify-content: flex-start;
overflow: hidden;
margin-bottom: 0px;
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 a.mw-file-description {
display: block;
max-width: 100%;
width: 150px !important; /* Forces the width */
linemax-height: 1.4100%;
height: 150px !important; /* Forces the height */
width: auto;
height: auto;
/* ADD THESE TWO LINES */
}
object-position: top; /* Ensures the CEO's head isn't cut off if cropped */
 
/* Page Title / Caption */
border: none !important;
.article-thumb__title athumb__caption {
background: none !important;
margin: 0px;
box-shadow: none !important;
line-height: 1;
font-weight: bold;
}
 
/* Direct link targeting to force 0.85em on mobile */
/* Content Area - Using the requested #202122 color */
.article-thumb__contentthumb__caption a {
font-size: 0.85em !important;
background/* color: transparent#202122 !important;
line-height: 1.4;
text-decoration: none;*/
color: #202122;
}
 
/* Subtitle and Description */
.article-thumb__title a {
.article-thumb__text {
font-weight: bold;
color: #202122;
borderfont-size: none0.85em !important;
text-decoration: none;
font-weight: normal;
line-height: 1;
display: block;
}
 
.article-thumb__subtitle,thumb a {
text-aligndecoration: leftnone;
.article-thumb__description {
color: #202122; /* Normal text color as requested */
display: block;
}