You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
905 B
59 lines
905 B
.avatar {
|
|
display: flex;
|
|
gap: 2em;
|
|
}
|
|
|
|
.avatar div:last-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 0.5em;
|
|
width: 90%;
|
|
}
|
|
|
|
.avatar div:last-child > * {
|
|
margin: unset;
|
|
}
|
|
|
|
.avatar h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.avatar h4 {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.avatar > div:first-child {
|
|
min-width: 100px;
|
|
max-width: 200px;
|
|
transition-duration: 0.3s;
|
|
}
|
|
|
|
.avatar > div:first-child > img {
|
|
box-shadow: var(--box-shadow);
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.avatar > div:first-child:hover {
|
|
transition-duration: 0.3s;
|
|
transform: scale(1.1) rotate(-20deg);
|
|
}
|
|
|
|
|
|
/* mobile */
|
|
@media (max-aspect-ratio: 4/5) {
|
|
.avatar {
|
|
flex-direction: column;
|
|
height: unset;
|
|
text-align: center;
|
|
gap: unset;
|
|
}
|
|
|
|
.avatar > div:first-child {
|
|
margin: auto;
|
|
}
|
|
|
|
.avatar h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
} |