115 lines
1.7 KiB
CSS
115 lines
1.7 KiB
CSS
|
.card {
|
||
|
display: grid;
|
||
|
grid-template-columns: 126px auto;
|
||
|
grid-template-areas:
|
||
|
"picture name"
|
||
|
"picture role"
|
||
|
"picture description";
|
||
|
column-gap: 2rem;
|
||
|
row-gap: 0;
|
||
|
justify-items: start;
|
||
|
align-items: start;
|
||
|
|
||
|
max-width: 847px;
|
||
|
}
|
||
|
|
||
|
.picture {
|
||
|
grid-area: picture;
|
||
|
justify-self: center;
|
||
|
|
||
|
max-width: 126px;
|
||
|
max-height: 126px;
|
||
|
|
||
|
clip-path: circle(50%);
|
||
|
}
|
||
|
|
||
|
.image {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.name {
|
||
|
grid-area: name;
|
||
|
margin: 0;
|
||
|
|
||
|
color: var(--blue-1);
|
||
|
font-size: 2.25rem;
|
||
|
line-height: 1.1;
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
|
||
|
.role {
|
||
|
grid-area: role;
|
||
|
margin: 0;
|
||
|
|
||
|
color: var(--purple-2);
|
||
|
font-size: 1.5rem;
|
||
|
line-height: 1.7;
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
|
||
|
.description {
|
||
|
grid-area: description;
|
||
|
margin: 0;
|
||
|
|
||
|
line-height: 1.875;
|
||
|
}
|
||
|
|
||
|
@media screen and (max-width: 768px) {
|
||
|
.card {
|
||
|
grid-template-columns: 90px auto;
|
||
|
column-gap: 1.375rem;
|
||
|
|
||
|
max-width: 460px;
|
||
|
}
|
||
|
|
||
|
.picture {
|
||
|
max-width: 90px;
|
||
|
max-height: 90px;
|
||
|
}
|
||
|
|
||
|
.name,
|
||
|
.role,
|
||
|
.description {
|
||
|
font-size: 1rem;
|
||
|
line-height: 1.5;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* TODO: Use the correct mobile styles from figma
|
||
|
@media only screen and (max-width: 375px) {
|
||
|
.card {
|
||
|
grid-template-columns: 70px auto;
|
||
|
grid-template-rows: auto calc(0.875rem * 1.5 + 0.75rem) auto;
|
||
|
grid-template-areas:
|
||
|
"picture name"
|
||
|
"picture role"
|
||
|
"description description";
|
||
|
column-gap: 1.4375rem;
|
||
|
align-items: end;
|
||
|
|
||
|
max-width: 190px;
|
||
|
}
|
||
|
|
||
|
.picture {
|
||
|
max-width: 70px;
|
||
|
max-height: 70px;
|
||
|
}
|
||
|
|
||
|
.name,
|
||
|
.role,
|
||
|
.description {
|
||
|
font-size: 0.875rem;
|
||
|
line-height: 1.5;
|
||
|
}
|
||
|
|
||
|
.role {
|
||
|
margin-bottom: 0.75rem;
|
||
|
}
|
||
|
|
||
|
.description {
|
||
|
justify-self: top;
|
||
|
margin-top: 0.75rem;
|
||
|
margin-left: 0.75rem;
|
||
|
}
|
||
|
} */
|