Template:ArticleCard/styles.css: Difference between revisions
From AbhiprayaVedi
Created page with ".article-card { display: flex; gap: 1rem; border: 1px solid #ddd; border-radius: 6px; padding: 0.75rem; margin-bottom: 1rem; background-color: #fafafa; } .article-thumbnail img { max-width: 150px; border-radius: 4px; } .article-info { flex: 1; } .article-title { font-size: 1.1em; font-weight: bold; margin: 0; } .article-author { font-size: 0.95em; color: #555; margin: 0.25em 0; } .article-date { font-size: 0.85em; color: #777; m..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* ================ ARTICLE CARD STANDARDISED STYLES ================ */ | |||
.article-card { | .article-card { | ||
display: flex; | display: flex; | ||
flex-direction: column; | |||
border: 1px solid # | border: 1px solid #e2e8f0; | ||
border-radius: | border-radius: 8px; | ||
margin-bottom: 1.5rem; | |||
background-color: #ffffff; | |||
background-color: # | 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; | |||
} | } | ||
.article-thumbnail img { | .article-thumbnail img { | ||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
display: block; | |||
} | } | ||
/* Informational text wrapper below the image */ | |||
.article-info { | .article-info { | ||
flex: 1; | padding: 1rem; | ||
display: flex; | |||
flex-direction: column; | |||
flex-grow: 1; | |||
} | } | ||
/* Title / Displayname section with enforced font styling */ | |||
.article-title { | .article-title { | ||
font-size: 1. | font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important; | ||
font-weight: | 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; | 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 { | .article-author { | ||
font-size: 0. | font-size: 0.85em; | ||
font-weight: bold; | |||
color: #4a5568; | |||
} | } | ||
.article-date { | .article-date { | ||
font-size: 0. | font-size: 0.8em; | ||
color: # | color: #718096; | ||
} | } | ||
. | /* Optional placeholder class for hidden internal metadata layout */ | ||
.author-photo-hidden { | |||
display: none; | |||
} | } | ||
Revision as of 15:57, 9 June 2026
/* ================ 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;
}
.article-thumbnail img {
width: 100%;
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;
}