Template:Article thumbnail/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
vertical-align: top; |
vertical-align: top; |
||
width: 150px; |
width: 150px; |
||
padding: 0px |
padding: 0px 20px 20px 0px; |
||
background: #FFFFFF; |
background: #FFFFFF; |
||
border: 0; |
border: 0; |
||
| Line 35: | Line 35: | ||
.article-thumb__caption { |
.article-thumb__caption { |
||
margin: 0px 0px 0px 0px; |
margin: 0px 0px 0px 0px; |
||
font-size: 0.85em; |
font-size: 0.85em !important; |
||
line-height: 1; |
line-height: 1; |
||
font-weight: bold; |
font-weight: bold; |
||
Revision as of 15:33, 4 January 2026
/* Base card style */
.article-thumb {
vertical-align: top;
width: 150px;
padding: 0px 20px 20px 0px;
background: #FFFFFF;
border: 0;
box-sizing: border-box;
display: inline-block;
}
/* Alignment Modifier 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: 160px;
display: flex;
align-items: center;
justify-content: center; /* Image stays centered in its 150px box */
overflow: hidden;
}
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
.article-thumb__caption {
margin: 0px 0px 0px 0px;
font-size: 0.85em !important;
line-height: 1;
font-weight: bold;
}
.article-thumb__text {
color: #202122;
font-weight: normal;
}
.article-thumb a {
text-decoration: none;
}