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

Content deleted Content added
No edit summary
No edit summary
Line 3:
vertical-align: top;
width: 150px;
/* Increase the second value (40px) to add more space to the right */
padding: 0px 40px 20px25px 0px;
background: #FFFFFFtransparent !important;
border: 0;
box-sizing: border-box;
Line 17 ⟶ 18:
.article-thumb__imgwrap {
width: 100%;
height: 160px150px;
display: flex;
align-items: center;
justify-content: centerflex-start; /* Image stays centered in its 150px box */
overflow: hidden;
margin-bottom: 8px;
}
 
.article-thumb__imgwrap .mw-file-elementimg,
.article-thumb__imgwrap img.mw-file-element {
display: block;
max-width: 100%;
Line 33 ⟶ 35:
}
 
/* Page Title / Caption */
.article-thumb__caption {
margin: 0px 0px 0px 0px;
fontline-sizeheight: 01.85em !important4;
line-height: 1;
font-weight: bold;
}
 
/* Direct link targeting to force 0.85em on mobile */
.article-thumb__caption a {
font-size: 0.85em !important;
color: #202122 !important;
text-decoration: none;
}
 
/* Subtitle and Description */
.article-thumb__text {
color: #202122;
font-size: 0.85em !important;
font-weight: normal;
line-height: 1.4;
display: block;
}