72 lines
900 B
SCSS
72 lines
900 B
SCSS
.PersonCard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
margin: var(--single-margin) 0;
|
|
|
|
width: 30%;
|
|
min-width: 15em;
|
|
max-width: 30em;
|
|
|
|
//border: 1px solid #ccc;
|
|
//border-radius: 3px;
|
|
|
|
& > a {
|
|
display: block;
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.PersonCard-Picture {
|
|
border-radius: 3px;
|
|
|
|
width: 100%;
|
|
height: 24em;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 24em;
|
|
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.PersonCard-Title, .PersonCard-Body {
|
|
position: absolute;
|
|
width: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
color: white;
|
|
text-align: center;
|
|
text-shadow: 0 0 3px #000;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.PersonCard-Title {
|
|
top: 0;
|
|
}
|
|
|
|
.PersonCard-Body {
|
|
bottom: 0;
|
|
}
|
|
|
|
//Animation
|
|
|
|
.PersonCard-Picture {
|
|
overflow: hidden;
|
|
|
|
img {
|
|
transition: transform 150ms ease-out;
|
|
}
|
|
}
|
|
|
|
.PersonCard {
|
|
&:hover {
|
|
img {
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
}
|
|
|