summaryrefslogtreecommitdiff
path: root/src/components/ConnectionTable.module.scss
blob: 729765d366a7f4ca831edbcfa98d6dbb42fbee77 (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
.tr {
  display: grid;
  /* grid-template-columns: repeat(11, minmax(max-content, 1fr)); */
  grid-template-columns: repeat(13, minmax(max-content, auto));
}

.th {
  padding: 3% 0%;
  height: 50px;
  background: var(--color-background);
  position: sticky;
  top: 0;
  font-size: 1em;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: space-between;

  &:hover {
    color: var(--color-text-highlight);
  }
}

.thdu {
  padding: 3% 0%;
  height: 50px;
  background: var(--color-background);
  position: sticky;
  top: 0;
  font-size: 1em;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

  &:hover {
    color: var(--color-text-highlight);
  }
}

.td {
  /* 上边下边 | 左边右边 */
  padding: 4% 2%;
  font-size: 0.9em;
  max-width: 14em;
  min-width: 9em;
  word-wrap: break-word;
  word-break: break-all;
  cursor: default;
  text-align: left;
  vertical-align: middle;
  &:hover {
    color: var(--color-text-highlight);
  }
  font-family: var(--font-normal);
}

.td.odd {
  background: var(--color-row-odd);
}

/* download upload td cells */
.du {
  min-width: 7em;
  text-align: center;
  justify-content: space-around;
}

.sortIconContainer {
  display: inline;
  margin-left: 0.5em;
  width: 1em;
  height: 1em;
}

.rotate180 {
  transform: rotate(180deg);
}