Template:ArticleCard/styles.css
From AbhiprayaVedi
/* ================ ARTICLE CARD STANDARDISED STYLES ================ */
.article-card {
display: flex;
flex-direction: column;
border: 1px solid #e2e8f0;
border-radius: 8px;
margin-bottom: 1.5rem;
background-color: #ffffff;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
height: 100%;
}
/* Image container styling at the top */
.article-thumbnail {
width: 100%;
max-height: 180px;
overflow: hidden;
background-color: #f7fafc;
display: flex;
justify-content: center;
align-items: center;
}
.article-thumbnail img {
width: auto;
height: 100%;
object-fit: cover;
display: block;
}
/* Informational text wrapper below the image */
.article-info {
padding: 1rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
/* Title / Displayname section with enforced font styling */
.article-title {
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
font-size: 1.25em;
font-weight: 700;
line-height: 1.4;
margin: 0 0 0.5rem 0;
}
.article-title a {
color: #1a202c;
text-decoration: none;
}
.article-title a:hover {
color: #3182ce;
}
/* Standard compliant text containment replacing non-standard webkit-clamping */
.article-intro-wrapper {
position: relative;
max-height: 4.8em; /* Exactly 3 lines (1.6em line-height * 3) */
overflow: hidden;
margin-bottom: 1rem;
}
.article-intro {
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
font-size: 0.95em;
line-height: 1.6em; /* Strict line-height definition */
color: #4a5568;
margin: 0;
padding: 0;
}
/* Single line layout row grouping Author name and Date together */
.article-meta-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
padding-top: 0.5rem;
border-top: 1px solid #edf2f7;
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
.article-author {
font-size: 0.85em;
font-weight: bold;
color: #4a5568;
}
.article-date {
font-size: 0.8em;
color: #718096;
}
/* Optional placeholder class for hidden internal metadata layout */
.author-photo-hidden {
display: none;
}