SiteWebAstrolabe/src/scss/components/_posts-list.scss

111 lines
1.7 KiB
SCSS
Raw Normal View History

2020-06-19 23:47:44 +02:00
.news-list {
2020-07-16 17:40:16 +02:00
margin-bottom: 8rem;
2020-06-19 23:47:44 +02:00
.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;
2020-07-15 23:05:36 +02:00
grid-row-gap: 2rem;
2020-06-19 23:47:44 +02:00
}
&__item {
display: flex;
flex-direction: column;
background-color: var(--color-primary);
color: var(--color-dark);
border-radius: 1rem;
2020-07-15 23:05:36 +02:00
&.event {
2020-07-15 23:29:09 +02:00
background-color: var(--color-light-blue);
2020-07-15 23:05:36 +02:00
}
2020-06-19 23:47:44 +02:00
&-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;
display: flex;
time + time {
margin-left: auto;
}
2020-06-19 23:47:44 +02:00
}
}
&__link {
&,
&:visited {
color: var(--color-dark);
text-decoration: none;
}
&:hover {
text-decoration: underline;
}
}
2020-07-15 23:05:36 +02:00
}
2020-06-19 23:47:44 +02:00
2020-07-15 23:05:36 +02:00
.home .news-list {
margin-top: 8rem;
margin-bottom: 24rem;
position: relative;
2020-06-19 23:47:44 +02:00
2020-07-15 23:05:36 +02:00
&__inner {
position: absolute;
top: -9rem;
2020-06-19 23:47:44 +02:00
}
}
2020-07-17 13:33:39 +02:00
@media (max-width: 575.98px) {
.news-list {
> svg {
width: 70rem;
overflow: hidden;
}
&__items {
display: flex;
overflow-y: auto;
padding-bottom: 1rem;
}
&__item {
flex-shrink: 0;
flex-basis: 16rem;
}
}
.home .news-list {
margin: 6rem 0;
&__inner {
position: static;
margin-top: -9rem;
}
}
}