summaryrefslogtreecommitdiff
path: root/src/components/ConnectionTable.scss
blob: 1559fb5ba80e27b4c5e775e6a09a3a5e36a1d6ca (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
.connections-table {
  .ctrl {
    min-width: 3.5em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    svg {
      height: 16px;
      width: 16px;
      opacity: 0.6;
      transition: all 0.2s ease;
      cursor: pointer;

      &:hover {
        opacity: 1;
        color: #e74c3c;
        transform: scale(1.1);
      }
    }
  }

  .type {
    min-width: 8em;
    text-align: center;

    // 类型标签样式
    &::before {
      content: '';
    }
  }

  .start,
  .downloadSpeedCurr,
  .uploadSpeedCurr,
  .download,
  .upload {
    min-width: 7em;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .downloadSpeedCurr,
  .download {
    color: #27ae60;
  }

  .uploadSpeedCurr,
  .upload {
    color: #3498db;
  }

  // 进程列
  .process {
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  // 域名/Host列
  .host {
    max-width: 20em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  // 规则列
  .rule {
    max-width: 15em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  // 节点链
  .chains {
    // 不截断:完整展示节点链(必要时允许换行)
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    word-break: break-word;
  }
}