Add landing account menu
Some checks failed
Build / release (macos-latest) (push) Has been cancelled
Build / release (ubuntu-latest) (push) Has been cancelled
Build / release (windows-latest) (push) Has been cancelled
Windows Smoke Test / windows-smoke (push) Has been cancelled

This commit is contained in:
2026-05-04 14:27:09 +09:00
parent de47cb219a
commit f6f716acd0
6 changed files with 169 additions and 50 deletions

View File

@@ -2955,19 +2955,36 @@ input:checked + .toggleSwitchSlider:before {
flex-direction: column;
position: relative;
top: 50px;
align-items: flex-start;
align-items: flex-end;
height: calc(100% - 50px);
}
/* Right hand user content container. */
#user_content {
display: flex;
align-items: center;
flex-direction: column;
align-items: flex-end;
justify-content: center;
gap: 10px;
box-sizing: border-box;
position: relative;
}
#avatarMenuButton {
padding: 0;
border: none;
background: none;
cursor: pointer;
}
#avatarMenuButton:focus {
outline: none;
}
#avatarMenuButton:disabled {
cursor: default;
}
/* User profile avatar container. */
#avatarContainer {
border-radius: 50%;
@@ -2981,47 +2998,44 @@ input:checked + .toggleSwitchSlider:before {
position: relative;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
background-size: cover;
}
/* Avatar edit overlay. */
#avatarOverlay {
opacity: 0;
position: absolute;
z-index: 1;
#avatarMenuButton:hover #avatarContainer,
#avatarMenuButton[aria-expanded="true"] #avatarContainer,
#avatarMenuButton:focus #avatarContainer {
border-color: #f1c15a;
box-shadow: 0px 0px 18px 0px rgba(241, 193, 90, 0.55);
}
#accountMenu {
min-width: 190px;
padding: 14px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(10, 10, 10, 0.9);
backdrop-filter: blur(12px);
display: flex;
justify-content: center;
align-items: center;
transition: 0.25s ease;
font-weight: bold;
letter-spacing: 2px;
background-color: rgba(0, 0, 0, 0.35);
-webkit-user-select: none;
border: none;
cursor: pointer;
width: 100%;
height: 100%;
border-radius: 50%;
}
#avatarOverlay:hover,
#avatarOverlay:focus {
opacity: 1;
}
#avatarOverlay:active {
background-color: rgba(0, 0, 0, 0.45);
flex-direction: column;
align-items: stretch;
gap: 12px;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
/* User profile name text. */
#user_text {
font-size: 12px;
min-width: 135px;
font-weight: 900;
letter-spacing: 1px;
text-shadow: 0px 0px 20px black;
position: absolute;
right: 95px;
#accountMenu[hidden] {
display: none;
}
#accountMenuName {
font-size: 13px;
font-weight: 800;
letter-spacing: 0.04em;
color: #ffffff;
text-align: right;
-webkit-user-select: initial;
}
#accountMenuLogoutButton {
width: 100%;
}
/* Social media icon content container. */