143 lines
2.2 KiB
CSS
143 lines
2.2 KiB
CSS
.card {
|
|
display: grid;
|
|
grid-template-columns: calc(126rem / 16) auto;
|
|
grid-template-areas:
|
|
"picture name"
|
|
"picture role"
|
|
"picture description";
|
|
column-gap: calc(32rem / 16);
|
|
row-gap: 0;
|
|
justify-items: start;
|
|
align-items: start;
|
|
}
|
|
|
|
.picture {
|
|
grid-area: picture;
|
|
justify-self: center;
|
|
|
|
max-width: calc(126rem / 16);
|
|
max-height: calc(126rem / 16);
|
|
|
|
clip-path: circle(50%);
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
}
|
|
|
|
.name {
|
|
grid-area: name;
|
|
margin: 0;
|
|
|
|
color: var(--blue-2);
|
|
font-size: calc(36rem / 16);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.role {
|
|
grid-area: role;
|
|
margin: 0;
|
|
|
|
color: var(--purple-2);
|
|
font-size: calc(24rem / 16);
|
|
line-height: calc(40 / 24);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.description {
|
|
grid-area: description;
|
|
}
|
|
|
|
.description > *:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Popup */
|
|
|
|
.popup_background {
|
|
position: fixed;
|
|
background-color: var(--navbar-gray);
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.popup_container {
|
|
position: fixed;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--off-white);
|
|
padding: calc(20rem / 16) calc(40rem / 16);
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translate(0, -50%);
|
|
z-index: 2;
|
|
}
|
|
|
|
.close_btn {
|
|
align-self: flex-end;
|
|
/* reset default button styling */
|
|
width: min-content;
|
|
background: transparent;
|
|
border: 0px solid transparent;
|
|
padding: 0;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.popup_content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.popup_image {
|
|
width: 100%;
|
|
}
|
|
|
|
.popup_name {
|
|
color: var(--blue-2);
|
|
margin: calc(24rem / 16) 0 0 0;
|
|
font-size: calc(18rem / 16);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.popup_role {
|
|
color: var(--purple-2);
|
|
margin: 0 0 1rem 0;
|
|
text-align: center;
|
|
font-size: calc(18rem / 16);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.popup_description {
|
|
font-size: calc(14rem / 16);
|
|
}
|
|
|
|
@media only screen and (max-width: calc(768rem / 16)) {
|
|
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: calc(135rem / 16);
|
|
margin: 0;
|
|
}
|
|
|
|
.name {
|
|
margin-top: calc(24rem / 16);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.name,
|
|
.role {
|
|
text-align: center;
|
|
font-size: calc(14rem / 16);
|
|
}
|
|
|
|
.description {
|
|
display: none;
|
|
}
|
|
}
|