feat(n7web): add pet NFC workflow and glass UI
This commit is contained in:
@@ -3982,3 +3982,547 @@ form > .v2-extension-primary {
|
||||
background: var(--status-error-soft);
|
||||
border-color: color-mix(in oklch, var(--status-error) 34%, var(--border));
|
||||
}
|
||||
|
||||
/* Durable NFC pet cards ------------------------------------------------- */
|
||||
.v2-extension-sync-mount {
|
||||
grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.console-v2 #v2ExtensionPanel .v2-extension-sync-mount {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior-y: contain;
|
||||
scrollbar-gutter: stable;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
.v2-pet-card-region {
|
||||
--pet-acrylic-surface: color-mix(in oklch, var(--card) 72%, transparent);
|
||||
--pet-acrylic-surface-strong: color-mix(in oklch, var(--card) 84%, transparent);
|
||||
--pet-acrylic-border: color-mix(in oklch, var(--primary) 20%, color-mix(in oklch, var(--border) 76%, transparent));
|
||||
--pet-acrylic-highlight: color-mix(in oklch, white 58%, transparent);
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
color: var(--card-foreground);
|
||||
background:
|
||||
linear-gradient(145deg, var(--pet-acrylic-surface-strong), var(--pet-acrylic-surface)),
|
||||
color-mix(in oklch, var(--accent) 28%, transparent);
|
||||
border: 1px solid var(--pet-acrylic-border);
|
||||
border-radius: var(--ui-radius-section, 14px);
|
||||
box-shadow:
|
||||
0 14px 34px color-mix(in oklch, var(--foreground) 9%, transparent),
|
||||
inset 0 1px 0 var(--pet-acrylic-highlight),
|
||||
inset 0 -1px 0 color-mix(in oklch, var(--primary) 8%, transparent);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(1.35);
|
||||
backdrop-filter: blur(18px) saturate(1.35);
|
||||
}
|
||||
|
||||
.v2-pet-card-region::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background:
|
||||
radial-gradient(circle at 12% 0%, color-mix(in oklch, white 38%, transparent), transparent 38%),
|
||||
linear-gradient(115deg, color-mix(in oklch, var(--primary) 7%, transparent), transparent 44%);
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header,
|
||||
.v2-pet-card-region > header > div,
|
||||
.v2-pet-card > header,
|
||||
.v2-pet-card > header > div,
|
||||
.v2-nfc-pet-binding > div,
|
||||
.v2-nfc-pet-binding > div:first-child {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header {
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header > div {
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header > div > span,
|
||||
.v2-pet-card > header > span,
|
||||
.v2-nfc-pet-binding > div:first-child > span {
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--primary);
|
||||
background: var(--accent);
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 18%, var(--border));
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header > div > span {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header > div > span svg,
|
||||
.v2-pet-card-region > header > button svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header h4 {
|
||||
margin: 0;
|
||||
color: var(--heading-foreground);
|
||||
font-size: 14px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.v2-pet-card-region > header > button,
|
||||
.v2-pet-card-empty > button,
|
||||
.v2-pet-card footer > button,
|
||||
.v2-pet-nfc-field button,
|
||||
.v2-nfc-no-pets > button {
|
||||
min-height: 34px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 6px 11px;
|
||||
color: var(--primary-foreground);
|
||||
background: linear-gradient(145deg, color-mix(in oklch, var(--primary) 90%, white), var(--primary));
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 80%, white);
|
||||
border-radius: var(--ui-radius-control-inner, 9px);
|
||||
box-shadow:
|
||||
0 6px 15px color-mix(in oklch, var(--primary) 24%, transparent),
|
||||
inset 0 1px 0 color-mix(in oklch, white 34%, transparent);
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-pet-card-region button:disabled,
|
||||
.v2-nfc-pet-binding button:disabled {
|
||||
opacity: 0.52;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.v2-pet-card-list {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-auto-rows: max-content;
|
||||
align-content: start;
|
||||
gap: 12px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.v2-pet-card {
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
align-self: start;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
background:
|
||||
linear-gradient(150deg, color-mix(in oklch, var(--card) 88%, transparent), color-mix(in oklch, var(--accent) 24%, transparent));
|
||||
border: 1px solid var(--pet-acrylic-border);
|
||||
border-radius: var(--ui-radius-item, 12px);
|
||||
box-shadow:
|
||||
0 9px 24px color-mix(in oklch, var(--foreground) 8%, transparent),
|
||||
inset 0 1px 0 var(--pet-acrylic-highlight);
|
||||
-webkit-backdrop-filter: blur(14px) saturate(1.22);
|
||||
backdrop-filter: blur(14px) saturate(1.22);
|
||||
scroll-margin-block: 12px;
|
||||
transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
|
||||
}
|
||||
|
||||
.v2-pet-card::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(118deg, color-mix(in oklch, white 18%, transparent), transparent 34% 72%, color-mix(in oklch, var(--primary) 5%, transparent));
|
||||
}
|
||||
|
||||
.v2-pet-card:focus-within {
|
||||
border-color: color-mix(in oklch, var(--primary) 42%, var(--border));
|
||||
box-shadow:
|
||||
0 12px 28px color-mix(in oklch, var(--foreground) 10%, transparent),
|
||||
0 0 0 3px color-mix(in oklch, var(--primary) 13%, transparent),
|
||||
inset 0 1px 0 var(--pet-acrylic-highlight);
|
||||
}
|
||||
|
||||
.v2-pet-card[data-pet-state="bursting"],
|
||||
.v2-pet-card[data-pet-state="complete"] {
|
||||
border-color: color-mix(in oklch, var(--status-success) 38%, var(--border));
|
||||
}
|
||||
|
||||
.v2-pet-card[data-pet-state="editing"] {
|
||||
border-color: color-mix(in oklch, var(--status-warning) 38%, var(--border));
|
||||
}
|
||||
|
||||
.v2-pet-card[data-pet-state="error"] {
|
||||
border-color: color-mix(in oklch, var(--status-error) 40%, var(--border));
|
||||
}
|
||||
|
||||
.v2-pet-card > header {
|
||||
display: grid;
|
||||
grid-template-columns: 36px minmax(0, 1fr) auto 28px;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > span {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > span svg,
|
||||
.v2-pet-card > header > button svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > strong {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--foreground);
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > b {
|
||||
padding: 4px 7px;
|
||||
color: var(--muted-foreground);
|
||||
background: color-mix(in oklch, var(--muted) 72%, transparent);
|
||||
border: 1px solid color-mix(in oklch, var(--border) 68%, transparent);
|
||||
border-radius: 999px;
|
||||
box-shadow: inset 0 1px 0 color-mix(in oklch, white 28%, transparent);
|
||||
-webkit-backdrop-filter: blur(8px) saturate(1.18);
|
||||
backdrop-filter: blur(8px) saturate(1.18);
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > b[data-state="bursting"],
|
||||
.v2-pet-card > header > b[data-state="complete"] {
|
||||
color: var(--status-success-foreground);
|
||||
background: var(--status-success-soft);
|
||||
}
|
||||
|
||||
.v2-pet-card > header > b[data-state="editing"] {
|
||||
color: var(--status-warning-foreground);
|
||||
background: var(--status-warning-soft);
|
||||
}
|
||||
|
||||
.v2-pet-card > header > b[data-state="error"] {
|
||||
color: var(--status-error-foreground);
|
||||
background: var(--status-error-soft);
|
||||
}
|
||||
|
||||
.v2-pet-card > header > button {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
color: var(--muted-foreground);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-pet-card > header > button:hover {
|
||||
color: var(--destructive);
|
||||
background: var(--status-error-soft);
|
||||
}
|
||||
|
||||
.v2-pet-card-fields {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields > label {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-column: 1;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields > label > span {
|
||||
color: var(--muted-foreground);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding code {
|
||||
color: var(--primary);
|
||||
font: 700 8.5px "SFMono-Regular", Consolas, monospace;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields input,
|
||||
.v2-pet-card-fields textarea {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: 9px 10px;
|
||||
color: var(--foreground);
|
||||
background: color-mix(in oklch, var(--background) 68%, transparent);
|
||||
border: 1px solid color-mix(in oklch, var(--input) 80%, transparent);
|
||||
border-radius: var(--ui-radius-control-inner, 9px);
|
||||
box-shadow:
|
||||
inset 0 1px 0 color-mix(in oklch, white 30%, transparent),
|
||||
0 3px 10px color-mix(in oklch, var(--foreground) 4%, transparent);
|
||||
-webkit-backdrop-filter: blur(10px) saturate(1.18);
|
||||
backdrop-filter: blur(10px) saturate(1.18);
|
||||
outline: none;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 550;
|
||||
line-height: 1.45;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields input {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields textarea {
|
||||
height: 58px;
|
||||
min-height: 58px;
|
||||
max-height: 96px;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields input:focus,
|
||||
.v2-pet-card-fields textarea:focus {
|
||||
border-color: var(--ring);
|
||||
box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 12%, transparent);
|
||||
}
|
||||
|
||||
.v2-pet-nfc-field {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
.v2-pet-nfc-field > div {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.v2-pet-nfc-field output {
|
||||
min-width: 0;
|
||||
min-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
padding: 8px 10px;
|
||||
color: var(--muted-foreground);
|
||||
background: color-mix(in oklch, var(--muted) 58%, transparent);
|
||||
border: 1px dashed color-mix(in oklch, var(--primary) 18%, var(--border));
|
||||
border-radius: var(--ui-radius-control-inner, 9px);
|
||||
box-shadow: inset 0 1px 0 color-mix(in oklch, white 25%, transparent);
|
||||
-webkit-backdrop-filter: blur(9px) saturate(1.15);
|
||||
backdrop-filter: blur(9px) saturate(1.15);
|
||||
font: 700 11px/1.35 "SFMono-Regular", Consolas, monospace;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-pet-card > footer {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-end;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid color-mix(in oklch, var(--border) 74%, transparent);
|
||||
}
|
||||
|
||||
.v2-pet-card > footer svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.v2-pet-card-empty {
|
||||
min-height: 112px;
|
||||
display: grid;
|
||||
grid-template-columns: 36px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
color: var(--muted-foreground);
|
||||
background: color-mix(in oklch, var(--muted) 58%, transparent);
|
||||
border: 1px dashed var(--pet-acrylic-border);
|
||||
border-radius: var(--ui-radius-item, 12px);
|
||||
box-shadow: inset 0 1px 0 var(--pet-acrylic-highlight);
|
||||
-webkit-backdrop-filter: blur(12px) saturate(1.18);
|
||||
backdrop-filter: blur(12px) saturate(1.18);
|
||||
}
|
||||
|
||||
.v2-pet-card-empty > svg {
|
||||
width: 24px;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.v2-pet-card-empty strong {
|
||||
color: var(--foreground);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-top: 14px;
|
||||
padding: 13px;
|
||||
color: var(--card-foreground);
|
||||
background: linear-gradient(145deg, color-mix(in oklch, var(--card) 82%, transparent), color-mix(in oklch, var(--primary) 9%, transparent));
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 24%, color-mix(in oklch, var(--border) 72%, transparent));
|
||||
border-radius: var(--ui-radius-item, 12px);
|
||||
box-shadow:
|
||||
0 8px 22px color-mix(in oklch, var(--foreground) 7%, transparent),
|
||||
inset 0 1px 0 color-mix(in oklch, white 34%, transparent);
|
||||
-webkit-backdrop-filter: blur(14px) saturate(1.2);
|
||||
backdrop-filter: blur(14px) saturate(1.2);
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:first-child {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:first-child > span {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 11px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:first-child > span svg {
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:first-child > div {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding small,
|
||||
.v2-nfc-pet-binding p {
|
||||
color: var(--muted-foreground);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding strong {
|
||||
color: var(--foreground);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding p {
|
||||
max-width: 420px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:last-child {
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:last-child > b {
|
||||
color: var(--status-success-foreground);
|
||||
font-size: 9px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding button,
|
||||
.v2-nfc-no-pets > button {
|
||||
min-height: 34px;
|
||||
padding: 0 12px;
|
||||
color: var(--primary);
|
||||
background: var(--accent);
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 22%, var(--border));
|
||||
border-radius: 9px;
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-existing {
|
||||
background: color-mix(in oklch, var(--primary) 5%, var(--card));
|
||||
}
|
||||
|
||||
.v2-nfc-no-pets {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.v2-nfc-body > .v2-nfc-existing {
|
||||
box-sizing: border-box;
|
||||
margin-top: 14px;
|
||||
padding: 14px 16px;
|
||||
background: linear-gradient(145deg, color-mix(in oklch, var(--card) 82%, transparent), color-mix(in oklch, var(--primary) 7%, transparent));
|
||||
border: 1px solid color-mix(in oklch, var(--primary) 18%, var(--border));
|
||||
border-radius: var(--ui-radius-item, 12px);
|
||||
box-shadow:
|
||||
0 8px 22px color-mix(in oklch, var(--foreground) 7%, transparent),
|
||||
inset 0 1px 0 color-mix(in oklch, white 32%, transparent);
|
||||
-webkit-backdrop-filter: blur(14px) saturate(1.2);
|
||||
backdrop-filter: blur(14px) saturate(1.2);
|
||||
}
|
||||
|
||||
.v2-nfc-body > .v2-nfc-existing > div {
|
||||
grid-template-columns: minmax(0, 1fr) 132px;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.v2-nfc-body > .v2-nfc-existing button {
|
||||
width: 132px;
|
||||
min-height: 42px;
|
||||
padding-inline: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.v2-pet-card-fields {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.v2-pet-card-fields > label,
|
||||
.v2-pet-nfc-field {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding > div:last-child {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.v2-nfc-pet-binding code {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.v2-nfc-body > .v2-nfc-existing > div {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.v2-nfc-body > .v2-nfc-existing button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user