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

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1:
/* ContainerBase card style */
.article-thumb {
vertical-align: top;
width: 150px;
/* Increase the second value (40px) to add more space to the right */
padding: 0px 15px 20px 0px; /* Added 15px right padding for a gap between cards */
padding: 0px 20px 20px 0px;
background: transparent !important;
border: none !important0;
display: inline-block;
text-align: left;
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: 150px; /* Fixed height to keep the grid aligned */
display: flex;
align-items: center;
justify-content: flex-start; /* Aligns "as is" image to the left */
overflow: hidden;
margin-bottom: 5px0px;
background: transparent !important;
}
 
/* Strip MediaWiki default styling from image links and files */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element, {
.article-thumb__imgwrap a,
.article-thumb__imgwrap .mw-file-description {
display: block;
max-width: 100%;
height: 150px !important; /* Force the height you want */
max-height: 100%;
width: auto !important; /* Let width be "as is" based on aspect ratio */
max-width: 150pxauto;
height: auto;
border: none !important;
background: none !important;
background-color: transparent !important;
box-shadow: none !important;
}
 
/* ContentPage AreaTitle / Caption */
.article-thumb__contentthumb__caption {
font-sizemargin: 0.85em0px;
line-height: 1.4;
colorfont-weight: #202122bold;
}
 
/* Direct link targeting to force 0.85em on mobile */
.article-thumb__title a {
.article-thumb__imgwrapthumb__caption a, {
font-weight: bold;
backgroundfont-size: transparent0.85em !important;
color: #202122;
border/* color: none#202122 !important;
text-decoration: none;*/
}
 
/* Subtitle and Description */
.article-thumb__subtitle,
.article-thumb__descriptionthumb__text {
color: #202122;
backgroundfont-size: none0.85em !important;
font-weight: boldnormal;
line-height: 1;
display: block;
}
 
.article-thumb__titlethumb a {
text-aligndecoration: leftnone;
}