Update VPN client connection flow
This commit is contained in:
+267
-153
@@ -951,107 +951,86 @@ p {
|
||||
|
||||
.client-device-main > h3 {
|
||||
height: 23px;
|
||||
flex: 0 1 auto;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
gap: 5px;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.03em;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-device-name {
|
||||
height: 23px;
|
||||
width: 100%;
|
||||
.client-device-alias-trigger,
|
||||
.client-device-ip {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-text);
|
||||
font: 700 14px/1.2 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
letter-spacing: -0.03em;
|
||||
text-align: left;
|
||||
cursor: copy;
|
||||
}
|
||||
|
||||
.client-device-name-ip {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.client-device-name > span {
|
||||
grid-area: 1 / 1;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
filter: blur(8px);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transform: translateY(0.18em) scale(0.96);
|
||||
transform-origin: left center;
|
||||
transition: opacity 360ms ease, filter 480ms cubic-bezier(0.16, 1, 0.3, 1), transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
transition: color 180ms ease, filter 300ms ease;
|
||||
}
|
||||
|
||||
.client-device-name > .client-device-name-primary {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
transform: translateY(0) scale(1);
|
||||
.client-device-alias-trigger {
|
||||
flex: 0 1 auto;
|
||||
font: 700 14px/1.2 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
letter-spacing: -0.03em;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.client-device-name:not(.is-address-only):hover .client-device-name-primary,
|
||||
.client-device-name:not(.is-address-only):focus-visible .client-device-name-primary {
|
||||
opacity: 0;
|
||||
filter: blur(8px);
|
||||
transform: translateY(-0.18em) scale(1.04);
|
||||
}
|
||||
|
||||
.client-device-name:not(.is-address-only):hover .client-device-name-ip,
|
||||
.client-device-name:not(.is-address-only):focus-visible .client-device-name-ip {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.client-device-name.is-copied .client-device-name-primary,
|
||||
.client-device-name.is-copied .client-device-name-ip,
|
||||
.client-device-name.is-copy-error .client-device-name-primary,
|
||||
.client-device-name.is-copy-error .client-device-name-ip {
|
||||
opacity: 0;
|
||||
filter: blur(8px);
|
||||
transform: translateY(-0.18em) scale(1.04);
|
||||
}
|
||||
|
||||
.client-device-name.is-copied .client-device-name-feedback,
|
||||
.client-device-name.is-copy-error .client-device-name-feedback {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.client-device-name-feedback {
|
||||
font-size: 9px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.client-device-name.is-copied .client-device-name-feedback {
|
||||
.client-device-alias-trigger:hover,
|
||||
.client-device-alias-trigger:focus-visible {
|
||||
color: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-device-name.is-copy-error .client-device-name-feedback {
|
||||
color: oklch(0.68 0.15 28);
|
||||
.client-device-name-separator {
|
||||
flex: 0 0 auto;
|
||||
color: var(--client-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.client-device-name:focus-visible {
|
||||
.client-device-ip {
|
||||
flex: 0 0 auto;
|
||||
font: 600 12px/1.2 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
cursor: copy;
|
||||
}
|
||||
|
||||
.client-device-ip:hover,
|
||||
.client-device-ip:focus-visible {
|
||||
color: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-device-ip.is-copied {
|
||||
--client-device-copy-color: var(--client-accent);
|
||||
animation: client-device-ip-copy 800ms ease-out;
|
||||
}
|
||||
|
||||
.client-device-ip.is-copy-error {
|
||||
--client-device-copy-color: oklch(0.68 0.15 28);
|
||||
animation: client-device-ip-copy 800ms ease-out;
|
||||
}
|
||||
|
||||
.client-device-alias-trigger:focus-visible,
|
||||
.client-device-ip:focus-visible {
|
||||
border-radius: 3px;
|
||||
outline: 2px solid var(--client-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@keyframes client-device-ip-copy {
|
||||
35% {
|
||||
color: var(--client-device-copy-color);
|
||||
filter: drop-shadow(0 0 6px color-mix(in oklch, var(--client-device-copy-color) 48%, transparent));
|
||||
}
|
||||
}
|
||||
|
||||
.client-device-edit-wrap,
|
||||
.client-device-pin-wrap {
|
||||
width: 32px;
|
||||
@@ -1074,14 +1053,6 @@ p {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.client-device-name-heading:has(.client-device-name:not(.is-address-only):hover) + .client-device-edit-wrap,
|
||||
.client-device-name-heading:has(.client-device-name:not(.is-address-only):focus-visible) + .client-device-edit-wrap {
|
||||
opacity: 0;
|
||||
filter: blur(5px);
|
||||
pointer-events: none;
|
||||
transform: translateX(-4px);
|
||||
}
|
||||
|
||||
.client-device-pin-wrap {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
@@ -4571,28 +4542,40 @@ p {
|
||||
}
|
||||
|
||||
.client-diagnostics-header {
|
||||
margin-bottom: 26px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.client-diagnostics-run {
|
||||
min-width: 190px;
|
||||
min-height: 42px;
|
||||
.client-diagnostics-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 9px;
|
||||
margin: 0 8px 26px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.client-diagnostics-title-row h2 {
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
|
||||
.client-diagnostics-refresh-wrap {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.client-diagnostics-refresh {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-accent);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: var(--client-muted);
|
||||
cursor: pointer;
|
||||
transition: color 220ms ease, filter 320ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
transition: color 220ms ease, filter 320ms ease;
|
||||
}
|
||||
|
||||
.client-diagnostics-run svg {
|
||||
.client-diagnostics-refresh svg {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
fill: none;
|
||||
@@ -4600,30 +4583,52 @@ p {
|
||||
stroke-width: 1.7;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-diagnostics-run:hover:not(:disabled),
|
||||
.client-diagnostics-run:focus-visible {
|
||||
outline: 0;
|
||||
.client-diagnostics-refresh:hover:not(:disabled),
|
||||
.client-diagnostics-refresh:focus-visible,
|
||||
.client-diagnostics-refresh.is-running {
|
||||
color: var(--client-accent);
|
||||
filter: drop-shadow(0 0 8px color-mix(in oklch, var(--client-accent) 48%, transparent));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.client-diagnostics-run.is-running svg {
|
||||
.client-diagnostics-refresh:focus-visible {
|
||||
outline: 2px solid var(--client-accent);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.client-diagnostics-refresh:hover:not(:disabled) svg,
|
||||
.client-diagnostics-refresh:focus-visible:not(.is-running) svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.client-diagnostics-refresh.is-running svg {
|
||||
animation: client-spin 900ms linear infinite;
|
||||
}
|
||||
|
||||
.client-diagnostics-run:disabled {
|
||||
.client-diagnostics-refresh:disabled {
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.client-diagnostics-empty,
|
||||
.client-diagnostics-error {
|
||||
min-height: 56px;
|
||||
margin: 0 8px;
|
||||
color: var(--client-muted);
|
||||
font-size: 10px;
|
||||
line-height: 1.65;
|
||||
.client-diagnostics-refresh-wrap > .client-tooltip {
|
||||
right: 0;
|
||||
left: auto;
|
||||
text-transform: none;
|
||||
transform: translate(0, 2px);
|
||||
}
|
||||
|
||||
.client-diagnostics-refresh-wrap:hover > .client-tooltip,
|
||||
.client-diagnostics-refresh-wrap:has(> :focus-visible) > .client-tooltip {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
|
||||
.client-diagnostics-feedback {
|
||||
min-height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: 0 8px 10px;
|
||||
}
|
||||
|
||||
.client-diagnostics-error {
|
||||
@@ -4631,6 +4636,8 @@ p {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: oklch(0.68 0.15 28);
|
||||
font-size: 9px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.client-diagnostics-error button {
|
||||
@@ -4642,54 +4649,101 @@ p {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-diagnostics-results {
|
||||
.client-diagnostics-section {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 0 8px;
|
||||
opacity: 1;
|
||||
gap: 5px;
|
||||
margin: 0 8px 24px;
|
||||
}
|
||||
|
||||
.client-diagnostics-section-title {
|
||||
min-height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.client-diagnostics-section-title button,
|
||||
.client-diagnostics-add button,
|
||||
.client-diagnostics-remove {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-accent);
|
||||
font: 700 9px/1.2 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-diagnostics-section-title button:disabled {
|
||||
color: var(--client-muted);
|
||||
cursor: default;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.client-diagnostics-section-title button:focus-visible,
|
||||
.client-diagnostics-add button:focus-visible,
|
||||
.client-diagnostics-error button:focus-visible {
|
||||
outline: 2px solid var(--client-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.client-diagnostics-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
transition: opacity 220ms ease, filter 320ms ease;
|
||||
}
|
||||
|
||||
.client-diagnostics-results[aria-busy='true'] {
|
||||
opacity: 0.58;
|
||||
filter: saturate(0.7);
|
||||
.client-diagnostics-table[aria-busy='true'] {
|
||||
opacity: 0.68;
|
||||
filter: saturate(0.72);
|
||||
}
|
||||
|
||||
.client-diagnostics-grid {
|
||||
min-height: 52px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(96px, 0.75fr) repeat(2, minmax(0, 1fr));
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 7px 10px;
|
||||
border-radius: 12px;
|
||||
background: color-mix(in oklch, var(--client-panel) 48%, transparent);
|
||||
}
|
||||
|
||||
.client-diagnostics-grid-head {
|
||||
min-height: 32px;
|
||||
padding-block: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > strong,
|
||||
.client-diagnostics-grid-head > strong {
|
||||
.client-diagnostics-table th,
|
||||
.client-diagnostics-table td {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
padding: 9px 8px;
|
||||
overflow-wrap: anywhere;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.client-diagnostics-table th:first-child {
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
.client-diagnostics-table thead th {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 7px;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > code,
|
||||
.client-diagnostics-table tbody tr {
|
||||
border-top: 1px solid color-mix(in oklch, var(--client-border) 48%, transparent);
|
||||
}
|
||||
|
||||
.client-diagnostics-table tbody th {
|
||||
color: var(--client-text);
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.client-diagnostics-table code,
|
||||
.client-diagnostics-status {
|
||||
min-width: 0;
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--client-text);
|
||||
font: 600 10px/1.45 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
font: 600 9px/1.4 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-good,
|
||||
@@ -4712,23 +4766,80 @@ p {
|
||||
color: var(--client-muted);
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-running {
|
||||
color: var(--client-accent);
|
||||
animation: client-operation-pulse 900ms ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.client-diagnostics-summary {
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 12px;
|
||||
font-size: 11px;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
line-height: 1.55;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.client-diagnostics-time {
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.client-diagnostics-add {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
|
||||
gap: 8px 14px;
|
||||
padding: 4px 8px 10px;
|
||||
}
|
||||
|
||||
.client-diagnostics-add input {
|
||||
min-width: 0;
|
||||
height: 34px;
|
||||
padding: 0 2px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--client-border);
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
color: var(--client-text);
|
||||
font: 500 9px/1 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
}
|
||||
|
||||
.client-diagnostics-add input:focus {
|
||||
border-color: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-diagnostics-add-action {
|
||||
min-height: 20px;
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.client-diagnostics-add-action span {
|
||||
color: oklch(0.68 0.15 28);
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.client-diagnostics-service-name {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.client-diagnostics-remove {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-left: 3px;
|
||||
color: var(--client-muted);
|
||||
font-size: 14px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.client-diagnostics-remove:hover,
|
||||
.client-diagnostics-remove:focus-visible {
|
||||
outline: 0;
|
||||
color: oklch(0.68 0.15 28);
|
||||
}
|
||||
|
||||
.client-diagnostics-details {
|
||||
margin-top: 12px;
|
||||
margin: 0 8px;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
@@ -4765,21 +4876,22 @@ p {
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.client-diagnostics-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 6px 12px;
|
||||
.client-diagnostics-table th,
|
||||
.client-diagnostics-table td {
|
||||
padding-inline: 5px;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > strong:first-child,
|
||||
.client-diagnostics-grid-head > span:first-child {
|
||||
grid-column: 1 / -1;
|
||||
.client-diagnostics-table th:first-child {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid-head {
|
||||
min-height: 42px;
|
||||
.client-diagnostics-add {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.client-diagnostics-add-action,
|
||||
.client-diagnostics-details > div {
|
||||
grid-column: 1;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
@@ -4835,7 +4947,8 @@ p {
|
||||
.client-device-pin svg,
|
||||
.client-device-policy,
|
||||
.client-device-policy svg,
|
||||
.client-device-name > span,
|
||||
.client-device-alias-trigger,
|
||||
.client-device-ip,
|
||||
.client-device-traffic-value > span,
|
||||
.client-device-traffic-breakdown,
|
||||
.client-device-traffic-breakdown > span,
|
||||
@@ -4861,9 +4974,10 @@ p {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.client-diagnostics-run,
|
||||
.client-diagnostics-run svg,
|
||||
.client-diagnostics-results {
|
||||
.client-diagnostics-refresh,
|
||||
.client-diagnostics-refresh svg,
|
||||
.client-diagnostics-table,
|
||||
.client-diagnostics-status.is-running {
|
||||
transition: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user