Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frame.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@
},
{
"path": "frame/frame.mjs",
"sha256": "208994058dcc6c70a91d590c345cb4956eda3532096f298f0a21f809f11672c1"
"sha256": "6f01e54838e3593be14ad473467424faf83dfc4c543ea0f9d86655c549cc1b0b"
},
{
"path": "frame/panels.css",
"sha256": "9b6bcd85303139ddaac9b2cbde7b7d3ef61d34da336874774073124b2560d8ce"
"sha256": "81fbc8fb7b2b010dc55b6d4f8101f7e64fa095edb071b5bb0c699d02a3b26faf"
},
{
"path": "frame/panels.mjs",
"sha256": "f2db1617f0a6d14e4447c54bafc7aeb45c7cb152b0f5a0b27b5615f8ce8d7b92"
"sha256": "ea95d0d07417a475023f550f0b74efa3d652c922f0baec6263f1320c3a8b97ab"
},
{
"path": "frame/publish.mjs",
Expand Down Expand Up @@ -171,7 +171,7 @@
},
{
"path": "identity/test.mjs",
"sha256": "21cb6924014c80f378abf5d07720a203c7e62aa99ffd38e05f6d8376153317f9"
"sha256": "250d5f329fb73cc756f3fc16f7adf7951199dbd0d3737b1629d53e82c2111d40"
},
{
"path": "lighthouserc.json",
Expand Down
4 changes: 2 additions & 2 deletions frame/frame.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const markup = (e) => `
<span id="bar-status" class="sr" aria-live="polite"></span>
<button id="theme" class="ghost icon" type="button" popovertarget="theme-panel" aria-label="Theme" title="Theme"><svg class="moon" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z" /></svg><svg class="sun" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="4" /><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" /></svg><svg class="photo" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><rect x="3" y="4.5" width="18" height="15" rx="2.5" /><circle cx="9" cy="10" r="1.75" /><path d="m3.5 17 5-4.5 3.5 3 3-2.5 5.5 4.5" /></svg></button>
<button id="fullscreen" class="ghost icon" type="button" aria-label="Enter full screen" title="Full screen"><svg class="expand" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15" /></svg><svg class="shrink" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4M20 9h-3.5A1.5 1.5 0 0 1 15 7.5V4M15 20v-3.5a1.5 1.5 0 0 1 1.5-1.5H20M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20" /></svg></button>
<button id="account" class="ghost icon" type="button" popovertarget="account-panel" aria-label="Prism id" title="Prism id"><svg class="person" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><circle cx="12" cy="8" r="3.5" /><path d="M5 20c0-3.6 3.1-6 7-6s7 2.4 7 6" /></svg></button>
<button id="account" class="ghost icon" type="button" popovertarget="account-panel" aria-label="Prism ID" title="Prism ID"><svg class="person" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><circle cx="12" cy="8" r="3.5" /><path d="M5 20c0-3.6 3.1-6 7-6s7 2.4 7 6" /></svg></button>
</div>
</div></div>
<div id="trust-panel" class="trust-panel" popover aria-labelledby="trust-title">
Expand Down Expand Up @@ -865,7 +865,7 @@ class PrismFrame extends Element {
}
const paint = () => {
const saved = accountChannel.session;
const label = "Prism id";
const label = "Prism ID";
button.classList.toggle("signed-in", Boolean(saved));
button.setAttribute("aria-label", label);
button.title = label;
Expand Down
64 changes: 26 additions & 38 deletions frame/panels.css
Original file line number Diff line number Diff line change
Expand Up @@ -410,24 +410,7 @@
* the golden ratio (1.618): the width is 1.618 x 16rem, the padding 1.618rem,
* the title 1.618 x the body text, the gaps 0.618, 1 and 1.618rem, and the
* backdrop dims by 0.382. Outside, Escape or the close button dismisses it. */
.account-panel {
position: fixed;
inset: 0;
width: min(25.888rem, 100vw - 2rem);
height: fit-content;
max-height: calc(100dvh - 2rem);
margin: auto;
padding: 1.618rem;
overflow: auto;
border: var(--border-width) solid var(--border);
border-radius: calc(var(--radius) * 1.618);
background: var(--popover);
color: var(--popover-foreground);
box-shadow: var(--shadow-overlay);
font-size: var(--text-14);
line-height: 1.5;
transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), overlay var(--duration) allow-discrete, display var(--duration) allow-discrete;
}
.account-panel { position: fixed; inset: 0; width: min(25.888rem, 100vw - 2rem); height: fit-content; max-height: calc(100dvh - 2rem); margin: auto; padding: 1.618rem; overflow: auto; border: var(--border-width) solid var(--border); border-radius: calc(var(--radius) * 1.618); background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-overlay); font-size: var(--text-14); line-height: 1.5; transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), overlay var(--duration) allow-discrete, display var(--duration) allow-discrete; }
.account-panel:not(:popover-open) { opacity: 0; transform: scale(0.98); }
@starting-style {
.account-panel:popover-open { opacity: 0; transform: scale(0.98); }
Expand All @@ -439,35 +422,40 @@
}
:host([dark]) .account-panel { box-shadow: none; border-color: var(--border-strong); }
.account-panel p, .account-panel h2 { margin: 0; }
.account-close {
position: absolute;
top: 1rem;
right: 1rem;
display: grid;
place-items: center;
width: 2rem;
height: 2rem;
min-height: 0;
padding: 0;
border: var(--border-width) solid var(--border);
border-radius: var(--radius-control);
background: none;
color: var(--muted-foreground);
cursor: pointer;
}
.account-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2rem; height: 2rem; min-height: 0; padding: 0; border: 0; border-radius: var(--radius-control); background: none; color: var(--muted-foreground); cursor: pointer; }
.account-close:hover { background: var(--accent); color: var(--foreground); }
.account-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-title { padding-right: 2.618rem; font-family: var(--font-display); font-weight: 600; font-size: 1.618rem; line-height: 1.236; letter-spacing: var(--tracking-display); }
.account-sub { margin: 0.618rem 0 1.618rem !important; color: var(--muted-foreground); font-size: 1rem; }
.account-title { padding-right: 2.618rem; font-family: var(--font-display); font-weight: 600; font-size: 1.382rem; line-height: 1.236; letter-spacing: var(--tracking-display); }
.account-sub { margin: 0.382rem 0 1rem !important; color: var(--muted-foreground); font-size: var(--text-14); }
.account-in { display: grid; gap: 0.382rem; }
.account-id { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: 0.618rem !important; padding: 0.618rem 1rem; border: var(--border-width) solid var(--border); border-radius: var(--radius-control); background: var(--background); }
.account-id code { font-family: var(--font-mono); color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-qr { display: block; width: min(100%, 14rem); aspect-ratio: 1; margin: 0 auto 0.618rem; background: #fff; border-radius: var(--radius-control); }
.account-qr path { fill: #000; }
.account-panel .text { padding: 0; border: 0; background: none; color: var(--foreground); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 0.2em; cursor: pointer; }
.account-panel .row { justify-content: flex-start; width: 100%; min-height: 2.618rem; padding: 0 1rem; border: 0; border-radius: var(--radius-control); background: none; color: var(--foreground); font-size: 1rem; text-align: start; cursor: pointer; }
/* The id itself, then the one thing worth doing now, then every choice grouped by why you would make it:
* each row says what it does, and in a muted line, why. Icons are outlines at the text colour. */
.account-panel .glyph { flex: none; width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.account-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: var(--border-width) solid var(--border); border-radius: calc(var(--radius) * 1.236); background: var(--background); }
.account-panel .account-avatar { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 50%; background: var(--accent); stroke-width: 1.5; }
.account-who { display: grid; flex: 1; min-width: 0; gap: 0.125rem; }
.account-who code { font-family: var(--font-mono); font-size: var(--text-14); color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel small { display: flex; align-items: center; gap: 0.25rem; color: var(--muted-foreground); font-size: 0.75rem; line-height: 1.4; }
.account-who small .glyph { width: 0.75rem; height: 0.75rem; }
.account-icon { display: grid; place-items: center; width: 2rem; height: 2rem; min-height: 0; padding: 0; border: 0; border-radius: var(--radius-control); background: none; color: var(--muted-foreground); cursor: pointer; }
.account-icon:hover { background: var(--accent); color: var(--foreground); }
.account-kit { display: flex; gap: 0.75rem; margin-top: 0.382rem; padding: 0.875rem; border: var(--border-width) solid var(--border-strong); border-radius: calc(var(--radius) * 1.236); }
.account-kit > span { display: grid; gap: 0.25rem; flex: 1; }
.account-kit small { display: block; margin-bottom: 0.5rem; }
.account-kit .primary { min-height: 2.25rem; font-size: var(--text-14); }
.account-group { margin: 1rem 0 0.125rem !important; padding: 0 0.625rem; color: var(--muted-foreground); font-size: 0.75rem; font-weight: 500; }
.account-panel .row { display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; width: 100%; min-height: 2.618rem; padding: 0.5rem 0.625rem; border: 0; border-radius: var(--radius-control); background: none; color: var(--foreground); font: inherit; text-align: start; cursor: pointer; transition: background var(--duration) var(--ease); }
.account-panel .row > span { display: grid; flex: 1; min-width: 0; }
.account-panel .row b { font-weight: 500; }
.account-panel .row > .glyph:first-child { color: var(--muted-foreground); }
.account-panel .row .chevron { width: 1rem; height: 1rem; color: var(--muted-foreground); opacity: 0.618; }
.account-panel .row:hover { background: var(--accent); }
.account-panel .row:focus-visible, .account-panel .text:focus-visible, .account-close:focus-visible { outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset); }
.account-panel .row:focus-visible, .account-panel .text:focus-visible, .account-close:focus-visible, .account-icon:focus-visible { outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset); }
.account-panel .primary { width: 100%; min-height: 2.618rem; font-size: 1rem; }
.account-panel .account-in > p { margin-bottom: 0.618rem; color: var(--muted-foreground); }
.account-panel .account-in > p b { color: var(--foreground); font-weight: 600; }
Expand Down
Loading
Loading