SiteWebAstrolabe/src/scss/components/_posts-list.scss
2020-07-15 23:29:09 +02:00

84 lines
1.4 KiB
SCSS

.news-list {
.wrapper {
position: relative;
}
&__inner {
display: flex;
flex-direction: column;
}
&__heading {
margin-bottom: 3rem;
color: var(--color-white);
font-weight: 100;
}
&__items {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 1.5rem;
grid-row-gap: 2rem;
}
&__item {
display: flex;
flex-direction: column;
background-color: var(--color-primary);
color: var(--color-dark);
border-radius: 1rem;
&.event {
background-color: var(--color-light-blue);
}
&-heading {
font-size: 1.125rem;
font-weight: 600;
padding: 4.5rem 1.5rem 4rem;
}
&-date {
font-size: 1rem;
font-weight: 600;
background-color: var(--color-light-gray);
border-radius: 0 0 1rem 1rem;
padding: 1rem 1.5rem;
margin-top: auto;
}
}
&__link {
&,
&:visited {
color: var(--color-dark);
text-decoration: none;
}
&:hover {
text-decoration: underline;
}
}
&__see-all {
font-size: 1.125rem;
font-weight: 700;
line-height: 1;
align-self: flex-end;
margin-top: 3rem;
padding: .875rem 1.5rem;
}
}
.home .news-list {
margin-top: 8rem;
margin-bottom: 24rem;
position: relative;
&__inner {
position: absolute;
top: -9rem;
}
}