Separate guest and panel navigation and add account flyout
This commit is contained in:
1 parent
60b584b7c1
commit
5852bf1897
42 files changed
+1024
-55
No files matched your search
@@ -3118,6 +3118,110 @@ body[data-concept="dock"] .copy-input .input-copy-action:active {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.account-menu .account-parent {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 32px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.account-menu .account-parent > .account-submenu-toggle {
|
||||
padding: 8px;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.account-menu .account-parent-link {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.account-menu .account-parent-link > span {
|
||||
min-width: 0;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.account-submenu {
|
||||
position: fixed;
|
||||
inset: auto;
|
||||
margin: 0;
|
||||
padding: 6px;
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 12px 32px #07181f35;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.account-submenu:popover-open {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: account-flyout-enter 140ms ease-out;
|
||||
}
|
||||
.account-submenu button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
text-align: left;
|
||||
min-height: 44px;
|
||||
padding: 10px;
|
||||
white-space: normal;
|
||||
}
|
||||
.account-submenu button > svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.account-submenu button > span {
|
||||
overflow-wrap: anywhere;
|
||||
min-width: 0;
|
||||
}
|
||||
.account-submenu button:is(:hover, :focus-visible) {
|
||||
background: var(--color-row-hover);
|
||||
}
|
||||
.account-submenu [aria-current="page"] {
|
||||
background: var(--color-row-active);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
@keyframes account-flyout-enter {
|
||||
from {
|
||||
opacity: 0;
|
||||
translate: -4px 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
translate: 0 0;
|
||||
}
|
||||
}
|
||||
.guest-page {
|
||||
min-height: 100dvh;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
padding: 24px;
|
||||
width: 100%;
|
||||
}
|
||||
.guest-page > .identity-gate {
|
||||
max-width: 560px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
body[data-session="loading"] .shell,
|
||||
body[data-session="guest"] .shell,
|
||||
body[data-session="unavailable"] .shell {
|
||||
display: none;
|
||||
}
|
||||
body[data-session="authenticated"] #session-screen {
|
||||
display: none;
|
||||
}
|
||||
#session-screen {
|
||||
min-height: 100dvh;
|
||||
padding: 24px;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
}
|
||||
#session-screen .error-page {
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.account-submenu:popover-open {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
/* Fixed identity controls stay outside the API-driven service menu. */
|
||||
[data-fixed-account] {
|
||||
flex-shrink: 0;
|
||||
|
||||
Reference in new issue
Block a user