Implement Harbor gateway device ecosystem support
This commit is contained in:
@@ -1,3 +1,257 @@
|
||||
.client-drawer.client-devices {
|
||||
width: min(780px, 100vw);
|
||||
}
|
||||
|
||||
.client-devices-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 168px minmax(0, 1fr);
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.client-devices-content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.client-devices-rail {
|
||||
position: sticky;
|
||||
top: 54px;
|
||||
align-self: start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.client-devices-rail-view {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.client-devices-search {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-label);
|
||||
letter-spacing: var(--type-label-tracking);
|
||||
text-transform: var(--type-label-transform);
|
||||
}
|
||||
|
||||
.client-devices-search input,
|
||||
.client-devices-tag-create input,
|
||||
.client-devices-tag-manager-row input {
|
||||
min-width: 0;
|
||||
height: 32px;
|
||||
box-sizing: border-box;
|
||||
padding: 0 9px;
|
||||
border: 1px solid color-mix(in oklch, var(--client-border) 80%, transparent);
|
||||
border-radius: 6px;
|
||||
outline: 0;
|
||||
background: color-mix(in oklch, var(--client-control) 56%, transparent);
|
||||
color: var(--client-text);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-devices-search input:focus,
|
||||
.client-devices-tag-create input:focus,
|
||||
.client-devices-tag-manager-row input:focus {
|
||||
border: 1px solid var(--client-accent);
|
||||
}
|
||||
|
||||
.client-devices-filter-group,
|
||||
.client-devices-tag-filters {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.client-devices-filter-group button,
|
||||
.client-devices-tag-filters button {
|
||||
min-width: 0;
|
||||
min-height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 0 7px;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
background: transparent;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-align: left;
|
||||
text-transform: var(--type-control-transform);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-devices-filter-group button[aria-pressed="true"],
|
||||
.client-devices-tag-filters button[aria-pressed="true"] {
|
||||
background: color-mix(in oklch, var(--client-accent) 11%, transparent);
|
||||
color: var(--harbor-gateway);
|
||||
box-shadow: inset 2px 0 0 var(--harbor-gateway);
|
||||
}
|
||||
|
||||
.client-devices-filter-group b,
|
||||
.client-devices-tag-filters b,
|
||||
.client-devices-tag-manager-row > b {
|
||||
color: var(--client-muted);
|
||||
font: var(--type-micro);
|
||||
letter-spacing: var(--type-micro-tracking);
|
||||
text-transform: var(--type-micro-transform);
|
||||
font-variant-numeric: var(--numeric-tabular);
|
||||
}
|
||||
|
||||
.client-devices-rail-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-label);
|
||||
letter-spacing: var(--type-label-tracking);
|
||||
text-transform: var(--type-label-transform);
|
||||
}
|
||||
|
||||
.client-devices-tag-filters button {
|
||||
color: var(--tag-tone, var(--client-muted));
|
||||
}
|
||||
|
||||
.client-devices-tag-filters p,
|
||||
.client-devices-tag-manager-list > p,
|
||||
.client-devices-tags-unsupported {
|
||||
margin: 0;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-devices-manage-tags,
|
||||
.client-devices-manager-back,
|
||||
.client-devices-tag-create button,
|
||||
.client-devices-tag-manager-row button,
|
||||
.client-device-tag-popover button,
|
||||
.client-devices-filter-summary button,
|
||||
.client-devices-filter-empty button {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-accent);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-devices-manager-back {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.client-devices-rail h3 {
|
||||
margin: 0;
|
||||
font: var(--type-section-title);
|
||||
letter-spacing: var(--type-section-title-tracking);
|
||||
text-transform: var(--type-section-title-transform);
|
||||
}
|
||||
|
||||
.client-devices-tag-create {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-list {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-row {
|
||||
min-height: 30px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto 26px 26px;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
color: var(--tag-tone, var(--client-text));
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-row > span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-row > button {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--client-muted);
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-row svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.7;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.client-devices-tag-manager-row form {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.client-devices-tag-error {
|
||||
margin: 0;
|
||||
color: oklch(0.68 0.15 28);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
[data-tag-tone="0"] { --tag-tone: var(--harbor-connect); }
|
||||
[data-tag-tone="1"] { --tag-tone: var(--harbor-gateway); }
|
||||
[data-tag-tone="2"] { --tag-tone: var(--harbor-word); }
|
||||
[data-tag-tone="3"] { --tag-tone: var(--client-muted); }
|
||||
|
||||
.client-devices-filter-trigger,
|
||||
.client-devices-rail-backdrop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.client-devices-filter-summary {
|
||||
min-height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin: -8px 8px 14px;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-devices-filter-summary span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-devices-filter-empty {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.client-devices-filter-empty p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.client-devices-header {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
@@ -446,6 +700,57 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-device-tag-trigger {
|
||||
height: 14px;
|
||||
max-width: 104px;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 0 4px;
|
||||
overflow: hidden;
|
||||
border: 1px dashed color-mix(in oklch, var(--client-muted) 46%, transparent);
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-micro);
|
||||
letter-spacing: var(--type-micro-tracking);
|
||||
text-transform: var(--type-micro-transform);
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-device-tag-trigger.has-tag {
|
||||
border: 1px solid color-mix(in oklch, var(--tag-tone) 48%, transparent);
|
||||
background: color-mix(in oklch, var(--tag-tone) 11%, transparent);
|
||||
color: var(--tag-tone);
|
||||
}
|
||||
|
||||
.client-device-tag-trigger span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.client-device-tag-trigger b {
|
||||
flex: 0 0 auto;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.client-device-tag-trigger:not(.has-tag) {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.client-device:hover .client-device-tag-trigger:not(.has-tag),
|
||||
.client-device:focus-within .client-device-tag-trigger:not(.has-tag) {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.client-device-identity-details {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
@@ -1359,10 +1664,164 @@
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.client-device-tag-popover-layer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 80;
|
||||
}
|
||||
|
||||
.client-device-tag-popover {
|
||||
position: fixed;
|
||||
width: min(280px, calc(100vw - 24px));
|
||||
max-height: min(348px, calc(100dvh - 24px));
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid color-mix(in oklch, var(--client-border) 78%, transparent);
|
||||
border-radius: 9px;
|
||||
background: color-mix(in oklch, var(--client-bg) 96%, var(--client-panel));
|
||||
color: var(--client-text);
|
||||
box-shadow: 0 14px 36px oklch(0.08 0.015 145 / 0.24);
|
||||
animation: client-device-tag-popover-in 160ms ease;
|
||||
}
|
||||
|
||||
@keyframes client-device-tag-popover-in {
|
||||
from { opacity: 0; transform: translateY(-6px); }
|
||||
}
|
||||
|
||||
.client-device-tag-popover-layer.is-closing {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.client-device-tag-popover-layer.is-closing .client-device-tag-popover {
|
||||
animation: client-device-tag-popover-out 160ms ease forwards;
|
||||
}
|
||||
|
||||
@keyframes client-device-tag-popover-out {
|
||||
to { opacity: 0; transform: translateY(-6px); }
|
||||
}
|
||||
|
||||
.client-device-tag-popover h3 {
|
||||
margin: 0;
|
||||
font: var(--type-section-title);
|
||||
letter-spacing: var(--type-section-title-tracking);
|
||||
text-transform: var(--type-section-title-transform);
|
||||
}
|
||||
|
||||
.client-device-tag-popover > p {
|
||||
margin: 0;
|
||||
color: var(--client-muted);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-device-tag-popover-options {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.client-device-tag-popover-options label {
|
||||
min-height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--tag-tone, var(--client-text));
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-device-tag-popover-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.client-device-tag-popover-actions button:last-child {
|
||||
color: var(--client-text);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.client-devices-layout {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.client-devices-rail {
|
||||
position: fixed;
|
||||
inset: 0 auto 0 0;
|
||||
z-index: 42;
|
||||
width: min(300px, calc(100vw - 48px));
|
||||
box-sizing: border-box;
|
||||
padding: 54px 18px 32px;
|
||||
overflow-y: auto;
|
||||
background: color-mix(in oklch, var(--client-bg) 99%, var(--client-panel));
|
||||
box-shadow: 18px 0 42px oklch(0.08 0.015 145 / 0.2);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-devices-rail.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.client-devices-rail-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 41;
|
||||
display: block;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: oklch(0.08 0.015 145 / 0.26);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-devices-rail-backdrop.is-open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.client-devices-filter-trigger {
|
||||
min-height: 28px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0 4px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-accent);
|
||||
font: var(--type-control);
|
||||
letter-spacing: var(--type-control-tracking);
|
||||
text-transform: var(--type-control-transform);
|
||||
}
|
||||
|
||||
.client-devices-kicker > span:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.client-device-tag-trigger:not(.has-tag) {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
.client-device-edit-wrap {
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.client-device-tag-trigger:not(.has-tag) {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.client-gateway-summary {
|
||||
|
||||
Reference in New Issue
Block a user