Add profile context menu & test profile popup
This commit is contained in:
parent
d587aed92c
commit
516bdf5186
12 changed files with 602 additions and 14 deletions
|
|
@ -111,6 +111,14 @@ input, textarea {
|
|||
-webkit-user-select: text !important;
|
||||
}
|
||||
|
||||
.chat-message-text, .chat-message-author, .chat-message-timestamp,
|
||||
.profile-name, .profile-bio, .profile-id-host,
|
||||
.dm-username, .group-name, .room-name {
|
||||
user-select: text !important;
|
||||
-webkit-user-select: text !important;
|
||||
cursor: auto;
|
||||
}
|
||||
|
||||
|
||||
indicator {
|
||||
content: "";
|
||||
|
|
@ -706,7 +714,7 @@ space{
|
|||
button:hover, input:hover, textarea:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
.submit-button:hover {
|
||||
.submit-button:hover, .profile-action-btn:hover {
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.add-action-button:hover {
|
||||
|
|
@ -730,7 +738,7 @@ button:active, button.is-pressed, input:active, input.is-pressed, textarea:activ
|
|||
button.active, input.active, textarea.active {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
.submit-button:active, .submit-button.is-pressed {
|
||||
.submit-button:active, .submit-button.is-pressed, .profile-action-btn:active, .profile-action-btn.is-pressed {
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.add-action-button:active, .add-action-button.is-pressed {
|
||||
|
|
@ -758,3 +766,151 @@ sidebarelement:has(.icon-button:active) indicator:not(.active) {
|
|||
background-color: rgba(255, 255, 255, 0.06);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.profile-popup-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 3000;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
.profile-popup-container.show {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.profile-popup-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
backdrop-filter: blur(0);
|
||||
-webkit-backdrop-filter: blur(0);
|
||||
transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
|
||||
}
|
||||
.profile-popup-container.show .profile-popup-bg {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(0.25rem);
|
||||
-webkit-backdrop-filter: blur(0.25rem);
|
||||
}
|
||||
.profile-popup-content {
|
||||
position: relative;
|
||||
width: 90vw;
|
||||
max-width: 31rem;
|
||||
height: 85vh;
|
||||
max-height: 44rem;
|
||||
background: var(--main-bg-color);
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
border-radius: 0.9rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
|
||||
opacity: 0;
|
||||
transform: scale(0.6);
|
||||
transition: transform 0.2s cubic-bezier(0.4, -0.3, 0.7, 1), opacity 0.2s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.profile-popup-container.show .profile-popup-content {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
transition: transform 0.25s cubic-bezier(0.2, 1.15, 0.4, 1), opacity 0.25s ease;
|
||||
}
|
||||
.profile-popup-close-btn {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 10;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(0.25rem);
|
||||
-webkit-backdrop-filter: blur(0.25rem);
|
||||
border: none;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
border-radius: 0.8rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.profile-popup-close-btn svg {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
.profile-popup-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
#profile-popup-inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.profile-banner {
|
||||
width: 100%;
|
||||
height: 12.5rem;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.profile-avatar-container {
|
||||
position: relative;
|
||||
margin-top: -3.75rem;
|
||||
margin-left: 2rem;
|
||||
width: 7.5rem;
|
||||
height: 7.5rem;
|
||||
}
|
||||
.profile-avatar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 0.8rem;
|
||||
border: var(--border-width) solid rgba(255, 255, 255, 0.2);
|
||||
object-fit: cover;
|
||||
background: var(--main-bg-color);
|
||||
}
|
||||
.profile-info {
|
||||
padding: 1rem 2rem 2rem 2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
.profile-name {
|
||||
font-size: 2rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.2rem;
|
||||
word-break: break-word;
|
||||
}
|
||||
.profile-id-host {
|
||||
font-size: 1rem;
|
||||
opacity: 0.6;
|
||||
font-weight: 600;
|
||||
}
|
||||
.profile-bio {
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 1rem;
|
||||
border-radius: 0.8rem;
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
word-break: break-word;
|
||||
}
|
||||
.profile-action-btn {
|
||||
align-self: flex-start;
|
||||
padding: 0.6rem 1.5rem;
|
||||
font-weight: 700;
|
||||
background: var(--text-color);
|
||||
color: var(--main-bg-color);
|
||||
border-radius: 0.8rem;
|
||||
margin-top: 0.5rem;
|
||||
margin-left: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue