summaryrefslogtreecommitdiff
path: root/src/components/proxies/ProxyLatency.module.scss
blob: ac39100a61e6f47ad1b97f3ff8a02894b3537c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@use '~/styles/utils/custom-media' as *;

.proxyLatency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 4px 10px;
  gap: 4px;
  border-radius: 9999px;
  border: 1px solid var(--color-proxy-border);
  /* Use theme-aware latency background with sensible default */
  background: var(--bg-latency, #ffffff);
  color: inherit;
  font-size: 0.75em;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
  user-select: none;
  outline: none;
  @media (--breakpoint-not-small) {
    padding: 5px 12px;
    font-size: 0.8em;
  }
}

.clickable {
  cursor: pointer;
}

.clickable:hover,
.clickable:focus-visible {
  background: var(--color-bg-proxy);
  border-color: var(--card-hover-border-lightness);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.placeholder {
  color: var(--color-text-secondary);
}

.testing {
  animation: proxyLatencyPulse 1s ease-in-out infinite;
}

@keyframes proxyLatencyPulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}