Expand Dock gallery with account workspace and identity states
This commit is contained in:
1 parent
d2002071e6
commit
c41a5e4276
71 files changed
+2254
-67
No files matched your search
@@ -2097,3 +2097,591 @@ body[data-concept="dock"].dock-open .account-more {
|
||||
body[data-concept="dock"] .header-actions > .avatar {
|
||||
display: none;
|
||||
}
|
||||
/* Account workspace: flat sections, shared native controls and compact rows. */
|
||||
.identity-body {
|
||||
max-width: 1100px;
|
||||
}
|
||||
.identity-demo {
|
||||
margin: 26px 0 0;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--color-border);
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
.identity-profile-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 4px 0 25px;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.identity-profile-summary h2 {
|
||||
font: 600 25px/1.3 var(--font-heading);
|
||||
margin: 0 0 3px;
|
||||
}
|
||||
.identity-profile-summary p {
|
||||
margin: 0 0 8px;
|
||||
color: var(--color-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
.identity-avatar {
|
||||
display: inline-flex;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 14px;
|
||||
background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
|
||||
color: var(--color-accent);
|
||||
font: 600 18px var(--font-body);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.identity-avatar.large {
|
||||
width: 76px;
|
||||
height: 76px;
|
||||
font-size: 25px;
|
||||
border-radius: 19px;
|
||||
}
|
||||
.identity-roles {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.identity-roles span {
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
padding-right: 9px;
|
||||
border-right: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-roles span:last-child {
|
||||
border: 0;
|
||||
}
|
||||
.identity-split {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.45fr);
|
||||
gap: 55px;
|
||||
}
|
||||
.identity-split > section p {
|
||||
font-size: 14px;
|
||||
max-width: 30ch;
|
||||
}
|
||||
.identity-fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
.identity-readonly {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin: 8px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
.identity-readonly > span:first-child {
|
||||
color: var(--color-muted);
|
||||
}
|
||||
.identity-avatar-editor {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
align-items: center;
|
||||
padding-top: 25px;
|
||||
margin-top: 25px;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-avatar-editor > div:last-child {
|
||||
display: flex;
|
||||
gap: 9px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.file-button {
|
||||
display: inline-block;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-control);
|
||||
padding: 9px 13px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
.file-button:focus-within {
|
||||
outline: 3px solid var(--color-accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
.file-button input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
padding: 0;
|
||||
min-height: 0 !important;
|
||||
}
|
||||
.identity-footnote {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
padding-top: 24px;
|
||||
}
|
||||
.identity-footnote code {
|
||||
color: var(--color-text);
|
||||
}
|
||||
.identity-section {
|
||||
padding: 8px 0 24px;
|
||||
margin-bottom: 22px;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-section:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.identity-setting-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
align-items: center;
|
||||
padding: 18px 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-setting-row h3,
|
||||
.identity-session h3 {
|
||||
font-size: 15px;
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.identity-setting-row p,
|
||||
.identity-session p {
|
||||
font-size: 13px;
|
||||
color: var(--color-muted);
|
||||
margin: 0;
|
||||
}
|
||||
.identity-setting-row p.status {
|
||||
color: var(--color-success);
|
||||
}
|
||||
.identity-setting-row p.status.warn {
|
||||
color: var(--color-danger);
|
||||
}
|
||||
.identity-section .section-title {
|
||||
align-items: center;
|
||||
}
|
||||
.identity-section .section-title h2 {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.identity-section .section-title p {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
.identity-security-note p,
|
||||
.identity-explanation {
|
||||
max-width: 75ch;
|
||||
font-size: 14px;
|
||||
color: var(--color-muted);
|
||||
line-height: 1.7;
|
||||
}
|
||||
.identity-list-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: var(--color-muted);
|
||||
font-size: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.identity-session {
|
||||
display: grid;
|
||||
grid-template-columns: 35px minmax(0, 1fr) auto auto;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
padding: 20px 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-session time {
|
||||
font:
|
||||
12px Consolas,
|
||||
monospace;
|
||||
color: var(--color-muted);
|
||||
min-width: 105px;
|
||||
}
|
||||
.identity-device-icon .nav-icon {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
}
|
||||
.identity-apps {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.identity-app {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
padding: 23px 0;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.identity-app h2 {
|
||||
font-size: 17px;
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.identity-app p {
|
||||
font-size: 14px;
|
||||
color: var(--color-muted);
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.identity-app > div {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.identity-app > button {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.app-monogram {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font:
|
||||
bold 16px Consolas,
|
||||
monospace;
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 12px;
|
||||
color: var(--color-accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.theme-choice-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
max-width: 760px;
|
||||
}
|
||||
.theme-choice {
|
||||
text-align: left;
|
||||
padding: 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.theme-choice[aria-pressed="true"] {
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: 0 0 0 1px var(--color-accent);
|
||||
}
|
||||
.theme-choice > strong {
|
||||
font-size: 16px;
|
||||
}
|
||||
.theme-choice small {
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.theme-thumbnail {
|
||||
display: grid;
|
||||
grid-template-columns: 22px 1fr;
|
||||
grid-template-rows: 16px 1fr;
|
||||
gap: 7px;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
background: #edf3f3;
|
||||
border: 1px solid #c6d7da;
|
||||
}
|
||||
.theme-thumbnail i {
|
||||
display: block;
|
||||
background: #fbfdfd;
|
||||
border: 1px solid #c6d7da;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.theme-thumbnail i:first-child {
|
||||
grid-row: 1/3;
|
||||
background: #d5e4e5;
|
||||
}
|
||||
.theme-thumbnail.dark {
|
||||
background: #111f26;
|
||||
border-color: #3b535c;
|
||||
}
|
||||
.theme-thumbnail.dark i {
|
||||
background: #192c34;
|
||||
border-color: #3b535c;
|
||||
}
|
||||
.theme-thumbnail.dark i:first-child {
|
||||
background: #2e4b53;
|
||||
}
|
||||
.identity-gate {
|
||||
max-width: 540px;
|
||||
margin: 50px auto;
|
||||
padding: 28px;
|
||||
text-align: center;
|
||||
}
|
||||
.identity-gate h1 {
|
||||
font-size: 27px;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
.identity-gate > p {
|
||||
color: var(--color-muted);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.identity-gate .component-row {
|
||||
justify-content: center;
|
||||
margin-top: 24px;
|
||||
}
|
||||
.identity-gate > .skeleton {
|
||||
margin: 25px auto;
|
||||
max-width: 250px;
|
||||
}
|
||||
.identity-gate-symbol {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
color: var(--color-accent);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.identity-gate-symbol .nav-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
.identity-state-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.identity-state-controls .field {
|
||||
margin: 0;
|
||||
min-width: 240px;
|
||||
}
|
||||
.identity-state-controls code {
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
.identity-state-preview {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-control);
|
||||
margin-top: 25px;
|
||||
min-height: 340px;
|
||||
background: var(--color-surface);
|
||||
}
|
||||
.identity-state-preview .identity-gate {
|
||||
margin: 16px auto;
|
||||
}
|
||||
.identity-editor-dialog {
|
||||
width: min(850px, calc(100% - 32px));
|
||||
}
|
||||
.identity-role-fields {
|
||||
padding: 16px 0;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--color-border);
|
||||
margin: 20px 0 0;
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.identity-role-fields legend {
|
||||
font-size: 14px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
.identity-role-fields label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.identity-grants {
|
||||
margin-top: 25px;
|
||||
}
|
||||
.identity-grants h3 {
|
||||
margin: 0;
|
||||
}
|
||||
.grant-bulk {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
font-size: 13px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
.identity-grants table {
|
||||
min-width: 600px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.identity-grants td,
|
||||
.identity-grants th {
|
||||
padding: 12px 10px;
|
||||
}
|
||||
.identity-grants small {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.grant-actions summary {
|
||||
padding: 4px 12px;
|
||||
list-style: none;
|
||||
font-size: 18px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.grant-actions .dropdown {
|
||||
position: static;
|
||||
box-shadow: none;
|
||||
min-width: 140px;
|
||||
}
|
||||
.grant-actions .dropdown button {
|
||||
font-size: 12px;
|
||||
}
|
||||
.dock-account .avatar img {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
}
|
||||
body[data-concept="dock"] .identity-body {
|
||||
animation: dock-reveal 260ms ease-out both;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.identity-split {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
.identity-split > section p {
|
||||
max-width: 65ch;
|
||||
}
|
||||
.identity-session {
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
}
|
||||
.identity-session time {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
}
|
||||
.identity-session button {
|
||||
grid-column: 3;
|
||||
grid-row: 1/3;
|
||||
font-size: 13px;
|
||||
}
|
||||
.identity-state-controls .field {
|
||||
min-width: 200px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.identity-profile-summary {
|
||||
gap: 14px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.identity-profile-summary h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
.identity-avatar.large {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 15px;
|
||||
font-size: 21px;
|
||||
}
|
||||
.identity-fields {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
}
|
||||
.identity-avatar-editor {
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.identity-avatar-editor > div:last-child {
|
||||
gap: 8px;
|
||||
}
|
||||
.identity-avatar-editor small {
|
||||
width: 100%;
|
||||
}
|
||||
.identity-readonly {
|
||||
display: block;
|
||||
}
|
||||
.identity-readonly > * {
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.identity-setting-row {
|
||||
gap: 10px;
|
||||
}
|
||||
.identity-section .section-title {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
.identity-list-heading > span:last-child {
|
||||
display: none;
|
||||
}
|
||||
.identity-session {
|
||||
grid-template-columns: 26px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.identity-session time {
|
||||
min-width: 0;
|
||||
}
|
||||
.identity-session button {
|
||||
grid-column: 2;
|
||||
grid-row: 3;
|
||||
justify-self: start;
|
||||
}
|
||||
.identity-app {
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.identity-app > div {
|
||||
flex-basis: calc(100% - 60px);
|
||||
}
|
||||
.identity-app > button {
|
||||
margin-left: 60px;
|
||||
}
|
||||
.theme-choice-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
.theme-thumbnail {
|
||||
height: 100px;
|
||||
}
|
||||
.identity-gate {
|
||||
margin: 20px auto;
|
||||
padding: 15px 6px;
|
||||
}
|
||||
.identity-gate h1 {
|
||||
font-size: 23px;
|
||||
}
|
||||
.identity-state-controls .field {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
.identity-state-preview {
|
||||
min-height: 320px;
|
||||
padding: 12px;
|
||||
}
|
||||
.identity-state-preview .identity-gate {
|
||||
margin: 10px auto;
|
||||
}
|
||||
.identity-grants .section-title {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
.grant-bulk {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
.identity-footnote {
|
||||
flex-wrap: wrap;
|
||||
gap: 5px 12px;
|
||||
}
|
||||
.identity-editor-dialog {
|
||||
padding: 20px;
|
||||
}
|
||||
.identity-role-fields {
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
body[data-concept="dock"] .identity-body {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
#factor-error {
|
||||
min-height: 42px;
|
||||
line-height: 1.5;
|
||||
margin: 12px 0;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
#factor-error {
|
||||
min-height: 60px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user