Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small CSS bug in user profile page #130

Merged
merged 2 commits into from
Jan 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 31 additions & 28 deletions src/components/profile/UserProfilePage/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
}

.profilePic {
border-radius: 4rem;
border-radius: 50%;
flex-shrink: 0;
height: 7rem;
object-fit: cover;
overflow: hidden;
position: relative;
width: 7rem;
Expand All @@ -54,8 +55,9 @@
@media (max-width: vars.$breakpoint-md) {
align-items: center;
flex-direction: column;

h1, div {

h1,
div {
text-align: center;
}
}
Expand Down Expand Up @@ -98,15 +100,17 @@
font-weight: 400;
line-height: 1.25;
text-align: end;

@media (max-width: vars.$breakpoint-md) {
text-align: center;
}

svg {
height: 1.125rem;
transform: translateY(calc((1.125rem * 1.25) - 1.125rem) * 0.5); // center the trophy icon
width: 1.125rem
transform: translateY(
calc((1.125rem * 1.25) - 1.125rem) * 0.5
); // center the trophy icon
width: 1.125rem;
}
}
}
Expand Down Expand Up @@ -173,7 +177,6 @@
height: 1.313rem;
width: 1.313rem;
}

}

.socialIcons {
Expand Down Expand Up @@ -205,26 +208,26 @@
right: 1rem;
top: 1rem;

div {
align-items: center;
background: var(--theme-background);
border: 1px solid var(--theme-accent-1-transparent);
border-radius: 0.625rem;
box-shadow: 0 0.0625rem 0.25rem 0 var(--theme-shadow);
display: flex;
height: 2.375rem;
justify-content: center;
transition: all 0.3s;
width: 2.75rem;

&:hover {
transform: scale(1.1);
}

svg {
height: 1.625rem;
width: 1.625rem;
}
div {
align-items: center;
background: var(--theme-background);
border: 1px solid var(--theme-accent-1-transparent);
border-radius: 0.625rem;
box-shadow: 0 0.0625rem 0.25rem 0 var(--theme-shadow);
display: flex;
height: 2.375rem;
justify-content: center;
transition: all 0.3s;
width: 2.75rem;

&:hover {
transform: scale(1.1);
}

svg {
height: 1.625rem;
width: 1.625rem;
}
}
}
}
}
Loading