summaryrefslogtreecommitdiff
path: root/src/components/proxies/ProxyGroup.module.scss
blob: 19529cf3d946580d9a5461ee894368d46c0909ef (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.header {
  margin-bottom: 12px;
}

.group {
  padding: 10px;
  background-color: var(--bg-log-info-card);
  border: 1px solid var(--color-separator);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zapWrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  display: inline-flex;
  transform: rotate(0deg);
  transition: transform 0.3s;

  &.isOpen {
    transform: rotate(180deg);
  }

  &:focus {
    outline: var(--color-focus-blue) solid 1px;
  }
}

.groupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;

  .btnGroup {
    display: flex;
    flex-direction: row-reverse;
  }

  @media screen and (min-width: 768px) {
    justify-content: flex-start;
    .btnGroup {
      flex-direction: row;
    }
  }
}

.nowRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px 0;
  min-width: 0;
}

.nowName {
  font-size: 0.8em;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.nowLatency {
  font-size: 0.75em;
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-left: 8px;
}

.availBar {
  margin: 8px 0;
  height: 15px;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.availBarTrack {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--color-separator);
  overflow: hidden;
}

.availBarFill {
  height: 100%;
  border-radius: 3px;
  background: #67c23a;
  transition: width 0.4s ease;
}