summaryrefslogtreecommitdiff
path: root/src/components/proxies/Proxy.module.scss
blob: 61e1022276381c402823b82ea9ff02e4beef7557 (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
@import '~/styles/utils/custom-media';

.proxy {
  padding: 5px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  outline: var(--color-proxy-border) 1px outset;
  border: 2px solid transparent;

  &:focus {
    border-color: var(--color-focus-blue);
  }

  @media (--breakpoint-not-small) {
    border-radius: 10px;
    padding: 10px;
  }

  background-color: var(--color-bg-proxy);

  &.now {
    background-color: var(--color-focus-blue);
    color: #ddd;
  }

  &.error {
    opacity: 0.5;
  }
  &.selectable {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    &:hover {
      border-color: var(--card-hover-border-lightness);
    }
  }
}

.proxyType {
  font-family: var(--font-mono);
  font-size: 0.6em;
  @media (--breakpoint-not-small) {
    font-size: 0.7em;
  }
}
.udpType {
  font-family: var(--font-mono);
  font-size: 0.6em;
  margin-right: 3px;
  @media (--breakpoint-not-small) {
    font-size: 0.7em;
  }
}
.tfoType {
  padding: 2px;
}
.row {
  display: flex;
  align-items: center;
  height: auto;
  font-weight: 400;
  justify-content: space-between;
}

.proxyName {
  width: 100%;
  margin-bottom: 5px;
  font-size: 0.75em;
  @media (--breakpoint-not-small) {
    font-size: 0.85em;
  }
}

.proxySmall {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;

  .now {
    position: absolute;
    width: 9px;
    height: 9px;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background-color: rgb(255, 253, 253);
  }

  &.selectable {
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
    &:hover {
      transform: scale(1.5);
    }
  }
}