Matthieu Bessat
205f7b421e
All checks were successful
Deploy workflow / deploy (push) Successful in 32s
152 lines
2.8 KiB
SCSS
152 lines
2.8 KiB
SCSS
// in the context of reading the article
|
|
.article__date {
|
|
font-style: italic;
|
|
}
|
|
|
|
.article__author {
|
|
text-align: right;
|
|
font-style: italic;
|
|
}
|
|
|
|
.article__featured-image-container {
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.article__featured-image {
|
|
min-width: 80%;
|
|
max-width: 100%;
|
|
text-align: center;
|
|
|
|
img {
|
|
max-height: 40vh;
|
|
max-width: 100%;
|
|
}
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
// card in list
|
|
.article-card {
|
|
display: grid;
|
|
grid-template-columns: 3fr 5fr;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 1rem;
|
|
border-radius: 3px;
|
|
|
|
.article__image {
|
|
margin-right: 0rem;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
width: 100%;
|
|
img {
|
|
display: block;
|
|
height: 300px;
|
|
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;
|
|
}
|
|
}
|
|
|
|
.prominent-article {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-columns: 3fr 4fr;
|
|
|
|
.article__image {
|
|
height: 100% !important;
|
|
min-height: 100% !important;
|
|
width: 100%;
|
|
margin-right: 0rem;
|
|
img {
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
.article__content {
|
|
position: relative;
|
|
z-index: 2;
|
|
color: white;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
|
|
.article__title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.article__meta {
|
|
margin-bottom: 1rem;
|
|
}
|
|
.article__summary {
|
|
padding-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.article__background {
|
|
transform: scale(1.1);
|
|
}
|
|
}
|
|
}
|
|
|
|
.less-prominent-articles {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.right-floating-image {
|
|
float: right;
|
|
}
|
|
|
|
|
|
@media (max-width: $sm-breakpoint) {
|
|
.prominent-article {
|
|
.article__title {
|
|
margin-top: 1rem;
|
|
}
|
|
}
|
|
.article-card {
|
|
display: block;
|
|
|
|
.article__image {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: $md-breakpoint) {
|
|
.article__featured-image {
|
|
margin: 0;
|
|
margin-top: 1rem;
|
|
img {
|
|
aspect-ratio: initial;
|
|
}
|
|
}
|
|
}
|