SiteWebAstrolabe/src/scss/components/_news-list.scss
2020-06-19 23:47:44 +02:00

94 lines
1.6 KiB
SCSS

.news-list {
margin-top: 8rem;
margin-bottom: 24rem;
position: relative;
// > svg {
// position: absolute;
// z-index: -1;
// top: -18rem;
// }
.wrapper {
// display: flex;
// flex-direction: column;
position: relative;
}
&__inner {
position: absolute;
top: -9rem;
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: 0;
}
&__item {
display: flex;
flex-direction: column;
background-color: var(--color-primary);
color: var(--color-dark);
border-radius: 1rem;
&-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;
&,
&:visited {
color: var(--color-dark);
}
&:hover {
background-color: var(--color-primary);
border-radius: 1.5rem;
text-decoration: none;
}
}
}