Template:Article thumbnail/styles.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1:
/* Unified look for all article thumbnails */
.article-thumb {
vertical-align: top;
width: 150px; /* exact width for all cards */
padding: 0px
background: #FFFFFF; /* same background everywhere */
border: 0; /* no border */
display: inline-block;▼
text-align: left;▼
box-sizing: border-box;
▲ display: inline-block;
}
.article-thumb__imgwrap {
width: 100%;
height:
padding: 0px 0px 0px 0px;
display: flex;
align-items: center;
justify-content:
overflow: hidden; /* safety against odd aspect ratios */
margin-bottom: 5px;▼
}
/* Let the image fit without cropping or stretching */
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap
display: block;
max-height: 100%;
width: auto; /* prevent stretch */
▲ max-width: 150px;
height: auto; /* prevent stretch */
}
▲.article-thumb__content {
font-size: 0.85em;
line-height: 1.
}
/* Optional: cleaner links under the image */
.article-
text-decoration: none;
}
| |||