www-new/components/TeamMemberCard.module.css

168 lines
2.6 KiB
CSS
Raw Normal View History

2021-05-24 05:21:34 -04:00
.card {
display: grid;
grid-template-columns: calc(126rem / 16) auto;
2021-05-24 05:21:34 -04:00
grid-template-areas:
"picture name"
"picture role"
"picture description";
column-gap: calc(32rem / 16);
2021-05-24 05:21:34 -04:00
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);
2021-05-24 05:21:34 -04:00
clip-path: circle(50%);
}
.image {
width: 100%;
}
.name {
grid-area: name;
margin: 0;
color: var(--primary-accent);
font-size: calc(36rem / 16);
font-weight: 600;
2021-05-24 05:21:34 -04:00
}
.role {
grid-area: role;
margin: 0;
2021-08-05 17:18:34 -04:00
color: var(--primary-heading);
font-size: calc(24rem / 16);
line-height: calc(40 / 24);
2021-05-24 05:21:34 -04:00
font-weight: 600;
}
.description {
grid-area: description;
}
.description > *:first-child {
margin-top: 0;
2021-05-24 05:21:34 -04:00
}
2021-07-24 14:33:02 -04:00
/* Popup */
2021-08-09 18:45:03 -04:00
@keyframes popup {
0% {
transform: scale(0.4) translate(0, -50%);
}
100% {
transform: scale(1) translate(0, -50%);
}
}
@keyframes revealBg {
0% {
opacity: 0;
}
100% {
opacity: 100%;
}
}
2021-08-05 17:18:34 -04:00
.popupBackground {
2021-07-24 14:33:02 -04:00
position: fixed;
2021-08-09 18:45:03 -04:00
z-index: 11;
2021-08-05 17:18:34 -04:00
background-color: var(--navbar-page-overlay);
2021-07-24 14:33:02 -04:00
width: 100%;
height: 100%;
top: 0;
left: 0;
2021-08-09 18:45:03 -04:00
animation: revealBg 0.2s forwards;
2021-07-24 14:33:02 -04:00
}
2021-08-05 17:18:34 -04:00
.popupContainer {
2021-07-24 14:33:02 -04:00
position: fixed;
display: flex;
2021-08-09 18:45:03 -04:00
z-index: 12;
2021-07-24 14:33:02 -04:00
flex-direction: column;
2021-08-31 19:16:13 -04:00
max-width: calc(768rem / 16);
height: 75vh;
box-sizing: border-box;
overflow: auto;
2021-08-05 17:18:34 -04:00
background-color: var(--secondary-background);
2021-07-24 14:33:02 -04:00
padding: calc(20rem / 16) calc(40rem / 16);
top: 50%;
2021-08-09 18:45:03 -04:00
animation: popup 0.7s forwards;
2021-07-24 14:33:02 -04:00
}
2021-08-05 17:18:34 -04:00
.closeBtn {
2021-07-24 14:33:02 -04:00
align-self: flex-end;
/* reset default button styling */
background: transparent;
border: 0px solid transparent;
padding: 0;
font-family: inherit;
line-height: inherit;
}
2021-08-05 17:18:34 -04:00
.popupContent {
2021-07-24 14:33:02 -04:00
display: flex;
flex-direction: column;
align-items: center;
}
2021-08-05 17:18:34 -04:00
.popupImage {
2021-07-24 14:33:02 -04:00
width: 100%;
}
2021-08-05 17:18:34 -04:00
.popupName {
color: var(--primary-accent);
2021-07-24 14:33:02 -04:00
margin: calc(24rem / 16) 0 0 0;
font-size: calc(18rem / 16);
font-weight: 600;
}
2021-08-05 17:18:34 -04:00
.popupRole {
color: var(--primary-heading);
2021-07-24 14:33:02 -04:00
margin: 0 0 1rem 0;
2021-07-24 20:49:33 -04:00
text-align: center;
2021-07-24 14:33:02 -04:00
font-size: calc(18rem / 16);
font-weight: 600;
}
2021-08-05 17:18:34 -04:00
.popupDescription {
2021-07-24 14:33:02 -04:00
font-size: calc(14rem / 16);
}
@media only screen and (max-width: calc(768rem / 16)) {
2021-05-24 05:21:34 -04:00
.card {
2021-07-24 14:33:02 -04:00
display: flex;
flex-direction: column;
align-items: center;
max-width: calc(135rem / 16);
margin: 0;
2021-05-24 05:21:34 -04:00
}
2021-07-24 14:33:02 -04:00
.name {
margin-top: calc(24rem / 16);
font-weight: 700;
2021-05-24 05:21:34 -04:00
}
.name,
.role {
2021-07-24 14:33:02 -04:00
text-align: center;
font-size: calc(14rem / 16);
2021-05-24 05:21:34 -04:00
}
.description {
2021-07-24 14:33:02 -04:00
display: none;
2021-05-24 05:21:34 -04:00
}
2021-08-31 19:16:13 -04:00
.popupContainer {
left: 0;
}
2021-07-24 14:33:02 -04:00
}