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 | border:1px solid #e6e6e6; | ||
border-radius:14px; | border-left:3px solid #b85b3a; | ||
background: | border-radius:14px; | ||
padding: | background:#fff; | ||
padding:14px 16px; | |||
margin:0 0 14px 0; | |||
} | } | ||
.news-card__header{ | .news-card__header{ | ||
overflow:hidden; | |||
margin:0 0 8px 0; | |||
margin | |||
} | } | ||
.news-card__date{ | .news-card__date{ | ||
font-size:0. | float:left; | ||
font-size:0.85rem; | |||
color:#444; | |||
} | } | ||
.news- | |||
.news-card__category-badge{ | |||
font- | float:right; | ||
font-size:0.75rem; | |||
padding:4px 10px; | |||
padding: | border-radius:999px; | ||
border-radius:999px; | border:1px solid #e6e6e6; | ||
border:1px solid | background:#f7f7f7; | ||
background: | 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{ | .news-card__title{ | ||
font-size:1. | font-size:1.1rem; | ||
font-weight: | font-weight:bold; | ||
line-height:1. | line-height:1.25; | ||
margin: | margin:0 0 8px 0; | ||
color:#111; | |||
} | } | ||
.news-card__summary{ | .news-card__summary{ | ||
font-size: | font-size:0.95rem; | ||
line-height:1. | line-height:1.5; | ||
margin:0 0 | margin:0 0 12px 0; | ||
color:#222; | |||
max-height:4.5em; | |||
overflow:hidden; | |||
} | } | ||
.news-card__footer{ | .news-card__footer{ | ||
display: | margin:0; | ||
overflow:hidden; | |||
} | |||
.news-card__btn{ | |||
display:inline-block; | |||
padding:8px 10px; | |||
border-radius:10px; | |||
border:1px solid #e6e6e6; | |||
background:#f7f7f7; | |||
text-decoration:none; | |||
font-size:0.9rem; | |||
margin:0 8px 0 0; | |||
} | } | ||
.news- | |||
.news-card__btn a{ | |||
text-decoration:none; | |||
color:inherit; | |||
text-decoration:none; | |||
} | } | ||
.news- | |||
.news-card__btn:hover{ | |||
background:#efefef; | |||
} | } | ||
Revision as of 03:25, 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;
}
.news-card__footer{
margin:0;
overflow:hidden;
}
.news-card__btn{
display:inline-block;
padding:8px 10px;
border-radius:10px;
border:1px solid #e6e6e6;
background:#f7f7f7;
text-decoration:none;
font-size:0.9rem;
margin:0 8px 0 0;
}
.news-card__btn a{
text-decoration:none;
color:inherit;
}
.news-card__btn:hover{
background:#efefef;
}