forked from WikiDeck/wikideck
OIDC PKCE login, ID-token verification against Dex JWKS, a client-built wallet link message, an off-chain account and wallet store, and a mobile-safe login button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
1.6 KiB
CSS
22 lines
1.6 KiB
CSS
.auth-wrap{position:relative;display:inline-flex;align-items:center;gap:8px}
|
|
.auth-avatar{display:inline-grid;place-items:center;border-radius:50%;color:#fff;font-weight:650;flex-shrink:0;line-height:1}
|
|
.auth-button .auth-avatar{margin-right:2px}
|
|
.auth-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:280px;padding:14px;border-radius:10px;
|
|
background:var(--surface, #fff);color:inherit;border:1px solid rgba(127,127,127,.25);box-shadow:0 12px 32px rgba(0,0,0,.18);
|
|
display:flex;flex-direction:column;gap:10px}
|
|
.auth-menu-head{display:flex;align-items:center;gap:10px}
|
|
.auth-menu-head small,.auth-menu-section small{display:block;opacity:.65;font-size:10px;letter-spacing:.6px}
|
|
.auth-menu-section code{display:block;font-size:11px;margin-top:4px}
|
|
.auth-menu-section p,.auth-ok{font-size:11px;opacity:.8;margin:4px 0 0;display:flex;align-items:center;gap:6px}
|
|
.auth-notice{font-size:11px;max-width:260px}
|
|
.auth-consent{font-size:11px;line-height:1.5;opacity:.8;margin:0}
|
|
.auth-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
|
|
/* Narrow screens: the top bar has no spare width, so float the account button outside its flow. */
|
|
@media (max-width:480px){
|
|
.auth-label{display:none}
|
|
.auth-wrap{position:fixed;right:14px;bottom:14px;z-index:45}
|
|
.auth-wrap .auth-button{border-radius:999px;padding:6px;box-shadow:0 6px 18px rgba(0,0,0,.22)}
|
|
.auth-menu{top:auto;bottom:calc(100% + 8px);width:min(280px,calc(100vw - 28px))}
|
|
.auth-wrap>.auth-notice{position:absolute;bottom:calc(100% + 8px);right:0;width:min(260px,calc(100vw - 28px))}
|
|
}
|