aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/CustomSelect/CustomSelect.module.css
blob: 1cd7b6416be375d53e3d7f16772868c046a3ecc6 (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
.select {
  position: relative;
  display: inline-block;
  width: 12rem;
  text-align: center;
  background-color: var(--color-yellow);
  color: var(--color-dark);
  border-radius: 10px;
}

.selected__option {
  cursor: pointer;
  padding: 10px;
  border: none;
  display: flex;
  justify-content: space-between;
}

.options {
  position: absolute;
  top: 140%;
  left: 0;
  width: 100%;
  border: none;
  border-radius: 10px;
  background-color: var(--color-yellow);
  z-index: 2;
}

.option {
  padding: 10px;
  color: var(--color-dark);
  border-bottom: var(--color-dark) 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  &:hover {
    scale: 1.1;
  }
  &:last-child {
    border-bottom: none;
  }
}

@media screen and (max-width: 480px) {
  .select {
    width: 8rem;
    font-size: 14px;
  }
  
  .selected__option {
    padding: 8px;
  }
}