2024-03-10 16:33:41 +00:00
|
|
|
// in the context of reading the article
|
2022-09-30 12:51:47 +00:00
|
|
|
.article__date {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2024-03-12 14:18:14 +00:00
|
|
|
.article__author {
|
|
|
|
text-align: right;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2024-05-07 16:17:24 +00:00
|
|
|
.article__featured-image-container {
|
|
|
|
padding-top: 1rem;
|
|
|
|
}
|
|
|
|
|
2022-09-30 12:51:47 +00:00
|
|
|
.article__featured-image {
|
2024-05-07 16:17:24 +00:00
|
|
|
min-width: 80%;
|
2022-09-30 12:51:47 +00:00
|
|
|
max-width: 100%;
|
2024-05-07 16:17:24 +00:00
|
|
|
text-align: center;
|
2022-09-30 12:51:47 +00:00
|
|
|
|
|
|
|
img {
|
2024-09-15 16:26:10 +00:00
|
|
|
max-height: 40vh;
|
2022-09-30 12:51:47 +00:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
2024-09-15 16:26:10 +00:00
|
|
|
margin-bottom: 0;
|
2022-09-30 12:51:47 +00:00
|
|
|
}
|
2022-10-14 18:56:56 +00:00
|
|
|
|
2024-03-10 16:33:41 +00:00
|
|
|
// card in list
|
2024-02-26 12:01:42 +00:00
|
|
|
.article-card {
|
2024-12-23 22:04:59 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 3fr 5fr;
|
2024-02-26 12:01:42 +00:00
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
|
|
margin-bottom: 1rem;
|
2024-03-03 11:50:58 +00:00
|
|
|
border-radius: 3px;
|
2024-02-26 12:01:42 +00:00
|
|
|
|
|
|
|
.article__image {
|
|
|
|
margin-right: 0rem;
|
|
|
|
overflow: hidden;
|
2024-12-23 22:04:59 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2024-02-26 12:01:42 +00:00
|
|
|
img {
|
2024-12-23 22:04:59 +00:00
|
|
|
display: block;
|
|
|
|
height: 300px;
|
2024-02-26 12:01:42 +00:00
|
|
|
width: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
transition: all 1s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
img:hover {
|
|
|
|
transform: scale(1.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.article__title {
|
|
|
|
color: white;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
a {
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.article__meta {
|
|
|
|
margin-bottom: 0.2rem;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
.article__bottom {
|
|
|
|
display: flex;
|
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
.article__content {
|
|
|
|
padding: 0rem 2rem;
|
|
|
|
padding-bottom: 0.2rem;
|
|
|
|
}
|
|
|
|
.article__readmore.link {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
2022-10-14 18:56:56 +00:00
|
|
|
}
|
2023-06-20 13:17:21 +00:00
|
|
|
|
|
|
|
.prominent-article {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2024-02-26 12:01:42 +00:00
|
|
|
display: grid;
|
2024-12-23 22:04:59 +00:00
|
|
|
grid-template-columns: 3fr 4fr;
|
2023-06-20 13:17:21 +00:00
|
|
|
|
2024-02-26 12:01:42 +00:00
|
|
|
.article__image {
|
|
|
|
height: 100% !important;
|
|
|
|
min-height: 100% !important;
|
2024-12-23 22:04:59 +00:00
|
|
|
width: 100%;
|
2024-02-26 12:01:42 +00:00
|
|
|
margin-right: 0rem;
|
2024-12-23 22:04:59 +00:00
|
|
|
img {
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
2023-06-20 13:17:21 +00:00
|
|
|
}
|
|
|
|
.article__content {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
color: white;
|
2024-02-26 12:01:42 +00:00
|
|
|
padding: 2rem;
|
|
|
|
width: 100%;
|
2023-06-20 13:17:21 +00:00
|
|
|
|
|
|
|
.article__title {
|
2024-02-26 12:01:42 +00:00
|
|
|
margin-bottom: 1.5rem;
|
2023-06-20 13:17:21 +00:00
|
|
|
}
|
|
|
|
.article__meta {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2024-02-26 12:01:42 +00:00
|
|
|
.article__summary {
|
|
|
|
padding-bottom: 1rem;
|
2023-06-20 13:17:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.article__background {
|
|
|
|
transform: scale(1.1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.less-prominent-articles {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
}
|
2023-07-05 12:31:16 +00:00
|
|
|
|
|
|
|
.right-floating-image {
|
|
|
|
float: right;
|
|
|
|
}
|
2024-02-26 12:01:42 +00:00
|
|
|
|
2024-03-10 16:33:41 +00:00
|
|
|
|
2024-02-26 12:01:42 +00:00
|
|
|
@media (max-width: $sm-breakpoint) {
|
|
|
|
.prominent-article {
|
|
|
|
.article__title {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.article-card {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.article__image {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2024-03-15 22:27:14 +00:00
|
|
|
}
|
2024-02-26 12:01:42 +00:00
|
|
|
|
2024-03-15 22:27:14 +00:00
|
|
|
@media (max-width: $md-breakpoint) {
|
|
|
|
.article__featured-image {
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 1rem;
|
|
|
|
img {
|
|
|
|
aspect-ratio: initial;
|
|
|
|
}
|
|
|
|
}
|
2024-02-26 12:01:42 +00:00
|
|
|
}
|