summaryrefslogtreecommitdiff
path: root/src/components/proxies/Proxy.module.scss
blob: b25948b6db42562c1276c89869db8846524afd31 (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
.proxy {
  margin: 3px;
  padding: 5px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;

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

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

  max-width: 280px;
  @media (--breakpoint-not-small) {
    min-width: 200px;
    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 {
      transform: translateY(-2px);
    }
  }
}

.proxyType {
  font-family: var(--font-mono);
  font-size: 0.6em;
  margin-right: 3px;
  @media (--breakpoint-not-small) {
    font-size: 0.85em;
  }
}

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

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

.proxySmall {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--color-background);

  &.now {
    border-color: var(--color-text-secondary);
  }

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