feat: improved image optimization

This commit is contained in:
Cory Dransfeldt 2024-02-01 10:53:34 -08:00
parent 9e118c83db
commit 0534bc5607
No known key found for this signature in database
10 changed files with 70 additions and 104 deletions

View file

@ -4,30 +4,18 @@
.avatar__wrapper {
width: 100%;
margin-bottom: 1.5rem;
justify-content: center;
}
.avatar__wrapper .avatar__wrapper--interior {
.avatar__wrapper img {
border-radius: var(--rounded-full);
border: 1px solid var(--accent-color);
width: var(--avatar-size);
height: var(--avatar-size);
border: 1px solid var(--accent-color);
border-radius: var(--rounded-full);
display: flex;
padding: 1rem;
background-color: var(--color-lightest);
}
.avatar__wrapper,
.avatar__wrapper .avatar__wrapper--interior {
justify-content: center;
overflow: hidden;
}
.avatar__wrapper .avatar__wrapper--interior > * {
width: 100%;
height: 100%;
}
@media screen and (min-width: 768px) {
:root {
--avatar-size: 24rem;