Merge branch 'profile-overhaul' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2025-07-30 00:40:39 +03:00
commit 82db998c19
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1 @@
User card/profile got an overhaul

View file

@ -149,6 +149,7 @@
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
margin-bottom: 1em; margin-bottom: 1em;
container: user-card / inline-size;
> * { > * {
min-width: 0; min-width: 0;
@ -165,7 +166,9 @@
--_avatarShadowInset: var(--avatarShadowInset); --_avatarShadowInset: var(--avatarShadowInset);
width: 7em; width: 7em;
width: calc(min(7em, 20cqw));
height: 7em; height: 7em;
height: calc(min(7em, 20cqw));
object-fit: cover; object-fit: cover;
} }
} }
@ -177,12 +180,19 @@
display: grid; display: grid;
grid-auto-flow: column; grid-auto-flow: column;
grid-gap: 0.6em; grid-gap: 0.6em;
font-size: 110%;
a, button { a, button, div {
text-align: center; text-align: center;
width: 2em; width: 2em;
height: 2em; height: 2em;
line-height: 2em; line-height: 2em;
padding: 0.6em;
margin: -0.6em;
&:hover .icon {
color: var(--textFaint);
}
&:not(:hover) .icon { &:not(:hover) .icon {
color: var(--lightText); color: var(--lightText);
@ -260,10 +270,14 @@
--link: var(--text) !important; --link: var(--text) !important;
} }
.top-line, { .top-line {
display: flex; display: flex;
// these two normalize position and height when custom emoji are used
line-height: 2; line-height: 2;
margin-bottom: -0.2em;
font-weight: 600; font-weight: 600;
font-size: 110%;
font-size: calc(max(110%, 4cqw));
} }
.bottom-line { .bottom-line {

View file

@ -31,6 +31,12 @@
.other-actions { .other-actions {
top: -0.6em; top: -0.6em;
right: -0.6em; right: -0.6em;
a, button, div {
width: 2em;
height: 2em;
line-height: 2em;
}
} }
.user-info { .user-info {
@ -43,7 +49,9 @@
.Avatar { .Avatar {
width: 5em; width: 5em;
width: calc(min(5em, 20cqw));
height: 5em; height: 5em;
height: calc(min(5em, 20cqw));
} }
} }