summaryrefslogtreecommitdiff
path: root/src/components/ConnectionCard.module.scss
blob: e0c42c370cc3594adad815da131526c3ab974621 (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.card {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;

  &:active {
    transform: scale(0.98);
  }
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.host {
  color: #40c4aa; // Similar to the image
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
}

.time {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.typeProtocol {
  color: var(--color-text);
  font-size: 0.85rem;
  opacity: 0.8;
}

.totals {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);

  span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  svg {
    opacity: 0.5;
  }
}

.ruleChain {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  overflow: hidden;
  flex: 1;
  margin-right: 8px;

  .rule {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .arrow {
    opacity: 0.5;
    font-size: 0.7rem;
  }

  .chains {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.9;
  }
}

.speedAndAction {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-family: 'Roboto Mono', monospace;

  .speedIcon {
    color: #40c4aa;
    opacity: 0.8;
  }
}

.closeBtn {
  background: var(--color-bg-secondary, rgba(0, 0, 0, 0.05));
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
  }
}