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

97 lines
1.5 KiB
SCSS
Raw Normal View History

2020-07-07 00:09:37 +02:00
.member-list {
&__heading {
2020-07-16 17:40:16 +02:00
margin: 8rem 0 4rem;
2020-07-07 00:09:37 +02:00
}
2020-07-13 20:36:44 +02:00
2020-07-07 00:09:37 +02:00
&__items {
margin-top: 4rem;
display: grid;
grid-template-columns: repeat(4, 1fr);
2020-07-07 00:09:37 +02:00
grid-template-rows: auto;
grid-column-gap: 2rem;
grid-row-gap: 4rem;
2020-07-07 00:09:37 +02:00
}
&__item {
2020-07-14 20:10:42 +02:00
display: flex;
flex-direction: column;
align-items: center;
2020-07-07 00:09:37 +02:00
color: var(--color-dark);
> p {
text-align: center;
}
> .btn {
text-align: center;
}
> a {
display: flex;
flex-direction: column;
text-decoration: none;
}
2020-07-07 00:09:37 +02:00
2020-07-14 20:10:42 +02:00
img {
border-radius: 50%;
height: auto;
width: 100%;
padding: 0 1rem;
2020-07-07 00:09:37 +02:00
2020-07-14 20:10:42 +02:00
+ .btn {
margin-top: -1.5rem;
margin-bottom: .5rem;
text-align: center;
align-self: center;
2020-07-07 00:09:37 +02:00
2020-07-14 20:10:42 +02:00
+ p {
font-size: 1.125rem;
}
2020-07-07 00:09:37 +02:00
}
}
&.info {
display: flex;
flex-direction: column;
2020-07-14 20:10:42 +02:00
background-color: var(--color-white);
color: var(--color-dark);
2020-07-07 00:09:37 +02:00
font-weight: 600;
2020-07-14 20:10:42 +02:00
p {
font-size: 1.2rem;
2020-07-14 20:10:42 +02:00
text-align: center;
margin: 2rem 0 3.125rem;
2020-07-07 00:09:37 +02:00
}
}
}
}
2020-07-17 18:35:06 +02:00
@media (max-width: 1199.98px) {
.member-list {
&__heading {
margin: 4rem 0;
2020-07-17 18:35:06 +02:00
font-size: 1.75rem;
}
2020-07-17 18:35:06 +02:00
}
}
2020-07-17 18:35:06 +02:00
@media (max-width: 991.98px) {
.member-list {
&__items {
grid-template-columns: repeat(2, 1fr);
}
}
}
@media (max-width: 575.98px) {
.member-list {
&__items {
display: block;
}
&__item + &__item {
margin-top: 3rem;
}
}
}