Template:NewsItem/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
.news-card{ | .news-card { | ||
border:1px solid #e6e6e6; | border: 1px solid #e6e6e6; | ||
border-left:3px solid #b85b3a; | border-left: 3px solid #b85b3a; | ||
border-radius:14px; | border-radius: 14px; | ||
background:#fff; | background: #fff; | ||
padding:14px 16px; | padding: 14px 16px; | ||
margin:0 0 14px 0 | margin: 0 0 14px 0; | ||
} | } | ||
.news- | .news-card__header { | ||
overflow: hidden; | |||
margin: 0 0 8px 0; | |||
} | } | ||
.news- | .news-card__date { | ||
float: left; | |||
font-size:0.85rem; | font-size: 0.85rem; | ||
color:# | color: #444; | ||
} | } | ||
.news- | .news-card__category-badge { | ||
font-size: | float: right; | ||
font-size: 0.75rem; | |||
padding: 4px 10px; | |||
border-radius: 999px; | |||
color:# | border: 1px solid #e6e6e6; | ||
background: #f7f7f7; | |||
letter-spacing: 0.02em; | |||
text-transform: uppercase; | |||
color: #222; | |||
} | } | ||
.news- | .news-card__region { | ||
font-size:0. | clear: both; | ||
font-size: 0.85rem; | |||
margin:0 0 | color: #555; | ||
margin: 0 0 8px 0; | |||
} | } | ||
.news- | .news-card__title { | ||
margin:0; | font-size: 1.1rem; | ||
font-weight: bold; | |||
line-height: 1.25; | |||
margin: 0 0 8px 0; | |||
color: #111; | |||
} | } | ||
.news- | .news-card__summary { | ||
font-size: 0.95rem; | |||
line-height: 1.5; | |||
margin: 0 0 12px 0; | |||
color: #222; | |||
max-height: 4.5em; | |||
overflow: hidden; | |||
} | } | ||
/* Button styling */ | |||
/* | |||
.news-card__footer { | .news-card__footer { | ||
display: flex; | display: flex; | ||
| Line 105: | Line 79: | ||
} | } | ||
/* Read more button (green background) */ | |||
.news-card__btn--read { | .news-card__btn--read { | ||
background: #2d6a4f; | background: #2d6a4f; | ||
| Line 120: | Line 95: | ||
} | } | ||
/* Source button (outlined) */ | |||
.news-card__btn--source { | .news-card__btn--source { | ||
background: #fff; | background: #fff; | ||
| Line 132: | Line 108: | ||
.news-card__btn--source a { | .news-card__btn--source a { | ||
color: #2d6a4f !important; | color: #2d6a4f !important; | ||
} | |||
/* Campaign button (green background, same as read more) */ | |||
.news-card__btn--campaign { | |||
background: #2d6a4f; | |||
color: #fff !important; | |||
border-color: #2d6a4f; | |||
} | |||
.news-card__btn--campaign:hover { | |||
background: #245a42; | |||
border-color: #245a42; | |||
} | |||
.news-card__btn--campaign a { | |||
color: #fff !important; | |||
} | } | ||
Revision as of 06:34, 17 January 2026
.news-card {
border: 1px solid #e6e6e6;
border-left: 3px solid #b85b3a;
border-radius: 14px;
background: #fff;
padding: 14px 16px;
margin: 0 0 14px 0;
}
.news-card__header {
overflow: hidden;
margin: 0 0 8px 0;
}
.news-card__date {
float: left;
font-size: 0.85rem;
color: #444;
}
.news-card__category-badge {
float: right;
font-size: 0.75rem;
padding: 4px 10px;
border-radius: 999px;
border: 1px solid #e6e6e6;
background: #f7f7f7;
letter-spacing: 0.02em;
text-transform: uppercase;
color: #222;
}
.news-card__region {
clear: both;
font-size: 0.85rem;
color: #555;
margin: 0 0 8px 0;
}
.news-card__title {
font-size: 1.1rem;
font-weight: bold;
line-height: 1.25;
margin: 0 0 8px 0;
color: #111;
}
.news-card__summary {
font-size: 0.95rem;
line-height: 1.5;
margin: 0 0 12px 0;
color: #222;
max-height: 4.5em;
overflow: hidden;
}
/* Button styling */
.news-card__footer {
display: flex;
gap: 10px;
margin-top: 12px;
flex-wrap: wrap;
}
.news-card__btn {
display: inline-block;
padding: 6px 14px;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: all 0.2s ease;
border: 1px solid rgba(0, 0, 0, 0.12);
}
.news-card__btn a {
color: inherit !important;
text-decoration: none !important;
}
/* Read more button (green background) */
.news-card__btn--read {
background: #2d6a4f;
color: #fff !important;
border-color: #2d6a4f;
}
.news-card__btn--read:hover {
background: #245a42;
border-color: #245a42;
}
.news-card__btn--read a {
color: #fff !important;
}
/* Source button (outlined) */
.news-card__btn--source {
background: #fff;
color: #2d6a4f;
border-color: #2d6a4f;
}
.news-card__btn--source:hover {
background: rgba(45, 106, 79, 0.05);
}
.news-card__btn--source a {
color: #2d6a4f !important;
}
/* Campaign button (green background, same as read more) */
.news-card__btn--campaign {
background: #2d6a4f;
color: #fff !important;
border-color: #2d6a4f;
}
.news-card__btn--campaign:hover {
background: #245a42;
border-color: #245a42;
}
.news-card__btn--campaign a {
color: #fff !important;
}
/* Make sure links inside buttons don't get underlined */
.news-card__footer a {
text-decoration: none;
}
.news-card__footer a:hover {
text-decoration: none;
}