commit 21290c7b6aee080955b0158b88af65900981b9a4
parent 2daf9ab8eb7f387cb54723b9c887304ff1739cba
Author: finwo <finwo@pm.me>
Date: Wed, 18 Nov 2026 17:53:41 +0100
mockups: repoint auth/account/dropdown mockups onto shared framework files
Diffstat:
6 files changed, 604 insertions(+), 1268 deletions(-)
diff --git a/mockup/plain/account.html b/mockup/plain/account.html
@@ -4,186 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Account mockup</title>
- <link rel="stylesheet" href="./global.css" />
- <style>
- .summary-list {
- display: grid;
- gap: 0.25rem;
- margin: 0;
- padding: 0;
- list-style: none;
- }
-
- .summary-row {
- display: grid;
- grid-template-columns: 1.5rem minmax(0, 1fr);
- align-items: center;
- gap: 1rem;
- min-height: 2.75rem;
- padding: 0.875rem 0.75rem;
- color: inherit;
- text-decoration: none;
- cursor: pointer;
- touch-action: manipulation;
- user-select: none;
- }
-
- .summary-row:hover,
- .summary-row:active {
- background: var(--row-hover);
- }
-
- .summary-row svg {
- width: 1.25rem;
- height: 1.25rem;
- }
-
- .summary-body {
- display: grid;
- gap: 0.125rem;
- min-width: 0;
- }
-
- .summary-title {
- font-size: 0.9375rem;
- font-weight: 500;
- line-height: 1.4;
- }
-
- .summary-meta {
- color: var(--muted);
- font-size: 0.8125rem;
- line-height: 1.4;
- }
-
- .summary-arrow {
- display: none;
- color: var(--muted);
- font-size: 1.125rem;
- line-height: 1;
- }
-
- .security-stack,
- .apps-stack {
- display: grid;
- gap: 1rem;
- max-width: 56rem;
- margin: 0 auto;
- }
-
- .surface-row {
- display: grid;
- grid-template-columns: 1.5rem minmax(0, 1fr);
- align-items: center;
- gap: 1rem;
- min-height: 2.75rem;
- padding: 1rem 0.75rem;
- background: var(--row);
- touch-action: manipulation;
- }
-
- .surface-row svg {
- width: 1.25rem;
- height: 1.25rem;
- }
-
- .surface-row strong {
- display: block;
- font-size: 0.9375rem;
- font-weight: 500;
- line-height: 1.4;
- }
-
- .surface-row span {
- color: var(--muted);
- font-size: 0.8125rem;
- line-height: 1.4;
- }
-
- .status {
- display: none;
- color: var(--muted);
- font-size: 0.8125rem;
- line-height: 1.4;
- }
-
- .danger-link {
- display: inline-flex;
- align-items: center;
- min-height: 2.75rem;
- padding: 0.5rem 0;
- border: 0;
- background: none;
- color: var(--danger-text, var(--danger));
- font: inherit;
- font-size: 0.875rem;
- cursor: pointer;
- touch-action: manipulation;
- }
-
- .danger-link:hover {
- filter: brightness(1.1);
- }
-
- .details + .note {
- margin-top: 1rem;
- }
-
- .note + .note {
- margin-top: 1rem;
- }
-
- .panel-heading {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- margin-bottom: 1rem;
- }
-
- .panel-heading svg {
- flex: none;
- width: 1.25rem;
- height: 1.25rem;
- }
-
- .panel-heading h2 {
- margin: 0;
- }
-
- .skeleton {
- height: 0.75rem;
- background: var(--skeleton);
- }
-
- .skeleton + .skeleton {
- margin-top: 0.75rem;
- }
-
- .skeleton-title {
- width: 8rem;
- height: 1rem;
- }
-
- .skeleton-short {
- width: 35%;
- }
-
- .skeleton-medium {
- width: 62%;
- }
-
- @media (min-width: 40em) {
- .summary-row,
- .surface-row {
- grid-template-columns: 1.5rem minmax(0, 1fr) auto;
- }
-
- .summary-arrow,
- .status {
- display: inline;
- }
- }
- </style>
+ <link rel="stylesheet" href="../../app/shared/style/global.css" />
+ <link rel="stylesheet" href="./mockups.css" />
</head>
<body>
<div class="mockup-controls" aria-label="Mockup state">
@@ -404,36 +226,32 @@
<section class="panel panel-wide">
<h2>Manage</h2>
- <ul class="summary-list">
- <li>
- <a class="summary-row" href="#" data-go="security">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
- </svg>
- <span class="summary-body">
- <span class="summary-title">Security</span>
- <span class="summary-meta">Password, multi-factor authentication and sessions.</span>
- </span>
- <span class="summary-arrow" aria-hidden="true">›</span>
- </a>
- </li>
- <li>
- <a class="summary-row" href="#" data-go="apps">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <rect x="3" y="3" width="7" height="7" />
- <rect x="14" y="3" width="7" height="7" />
- <rect x="3" y="14" width="7" height="7" />
- <path d="M14 17.5h7" />
- <path d="M17.5 14v7" />
- </svg>
- <span class="summary-body">
- <span class="summary-title">Apps</span>
- <span class="summary-meta">Applications with access to this account.</span>
- </span>
- <span class="summary-arrow" aria-hidden="true">›</span>
- </a>
- </li>
- </ul>
+ <div class="stack">
+ <a class="card summary-row" href="#" data-go="security">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
+ </svg>
+ <span class="summary-body">
+ <span class="summary-title">Security</span>
+ <span class="summary-meta">Password, multi-factor authentication and sessions.</span>
+ </span>
+ <span class="summary-arrow" aria-hidden="true">›</span>
+ </a>
+ <a class="card summary-row" href="#" data-go="apps">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <rect x="3" y="3" width="7" height="7" />
+ <rect x="14" y="3" width="7" height="7" />
+ <rect x="3" y="14" width="7" height="7" />
+ <path d="M14 17.5h7" />
+ <path d="M17.5 14v7" />
+ </svg>
+ <span class="summary-body">
+ <span class="summary-title">Apps</span>
+ <span class="summary-meta">Applications with access to this account.</span>
+ </span>
+ <span class="summary-arrow" aria-hidden="true">›</span>
+ </a>
+ </div>
</section>
</section>
@@ -443,7 +261,7 @@
<p>Manage how you sign in and where this account is active.</p>
</div>
- <div class="security-stack">
+ <div class="stack reading-column">
<section class="panel">
<div class="panel-heading">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
@@ -506,10 +324,10 @@
<path d="M12 17v4" />
</svg>
<span>
- <strong>Current session</strong>
- <span>account · This device · Active</span>
+ <strong class="surface-title">Current session</strong>
+ <span class="surface-meta">account · This device · Active</span>
</span>
- <span class="status">Read-only</span>
+ <span class="status surface-state">Read-only</span>
</div>
<p class="note">Session revocation arrives in a later slice.</p>
</section>
@@ -522,7 +340,7 @@
<p>Applications with access to this account.</p>
</div>
- <div class="apps-stack">
+ <div class="stack reading-column">
<section class="panel">
<h2>Authorized apps</h2>
<p class="note">App permission management arrives in a later slice.</p>
@@ -606,34 +424,34 @@
<section class="panel panel-wide">
<h2>Access</h2>
- <dl class="details">
- <div>
- <dt>Consent</dt>
- <dd>Granted</dd>
- </div>
- <div>
- <dt>Session</dt>
- <dd>Active</dd>
- </div>
- </dl>
- <p class="note">
- Revoking access removes Acme Portal's consent. The app must ask
- again the next time it signs you in.
- </p>
- <p class="note">
- <button class="danger-link" type="button">Revoke access</button>
- </p>
+ <div class="stack">
+ <dl class="details">
+ <div>
+ <dt>Consent</dt>
+ <dd>Granted</dd>
+ </div>
+ <div>
+ <dt>Session</dt>
+ <dd>Active</dd>
+ </div>
+ </dl>
+ <p class="note">
+ Revoking access removes Acme Portal's consent. The app must ask
+ again the next time it signs you in.
+ </p>
+ <button class="button-inline button-danger" type="button">Revoke access</button>
+ </div>
</section>
<section class="panel panel-wide">
<h2>Full account management</h2>
- <p class="note">
- Manage your identity, security and app permissions on the Acme
- account host.
- </p>
- <p class="note">
- <a class="button" href="#">Open full account</a>
- </p>
+ <div class="stack">
+ <p class="note">
+ Manage your identity, security and app permissions on the Acme
+ account host.
+ </p>
+ <a class="button button-primary" href="#">Open full account</a>
+ </div>
</section>
</section>
</main>
diff --git a/mockup/plain/consent.html b/mockup/plain/consent.html
@@ -4,242 +4,61 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Consent mockup</title>
- <link rel="stylesheet" href="./global.css" />
- <style>
- .consent-page {
- display: grid;
- place-items: center;
- min-height: 100vh;
- min-height: 100svh;
- padding: env(safe-area-inset-top) env(safe-area-inset-right)
- calc(1rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
- background-color: var(--surface);
- }
-
- .consent-card {
- width: min(calc(100% - 2rem), 28rem);
- padding: 2rem;
- background: var(--surface);
- }
-
- .consent-card h1 {
- margin: 0 0 0.5rem;
- font-size: 1.5rem;
- font-weight: 400;
- line-height: 1.3;
- }
-
- .consent-note {
- margin: 0;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .consent-account {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- margin-top: 1.5rem;
- padding: 0.75rem;
- background: var(--row);
- }
-
- .consent-account svg {
- flex: none;
- width: 1.5rem;
- height: 1.5rem;
- }
-
- .consent-account-body {
- display: grid;
- gap: 0.125rem;
- min-width: 0;
- }
-
- .consent-account-name {
- font-size: 0.875rem;
- font-weight: 500;
- line-height: 1.4;
- }
-
- .consent-account-meta {
- overflow-wrap: anywhere;
- color: var(--muted);
- font-size: 0.75rem;
- line-height: 1.4;
- }
-
- .consent-account-link {
- flex: none;
- margin-left: auto;
- padding: 0;
- border: 0;
- background: none;
- color: var(--accent-text);
- font: inherit;
- font-size: 0.8125rem;
- cursor: pointer;
- }
-
- .consent-account-link:hover {
- color: var(--accent-text-hover);
- }
-
- .consent-account-link:active {
- color: var(--accent-text-active);
- }
-
- .consent-section-title {
- margin: 1.5rem 0 0;
- font-size: 0.875rem;
- font-weight: 500;
- line-height: 1.5;
- }
-
- .consent-scopes {
- display: grid;
- gap: 0.5rem;
- margin: 0.75rem 0 0;
- padding: 0;
- list-style: none;
- }
-
- .consent-scope {
- display: flex;
- align-items: flex-start;
- gap: 0.5rem;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.5;
- }
-
- .consent-scope svg {
- flex: none;
- width: 1rem;
- height: 1rem;
- margin-top: 0.125rem;
- }
-
- .consent-footer {
- margin: 1.5rem 0 0;
- color: var(--muted);
- font-size: 0.8125rem;
- line-height: 1.6;
- }
-
- .consent-actions {
- display: grid;
- gap: 1rem;
- margin-top: 1.5rem;
- }
-
- .consent-actions > .button,
- .consent-actions > .link-button {
- justify-content: center;
- min-height: 2.75rem;
- text-align: center;
- }
-
- .link-button {
- display: inline-flex;
- align-items: center;
- padding: 0.75rem 1rem;
- border: 0;
- background: none;
- color: var(--accent-text);
- font: inherit;
- font-size: 1rem;
- cursor: pointer;
- touch-action: manipulation;
- }
-
- .link-button:hover {
- color: var(--accent-text-hover);
- }
-
- .link-button:active {
- color: var(--accent-text-active);
- }
-
- @media (min-width: 35em) {
- .consent-page {
- background-image: var(--hex);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
-
- .consent-card {
- box-shadow: var(--shadow);
- }
-
- .consent-actions {
- display: flex;
- flex-wrap: nowrap;
- justify-content: flex-end;
- align-items: center;
- gap: 1.5rem;
- }
-
- .consent-actions > .button,
- .consent-actions > .link-button {
- width: auto;
- }
- }
-
- </style>
+ <link rel="stylesheet" href="../../app/shared/style/global.css" />
+ <link rel="stylesheet" href="./mockups.css" />
</head>
<body>
- <main class="consent-page">
- <section class="consent-card" aria-labelledby="consent-title">
- <h1 id="consent-title">Authorize Acme Portal</h1>
- <p class="consent-note">
- Acme Portal is requesting access to your Acme account.
- </p>
-
- <div class="consent-account">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <circle cx="12" cy="12" r="10" />
- <circle cx="12" cy="10" r="3" />
- <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
- </svg>
- <span class="consent-account-body">
- <span class="consent-account-name">Demo User</span>
- <span class="consent-account-meta">demo@example.com</span>
- </span>
- <button class="consent-account-link" type="button">Not you?</button>
- </div>
-
- <p class="consent-section-title">This will allow Acme Portal to:</p>
- <ul class="consent-scopes">
- <li class="consent-scope">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
- </svg>
- <span>Sign you in with your Acme account.</span>
- </li>
- <li class="consent-scope">
+ <main class="status-page">
+ <section class="status-panel" aria-labelledby="consent-title">
+ <div class="stack">
+ <h1 id="consent-title">Authorize Acme Portal</h1>
+ <p class="note">
+ Acme Portal is requesting access to your Acme account.
+ </p>
+
+ <div class="mockup-account-strip u-cluster">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
+ <circle cx="12" cy="12" r="10" />
+ <circle cx="12" cy="10" r="3" />
+ <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
</svg>
- <span>See your name and username.</span>
- </li>
- <li class="consent-scope">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
- </svg>
- <span>See your email address.</span>
- </li>
- </ul>
-
- <p class="consent-footer">
- You can revoke access at any time from your account settings.
- </p>
-
- <div class="consent-actions">
- <button class="link-button" type="button">Deny</button>
- <button class="button" type="button">Allow access</button>
+ <span class="stack mockup-row-body">
+ <span class="mockup-row-title">Demo User</span>
+ <span class="mockup-row-meta">demo@example.com</span>
+ </span>
+ <button class="link" type="button">Not you?</button>
+ </div>
+
+ <h3>This will allow Acme Portal to:</h3>
+ <ul class="mockup-scope-list stack">
+ <li class="mockup-scope u-cluster">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>Sign you in with your Acme account.</span>
+ </li>
+ <li class="mockup-scope u-cluster">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>See your name and username.</span>
+ </li>
+ <li class="mockup-scope u-cluster">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>See your email address.</span>
+ </li>
+ </ul>
+
+ <p class="note">
+ You can revoke access at any time from your account settings.
+ </p>
+
+ <div class="mockup-actions">
+ <button class="link" type="button">Deny</button>
+ <button class="button button-primary" type="button">Allow access</button>
+ </div>
</div>
</section>
</main>
diff --git a/mockup/plain/dropdown-menu.html b/mockup/plain/dropdown-menu.html
@@ -4,54 +4,9 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Custom dropdown mockup</title>
- <link rel="stylesheet" href="./global.css" />
- <link rel="stylesheet" href="./select-menu.css" />
- <style>
- .dropdown-stack {
- display: grid;
- gap: 1rem;
- }
-
- .dropdown-grid {
- display: grid;
- grid-template-columns: minmax(0, 1fr);
- gap: 1rem;
- margin-top: 1rem;
- }
-
- .dropdown-actions {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem;
- margin-top: 1rem;
- }
-
- .dropdown-note {
- margin: 0;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.5;
- }
-
- .modal-body {
- display: grid;
- gap: 1rem;
- }
-
- .modal-body p {
- margin: 0;
- }
-
- .modal-spacer {
- min-height: 8rem;
- }
-
- @media (min-width: 40em) {
- .dropdown-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
- }
- </style>
+ <link rel="stylesheet" href="../../app/shared/style/global.css" />
+ <link rel="stylesheet" href="../../app/shared/component/select-menu.css" />
+ <link rel="stylesheet" href="./mockups.css" />
</head>
<body>
<main class="content">
@@ -60,12 +15,12 @@
<p>House-styled replacement for native realm and form selects.</p>
</div>
- <div class="dropdown-stack">
+ <div class="stack">
<section class="panel">
<h2>Realm selector</h2>
- <div class="dropdown-grid">
- <div class="realm-select">
- <span id="realm-short-label">Realm</span>
+ <div class="grid">
+ <div class="field">
+ <span class="field-label" id="realm-short-label">Realm</span>
<div class="select" data-select data-value="acme">
<button
class="select-trigger"
@@ -103,7 +58,7 @@
</div>
</div>
- <div class="form-field">
+ <div class="field">
<span class="field-label" id="long-select-label">Application</span>
<div class="select" data-select data-value="internal-app">
<button
@@ -242,8 +197,8 @@
<section class="panel">
<h2>Disabled state</h2>
- <div class="dropdown-grid">
- <div class="form-field">
+ <div class="grid">
+ <div class="field">
<span class="field-label" id="disabled-select-label">Client</span>
<div class="select" data-select data-value="locked">
<button
@@ -274,20 +229,20 @@
</div>
</div>
</div>
- <p class="dropdown-note">Disabled controls remain visible but cannot open a popup.</p>
+ <p class="note">Disabled controls remain visible but cannot open a popup.</p>
</div>
</section>
<section class="panel">
<h2>Modal placement</h2>
- <div class="dropdown-actions">
- <button class="button" type="button" data-dialog-open="dropdown-modal">Open client dialog</button>
+ <div class="action-row">
+ <button class="button button-primary" type="button" data-dialog-open="dropdown-modal">Open client dialog</button>
</div>
</section>
</div>
</main>
- <div id="dropdown-modal" class="modal-overlay" hidden>
+ <div id="dropdown-modal" class="overlay" hidden>
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="dropdown-modal-title">
<div class="modal-header">
<h2 id="dropdown-modal-title">Register a client</h2>
@@ -299,12 +254,12 @@
</button>
</div>
<div class="modal-body">
- <label class="form-field">
+ <label class="field">
<span class="field-label">Client ID</span>
<input class="field-control" type="text" value="example-app" />
</label>
<div class="modal-spacer" aria-hidden="true"></div>
- <div class="form-field">
+ <div class="field">
<span class="field-label" id="modal-select-label">Access mode</span>
<div class="select" data-select data-value="members">
<button
@@ -350,10 +305,10 @@
</div>
</div>
</div>
- <p>Escaping an open dropdown closes the dropdown before it closes the dialog.</p>
+ <p class="note">Escaping an open dropdown closes the dropdown before it closes the dialog.</p>
<div class="modal-actions">
- <button class="button-secondary" type="button" data-dialog-close>Cancel</button>
- <button class="button" type="button" data-dialog-close>Create client</button>
+ <button class="button button-secondary" type="button" data-dialog-close>Cancel</button>
+ <button class="button button-primary" type="button" data-dialog-close>Create client</button>
</div>
</div>
</div>
@@ -389,7 +344,7 @@
});
function visibleDialogs() {
- return Array.from(document.querySelectorAll('.modal-overlay:not([hidden])'));
+ return Array.from(document.querySelectorAll('.overlay:not([hidden])'));
}
document.querySelectorAll('[data-dialog-open]').forEach((button) => {
@@ -403,13 +358,13 @@
document.querySelectorAll('[data-dialog-close]').forEach((button) => {
button.addEventListener('click', () => {
- const dialog = button.closest('.modal-overlay');
+ const dialog = button.closest('.overlay');
if (dialog) dialog.hidden = true;
});
});
document.addEventListener('click', (event) => {
- if (event.target.classList.contains('modal-overlay')) event.target.hidden = true;
+ if (event.target.classList.contains('overlay')) event.target.hidden = true;
});
window.addEventListener('keydown', (event) => {
diff --git a/mockup/plain/error-pages.html b/mockup/plain/error-pages.html
@@ -4,159 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Error pages mockup</title>
- <link rel="stylesheet" href="./global.css" />
- <style>
- .status-page {
- display: grid;
- place-items: center;
- min-height: 100vh;
- min-height: 100svh;
- padding: env(safe-area-inset-top) env(safe-area-inset-right)
- calc(1rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
- background-color: var(--surface);
- }
-
- .status-panel,
- .login-card {
- width: min(calc(100% - 2rem), 28rem);
- padding: 2rem;
- background: var(--surface);
- }
-
- .status-panel {
- position: relative;
- }
-
- .login-card {
- width: min(calc(100% - 2rem), 24rem);
- }
-
- .status-panel h1,
- .login-card h1 {
- margin: 0 0 1rem;
- font-size: 1.5rem;
- font-weight: 400;
- line-height: 1.3;
- }
-
- .status-panel h1 {
- padding-right: 3rem;
- }
-
- .status-icon {
- position: absolute;
- top: 2rem;
- right: 2rem;
- width: 2rem;
- height: 2rem;
- color: currentColor;
- }
-
- .spinner {
- position: absolute;
- top: 2rem;
- right: 2rem;
- width: 2rem;
- height: 2rem;
- border: 0.1875rem solid var(--skeleton);
- border-top-color: var(--text);
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
-
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
-
- .status-note,
- .login-note {
- margin: 0;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .status-error {
- margin: 0;
- color: var(--danger);
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .login-note {
- margin-bottom: 0.5rem;
- }
-
- .status-actions {
- display: grid;
- gap: 1rem;
- margin-top: 1.5rem;
- }
-
- .status-actions > .button,
- .status-actions > .button-secondary,
- .status-actions > .button-danger {
- justify-content: center;
- min-height: 2.75rem;
- text-align: center;
- }
-
- .field {
- display: grid;
- gap: 0.125rem;
- padding: 0.75rem 0;
- border-bottom: 1pt solid var(--field-line);
- }
-
- .field-label {
- color: var(--muted);
- font-size: 0.75rem;
- line-height: 1.4;
- }
-
- .field-value {
- font-size: 1rem;
- line-height: 1.5;
- }
-
- @media (min-width: 35em) {
- .status-page {
- background-color: var(--page);
- background-image: var(--hex);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
-
- .status-panel,
- .login-card {
- box-shadow: var(--shadow);
- }
-
- .status-actions {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- gap: 1rem;
- }
-
- .status-actions > .button,
- .status-actions > .button-secondary,
- .status-actions > .button-danger {
- flex: 0 auto;
- width: auto;
- }
- }
-
- @media (prefers-reduced-motion: reduce) {
- .spinner {
- animation: none;
- }
- }
-
- </style>
+ <link rel="stylesheet" href="../../app/shared/style/global.css" />
+ <link rel="stylesheet" href="./mockups.css" />
</head>
<body>
<div class="mockup-controls" aria-label="Mockup state">
@@ -175,34 +24,36 @@
<section class="status-page" data-view="login-error">
<div class="status-panel">
- <svg class="status-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <svg class="status-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
<h1>Sign-in unavailable</h1>
- <p class="status-error" role="alert">The sign-in service could not be reached. Try again in a moment.</p>
+ <p class="alert" role="alert">The sign-in service could not be reached. Try again in a moment.</p>
<div class="status-actions">
- <a class="button" href="#">Try again</a>
+ <a class="button button-primary" href="#">Try again</a>
</div>
</div>
</section>
<section class="status-page" data-view="login-inline" hidden>
- <div class="login-card">
- <h1>Sign in</h1>
- <p class="login-note">Continue to Acme.</p>
- <div class="field">
- <span class="field-label">Username</span>
- <span class="field-value">demo</span>
- </div>
- <div class="field">
- <span class="field-label">Password</span>
- <span class="field-value">••••••••</span>
- </div>
- <p class="status-error" role="alert">The username or password is incorrect.</p>
- <div class="status-actions">
- <button class="button" type="button">Sign in</button>
+ <div class="status-panel">
+ <div class="stack">
+ <h1>Sign in</h1>
+ <p class="note">Continue to Acme.</p>
+ <div class="field">
+ <span class="field-label">Username</span>
+ <span class="field-control">demo</span>
+ </div>
+ <div class="field">
+ <span class="field-label">Password</span>
+ <span class="field-control">••••••••</span>
+ </div>
+ <p class="alert" role="alert">The username or password is incorrect.</p>
+ <div class="status-actions">
+ <button class="button button-primary" type="button">Sign in</button>
+ </div>
</div>
</div>
</section>
@@ -211,21 +62,21 @@
<div class="status-panel">
<div class="spinner" aria-hidden="true"></div>
<h1>Completing sign-in</h1>
- <p class="status-note">Establishing the account session.</p>
+ <p class="note">Establishing the account session.</p>
</div>
</section>
<section class="status-page" data-view="account-error" hidden>
<div class="status-panel">
- <svg class="status-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <svg class="status-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
<h1>Sign-in failed</h1>
- <p class="status-error" role="alert">The sign-in request is no longer valid.</p>
+ <p class="alert" role="alert">The sign-in request is no longer valid.</p>
<div class="status-actions">
- <a class="button" href="#">Return to account</a>
+ <a class="button button-primary" href="#">Return to account</a>
</div>
</div>
</section>
@@ -234,21 +85,21 @@
<div class="status-panel">
<div class="spinner" aria-hidden="true"></div>
<h1>Completing sign-in</h1>
- <p class="status-note">Establishing the administrative session.</p>
+ <p class="note">Establishing the administrative session.</p>
</div>
</section>
<section class="status-page" data-view="admin-error" hidden>
<div class="status-panel">
- <svg class="status-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <svg class="status-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
<h1>Sign-in failed</h1>
- <p class="status-error" role="alert">The sign-in request is no longer valid.</p>
+ <p class="alert" role="alert">The sign-in request is no longer valid.</p>
<div class="status-actions">
- <a class="button" href="#">Return to administration</a>
+ <a class="button button-primary" href="#">Return to administration</a>
</div>
</div>
</section>
diff --git a/mockup/plain/login.html b/mockup/plain/login.html
@@ -4,374 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Login mockup</title>
- <link rel="stylesheet" href="./global.css" />
- <style>
- .auth-page {
- --auth-surface: #fff;
- display: grid;
- place-items: center;
- min-height: 100vh;
- min-height: 100svh;
- padding: env(safe-area-inset-top) env(safe-area-inset-right)
- calc(1rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
- background: var(--auth-surface);
- }
-
- .auth-card,
- .auth-status-panel {
- width: min(calc(100% - 2rem), 24rem);
- padding: 2rem;
- border-radius: 0;
- background: var(--auth-surface);
- color: var(--text);
- }
-
- .auth-card-consent,
- .auth-status-panel {
- width: min(calc(100% - 2rem), 28rem);
- }
-
- .auth-card h1,
- .auth-status-panel h1 {
- margin: 0 0 1rem;
- font-size: 1.5rem;
- font-weight: 400;
- line-height: 1.3;
- }
-
- .auth-card-consent h1 {
- margin-bottom: 0.5rem;
- }
-
- .auth-realm {
- margin: 0 0 0.375rem;
- color: var(--muted);
- font-size: 0.75rem;
- font-weight: 600;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- }
-
- .auth-note {
- margin: 0 0 1rem;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .auth-card-consent .auth-note {
- margin-bottom: 0;
- }
-
- .auth-field {
- position: relative;
- padding-top: 1rem;
- }
-
- .auth-input {
- width: 100%;
- padding: 0.5rem 0;
- border: 0;
- border-bottom: 1pt solid var(--field-line);
- border-radius: 0;
- background: transparent;
- color: var(--text);
- font: inherit;
- font-size: 1rem;
- line-height: 1.5;
- outline: none;
- }
-
- .auth-input:focus {
- border-bottom-color: var(--accent);
- }
-
- .auth-field label {
- position: absolute;
- top: 1.5em;
- left: 0;
- color: var(--muted);
- font-size: 1rem;
- line-height: 1.5;
- pointer-events: none;
- transform-origin: left top;
- transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, opacity 0.15s ease;
- }
-
- .auth-input:focus + label,
- .auth-input:not(:placeholder-shown) + label {
- top: 0;
- color: var(--text);
- font-size: 0.85em;
- font-weight: 500;
- opacity: 0.8;
- }
-
- .auth-identifier {
- margin: 0 0 0.5rem;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.5;
- }
-
- .auth-choice {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- min-height: 2.75rem;
- margin-top: 1rem;
- font-size: 0.875rem;
- line-height: 1.5;
- cursor: pointer;
- touch-action: manipulation;
- }
-
- .auth-choice input {
- width: 1rem;
- height: 1rem;
- accent-color: var(--accent);
- }
-
- .auth-accounts {
- display: grid;
- gap: 0.5rem;
- margin-top: 1rem;
- }
-
- .auth-account {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: center;
- gap: 0.125rem;
- width: 100%;
- min-height: 2.75rem;
- padding: 0.75rem 0;
- border: 0;
- border-bottom: 1pt solid var(--field-line);
- border-radius: 0;
- background: none;
- color: inherit;
- font: inherit;
- text-align: left;
- cursor: pointer;
- }
-
- .auth-account:hover,
- .auth-account:focus-visible {
- border-bottom-color: var(--accent);
- }
-
- .auth-account-name {
- font-size: 1rem;
- line-height: 1.5;
- }
-
- .auth-account-username {
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.5;
- }
-
- .auth-error {
- margin: 1rem 0 0;
- color: var(--danger);
- font-size: 0.875rem;
- line-height: 1.6;
- }
-
- .auth-actions {
- display: grid;
- gap: 1rem;
- margin-top: 1.5rem;
- }
-
- .auth-actions > .button,
- .auth-actions > .auth-link {
- justify-content: center;
- min-height: 2.75rem;
- text-align: center;
- }
-
- .auth-back {
- margin-right: auto;
- }
-
- .auth-link {
- display: inline-flex;
- align-items: center;
- padding: 0.75rem 1rem;
- border: 0;
- background: none;
- color: var(--accent-text);
- font: inherit;
- font-size: 1rem;
- cursor: pointer;
- touch-action: manipulation;
- }
-
- .auth-link:hover {
- color: var(--accent-text-hover);
- }
-
- .auth-link:active {
- color: var(--accent-text-active);
- }
-
- .button:disabled {
- opacity: 0.5;
- cursor: default;
- }
-
- .auth-spinner {
- width: 2rem;
- height: 2rem;
- margin-bottom: 1rem;
- border: 0.1875rem solid var(--skeleton);
- border-top-color: var(--text);
- border-radius: 50%;
- animation: auth-spin 1s linear infinite;
- }
-
- @keyframes auth-spin {
- to {
- transform: rotate(360deg);
- }
- }
-
- .auth-status-icon {
- width: 2rem;
- height: 2rem;
- margin-bottom: 1rem;
- }
-
- .auth-consent-account {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- margin-top: 1.5rem;
- padding: 0.75rem;
- background: var(--row);
- }
-
- .auth-consent-account svg {
- flex: none;
- width: 1.5rem;
- height: 1.5rem;
- }
-
- .auth-consent-account-body {
- display: grid;
- gap: 0.125rem;
- min-width: 0;
- }
-
- .auth-consent-account-name {
- font-size: 0.875rem;
- font-weight: 500;
- line-height: 1.4;
- }
-
- .auth-consent-account-meta {
- overflow-wrap: anywhere;
- color: var(--muted);
- font-size: 0.75rem;
- line-height: 1.4;
- }
-
- .auth-consent-account .auth-link {
- flex: none;
- margin-left: auto;
- font-size: 0.8125rem;
- }
-
- .auth-consent-title {
- margin: 1.5rem 0 0;
- font-size: 0.875rem;
- font-weight: 500;
- line-height: 1.5;
- }
-
- .auth-consent-scopes {
- display: grid;
- gap: 0.5rem;
- margin: 0.75rem 0 0;
- padding: 0;
- list-style: none;
- }
-
- .auth-consent-scope {
- display: flex;
- align-items: flex-start;
- gap: 0.5rem;
- color: var(--muted);
- font-size: 0.875rem;
- line-height: 1.5;
- }
-
- .auth-consent-scope svg {
- flex: none;
- width: 1rem;
- height: 1rem;
- margin-top: 0.125rem;
- }
-
- .auth-consent-footer {
- margin: 1.5rem 0 0;
- color: var(--muted);
- font-size: 0.8125rem;
- line-height: 1.6;
- }
-
- .mockup-controls {
- max-height: calc(100vh - 2rem);
- overflow-y: auto;
- }
-
- @media (min-width: 35em) {
- .auth-page {
- background-color: var(--auth-surface);
- background-image: var(--hex);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
-
- .auth-card,
- .auth-status-panel {
- box-shadow: var(--shadow);
- }
-
- .auth-actions {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- gap: 1.5rem;
- }
-
- .auth-actions > .button,
- .auth-actions > .auth-link {
- width: auto;
- min-height: 2.75rem;
- }
- }
-
- @media (prefers-reduced-motion: reduce) {
- .auth-spinner {
- animation: none;
- }
- }
-
- @media (prefers-color-scheme: dark) {
- :root:not([data-theme]) .auth-page {
- --auth-surface: #222;
- }
- }
-
- :root[data-theme="dark"] .auth-page {
- --auth-surface: #222;
- }
- </style>
+ <link rel="stylesheet" href="../../app/shared/style/global.css" />
+ <link rel="stylesheet" href="./mockups.css" />
</head>
<body>
<div class="mockup-controls" aria-label="Mockup state">
@@ -393,238 +27,248 @@
</div>
<main>
- <section class="auth-page" data-view="accounts" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="accounts" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-note">Choose an account to continue.</p>
- <div class="auth-accounts">
- <button class="auth-account" type="button">
- <span class="auth-account-name">Alice</span>
- <span class="auth-account-username">alice@acme.test</span>
- </button>
- <button class="auth-account" type="button">
- <span class="auth-account-name">IT Admin</span>
- <span class="auth-account-username">it@acme.test</span>
- </button>
- </div>
- <div class="auth-actions">
- <button class="auth-link" type="button">Different account</button>
+ <div class="stack">
+ <p class="note">Choose an account to continue.</p>
+ <div class="stack mockup-choices">
+ <button class="mockup-choice" type="button">
+ <span class="mockup-choice-name">Alice</span>
+ <span class="mockup-choice-meta">alice@acme.test</span>
+ </button>
+ <button class="mockup-choice" type="button">
+ <span class="mockup-choice-name">IT Admin</span>
+ <span class="mockup-choice-meta">it@acme.test</span>
+ </button>
+ </div>
+ <div class="mockup-actions">
+ <button class="link" type="button">Different account</button>
+ </div>
</div>
</div>
</section>
- <section class="auth-page" data-view="identifier">
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="identifier">
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-note">Continue to Acme Portal.</p>
- <form>
- <div class="auth-field">
- <input
- class="auth-input"
- id="identifier"
- type="text"
- value="alice@acme.test"
- placeholder=" "
- autocomplete="username"
- />
- <label for="identifier">Email or username</label>
- </div>
- <div class="auth-actions">
- <button class="auth-link auth-back" type="button">Back to accounts</button>
- <button class="button" type="submit">Next</button>
- </div>
- </form>
+ <div class="stack">
+ <p class="note">Continue to Acme Portal.</p>
+ <form class="stack">
+ <div class="field">
+ <label class="field-label" for="identifier">Email or username</label>
+ <input
+ class="field-control"
+ id="identifier"
+ type="text"
+ value="alice@acme.test"
+ autocomplete="username"
+ />
+ </div>
+ <div class="mockup-actions">
+ <button class="link mockup-back" type="button">Back to accounts</button>
+ <button class="button button-primary" type="submit">Next</button>
+ </div>
+ </form>
+ </div>
</div>
</section>
- <section class="auth-page" data-view="password" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="password" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-identifier">alice@acme.test</p>
- <form>
- <div class="auth-field">
- <input
- class="auth-input"
- id="password"
- type="password"
- value="demo-password"
- placeholder=" "
- autocomplete="current-password"
- />
- <label for="password">Password</label>
- </div>
- <label class="auth-choice">
- <input type="checkbox" checked />
- <span>Keep me signed in</span>
- </label>
- <div class="auth-actions">
- <button class="auth-link auth-back" type="button">Back</button>
- <button class="button" type="submit">Sign in</button>
- </div>
- </form>
+ <div class="stack">
+ <p class="note">alice@acme.test</p>
+ <form class="stack">
+ <div class="field">
+ <label class="field-label" for="password">Password</label>
+ <input
+ class="field-control"
+ id="password"
+ type="password"
+ value="demo-password"
+ autocomplete="current-password"
+ />
+ </div>
+ <label class="checkbox">
+ <input type="checkbox" checked />
+ <span>Keep me signed in</span>
+ </label>
+ <div class="mockup-actions">
+ <button class="link mockup-back" type="button">Back</button>
+ <button class="button button-primary" type="submit">Sign in</button>
+ </div>
+ </form>
+ </div>
</div>
</section>
- <section class="auth-page" data-view="password-error" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="password-error" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-identifier">alice@acme.test</p>
- <form>
- <div class="auth-field">
- <input
- class="auth-input"
- id="password-error"
- type="password"
- value="demo-password"
- placeholder=" "
- autocomplete="current-password"
- aria-invalid="true"
- aria-describedby="password-error-message"
- />
- <label for="password-error">Password</label>
- </div>
- <label class="auth-choice">
- <input type="checkbox" checked />
- <span>Keep me signed in</span>
- </label>
- <p class="auth-error" id="password-error-message" role="alert">
- The username or password is incorrect.
- </p>
- <div class="auth-actions">
- <button class="auth-link auth-back" type="button">Back</button>
- <button class="button" type="submit">Sign in</button>
- </div>
- </form>
+ <div class="stack">
+ <p class="note">alice@acme.test</p>
+ <form class="stack">
+ <div class="field">
+ <input
+ class="field-control"
+ id="password-error"
+ type="password"
+ value="demo-password"
+ autocomplete="current-password"
+ aria-invalid="true"
+ aria-describedby="password-error-message"
+ />
+ <label class="field-label" for="password-error">Password</label>
+ </div>
+ <label class="checkbox">
+ <input type="checkbox" checked />
+ <span>Keep me signed in</span>
+ </label>
+ <p class="alert" id="password-error-message" role="alert">
+ The username or password is incorrect.
+ </p>
+ <div class="mockup-actions">
+ <button class="link mockup-back" type="button">Back</button>
+ <button class="button button-primary" type="submit">Sign in</button>
+ </div>
+ </form>
+ </div>
</div>
</section>
- <section class="auth-page" data-view="reauth" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="reauth" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-note">Confirm your password to continue.</p>
- <p class="auth-identifier">alice@acme.test</p>
- <form>
- <div class="auth-field">
- <input
- class="auth-input"
- id="reauth-password"
- type="password"
- value="demo-password"
- placeholder=" "
- autocomplete="current-password"
- />
- <label for="reauth-password">Password</label>
- </div>
- <label class="auth-choice">
- <input type="checkbox" checked />
- <span>Keep me signed in</span>
- </label>
- <div class="auth-actions">
- <button class="auth-link auth-back" type="button">Back</button>
- <button class="button" type="submit">Sign in</button>
- </div>
- </form>
+ <div class="stack">
+ <p class="note">Confirm your password to continue.</p>
+ <p class="note">alice@acme.test</p>
+ <form class="stack">
+ <div class="field">
+ <input
+ class="field-control"
+ id="reauth-password"
+ type="password"
+ value="demo-password"
+ autocomplete="current-password"
+ />
+ <label class="field-label" for="reauth-password">Password</label>
+ </div>
+ <label class="checkbox">
+ <input type="checkbox" checked />
+ <span>Keep me signed in</span>
+ </label>
+ <div class="mockup-actions">
+ <button class="link mockup-back" type="button">Back</button>
+ <button class="button button-primary" type="submit">Sign in</button>
+ </div>
+ </form>
+ </div>
</div>
</section>
- <section class="auth-page" data-view="oidc" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="oidc" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Sign in</h1>
- <p class="auth-identifier">alice@acme.test</p>
- <p class="auth-note">This account signs in with Example SSO.</p>
- <div class="auth-actions">
- <button class="auth-link auth-back" type="button">Back</button>
- <button class="button" type="button" disabled>Continue</button>
+ <div class="stack">
+ <p class="note">alice@acme.test</p>
+ <p class="note">This account signs in with Example SSO.</p>
+ <div class="mockup-actions">
+ <button class="link mockup-back" type="button">Back</button>
+ <button class="button button-primary" type="button" disabled>Continue</button>
+ </div>
</div>
</div>
</section>
- <section class="auth-page" data-view="consent" hidden>
- <div class="auth-card auth-card-consent" aria-labelledby="consent-title">
- <h1 id="consent-title">Authorize Acme Portal</h1>
- <p class="auth-note">Acme Portal is requesting access to your Acme account.</p>
-
- <div class="auth-consent-account">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <circle cx="12" cy="12" r="10" />
- <circle cx="12" cy="10" r="3" />
- <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
- </svg>
- <span class="auth-consent-account-body">
- <span class="auth-consent-account-name">Alice</span>
- <span class="auth-consent-account-meta">alice@acme.test</span>
- </span>
- <button class="auth-link" type="button">Not you?</button>
- </div>
-
- <p class="auth-consent-title">This will allow Acme Portal to:</p>
- <ul class="auth-consent-scopes">
- <li class="auth-consent-scope">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
- </svg>
- <span>Sign you in with your Acme account.</span>
- </li>
- <li class="auth-consent-scope">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
- </svg>
- <span>See your name and username.</span>
- </li>
- <li class="auth-consent-scope">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="m5 12 5 5L20 7" />
+ <section class="status-page" data-view="consent" hidden>
+ <div class="status-panel" aria-labelledby="consent-title">
+ <div class="stack">
+ <h1 id="consent-title">Authorize Acme Portal</h1>
+ <p class="note">Acme Portal is requesting access to your Acme account.</p>
+
+ <div class="mockup-account-strip u-cluster">
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <circle cx="12" cy="12" r="10" />
+ <circle cx="12" cy="10" r="3" />
+ <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
</svg>
- <span>See your email address.</span>
- </li>
- </ul>
+ <span class="stack mockup-row-body">
+ <span class="mockup-row-title">Alice</span>
+ <span class="mockup-row-meta">alice@acme.test</span>
+ </span>
+ <button class="link" type="button">Not you?</button>
+ </div>
- <p class="auth-consent-footer">
- You can revoke access at any time from your account settings.
- </p>
+ <h3>This will allow Acme Portal to:</h3>
+ <ul class="mockup-scope-list stack">
+ <li class="mockup-scope u-cluster">
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>Sign you in with your Acme account.</span>
+ </li>
+ <li class="mockup-scope u-cluster">
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>See your name and username.</span>
+ </li>
+ <li class="mockup-scope u-cluster">
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="m5 12 5 5L20 7" />
+ </svg>
+ <span>See your email address.</span>
+ </li>
+ </ul>
+
+ <p class="note">
+ You can revoke access at any time from your account settings.
+ </p>
- <div class="auth-actions">
- <button class="auth-link" type="button">Deny</button>
- <button class="button" type="button">Allow access</button>
+ <div class="mockup-actions">
+ <button class="link" type="button">Deny</button>
+ <button class="button button-primary" type="button">Allow access</button>
+ </div>
</div>
</div>
</section>
- <section class="auth-page" data-view="done" hidden>
- <div class="auth-card">
- <p class="auth-realm">Acme account</p>
+ <section class="status-page" data-view="done" hidden>
+ <div class="status-panel">
+ <p class="field-label mockup-eyebrow">Acme account</p>
<h1>Signed in</h1>
- <p class="auth-note">Signed in as Alice.</p>
+ <p class="note">Signed in as Alice.</p>
</div>
</section>
- <section class="auth-page" data-view="loading" hidden aria-busy="true">
- <div class="auth-card">
- <div class="auth-spinner" aria-hidden="true"></div>
+ <section class="status-page" data-view="loading" hidden aria-busy="true">
+ <div class="status-panel">
+ <div class="spinner" aria-hidden="true"></div>
<h1>Signing in</h1>
- <p class="auth-note">Loading your sign-in options.</p>
+ <p class="note">Loading your sign-in options.</p>
</div>
</section>
- <section class="auth-page" data-view="unavailable" hidden>
- <div class="auth-status-panel">
- <svg class="auth-status-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <section class="status-page" data-view="unavailable" hidden>
+ <div class="status-panel">
+ <svg class="status-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
<h1>Sign-in unavailable</h1>
- <p class="auth-error" role="alert">
+ <p class="alert" role="alert">
The sign-in service could not be reached. Try again in a moment.
</p>
- <div class="auth-actions">
- <a class="button" href="#">Try again</a>
+ <div class="status-actions">
+ <a class="button button-primary" href="#">Try again</a>
</div>
</div>
</section>
diff --git a/mockup/plain/mockups.css b/mockup/plain/mockups.css
@@ -360,6 +360,255 @@
padding: 0;
}
+ /* auth mockups: eyebrow line above the panel title */
+ .mockup-eyebrow {
+ margin: 0 0 var(--space-1);
+ font-weight: 600;
+ letter-spacing: .08em;
+ text-transform: uppercase;
+ }
+
+ /* auth mockups: account chooser list */
+ .mockup-choices {
+ --stack-gap: var(--space-2);
+ }
+
+ .mockup-choice {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: center;
+ gap: .125rem;
+ width: 100%;
+ min-height: var(--control-h);
+ padding: var(--space-3) 0;
+ border: 0;
+ border-bottom: 1pt solid var(--field-line);
+ background: none;
+ color: inherit;
+ font: inherit;
+ text-align: left;
+ cursor: pointer;
+ }
+
+ .mockup-choice:hover,
+ .mockup-choice:focus-visible {
+ border-bottom-color: var(--accent);
+ }
+
+ .mockup-choice-name {
+ font-size: var(--font-md);
+ line-height: var(--lh-base);
+ }
+
+ .mockup-choice-meta {
+ color: var(--muted);
+ font-size: var(--font-base);
+ line-height: var(--lh-base);
+ }
+
+ /* auth mockups: form actions, stacked by default, right-aligned row once wide */
+ .mockup-actions {
+ display: grid;
+ gap: var(--space-4);
+ }
+
+ .mockup-back {
+ margin-inline-end: auto;
+ }
+
+ @media (min-width: 35em) {
+ .mockup-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: var(--space-6);
+ }
+ }
+
+ /* auth mockups: account strip and scope list on the consent panel */
+ .mockup-account-strip {
+ --cluster-gap: var(--space-3);
+ min-width: 0;
+ padding: var(--space-3);
+ background: var(--line-strong);
+ }
+
+ .mockup-account-strip svg {
+ flex: none;
+ width: 1.5rem;
+ height: 1.5rem;
+ }
+
+ .mockup-account-strip > :last-child {
+ flex: none;
+ margin-inline-start: auto;
+ }
+
+ .mockup-row-body {
+ --stack-gap: var(--space-1);
+ }
+
+ .mockup-row-title {
+ font-size: var(--font-base);
+ font-weight: 500;
+ line-height: var(--lh-snug);
+ }
+
+ .mockup-row-meta {
+ overflow-wrap: anywhere;
+ color: var(--muted);
+ font-size: var(--font-xs);
+ line-height: var(--lh-snug);
+ }
+
+ .mockup-scope-list {
+ --stack-gap: var(--space-2);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .mockup-scope {
+ --cluster-gap: var(--space-2);
+ align-items: flex-start;
+ color: var(--muted);
+ font-size: var(--font-base);
+ line-height: var(--lh-base);
+ }
+
+ .mockup-scope svg {
+ flex: none;
+ width: 1rem;
+ height: 1rem;
+ margin-block-start: .125rem;
+ }
+
+ /* account mockup: capped reading column for stacked pages */
+ .reading-column {
+ width: 100%;
+ max-width: 56rem;
+ margin-inline: auto;
+ }
+
+ /* account mockup: manage rows (framework .card supplies the surface) */
+ .summary-row {
+ display: grid;
+ grid-template-columns: var(--space-6) minmax(0, 1fr);
+ align-items: center;
+ gap: var(--space-4);
+ color: inherit;
+ text-decoration: none;
+ cursor: pointer;
+ user-select: none;
+ }
+
+ .summary-row:hover,
+ .summary-row:active {
+ background: var(--line-strong);
+ }
+
+ .summary-row svg {
+ width: var(--space-5);
+ height: var(--space-5);
+ }
+
+ .summary-body {
+ display: grid;
+ gap: var(--space-1);
+ min-width: 0;
+ }
+
+ .summary-title {
+ font-size: var(--font-md);
+ font-weight: 500;
+ line-height: var(--lh-snug);
+ }
+
+ .summary-meta {
+ color: var(--muted);
+ font-size: var(--font-sm);
+ line-height: var(--lh-snug);
+ }
+
+ .summary-arrow {
+ display: none;
+ color: var(--muted);
+ font-size: var(--font-xl);
+ line-height: 1;
+ }
+
+ /* account mockup: panel heading with leading icon */
+ .panel-heading {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ margin-block-end: var(--space-4);
+ }
+
+ .panel-heading svg {
+ flex: none;
+ width: var(--space-5);
+ height: var(--space-5);
+ }
+
+ .panel-heading h2 {
+ margin: 0;
+ }
+
+ /* account mockup: device surface rows inside panels */
+ .surface-row {
+ display: grid;
+ grid-template-columns: var(--space-6) minmax(0, 1fr);
+ align-items: center;
+ gap: var(--space-4);
+ padding: var(--space-4) var(--space-3);
+ background: var(--line);
+ }
+
+ .surface-row svg {
+ width: var(--space-5);
+ height: var(--space-5);
+ }
+
+ .surface-title {
+ display: block;
+ font-size: var(--font-md);
+ font-weight: 500;
+ line-height: var(--lh-snug);
+ }
+
+ .surface-meta {
+ display: block;
+ color: var(--muted);
+ font-size: var(--font-sm);
+ line-height: var(--lh-snug);
+ }
+
+ .surface-state {
+ grid-column: 2;
+ }
+
+ @media (min-width: 40em) {
+ .summary-row,
+ .surface-row {
+ grid-template-columns: var(--space-6) minmax(0, 1fr) auto;
+ }
+
+ .summary-arrow {
+ display: inline;
+ }
+
+ .surface-state {
+ grid-column: 3;
+ }
+ }
+
+ /* dropdown mockup: filler that makes the dialog scroll in the demo */
+ .modal-spacer {
+ min-height: 8rem;
+ }
+
@media (pointer: coarse) {
.user-menu summary {
min-width: var(--control-h);