-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.css
More file actions
95 lines (84 loc) · 2.04 KB
/
index.css
File metadata and controls
95 lines (84 loc) · 2.04 KB
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
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #fec90c;
}
.select {
width: 100%;
position: relative;
max-width: 300px;
}
.select select {
display: none !important;
background-color: #ffffff;
}
.select > .label,
.select > select {
padding: 10px 33px 10px 10px;
text-transform: capitalize;
cursor: pointer;
display: block;
width: 100%;
border-radius: 5px;
background-color: #f7f7f7;
transition: 0.5s all cubic-bezier(0.77, 0, 0.175, 1);
box-shadow: 0 2px 10px #0000001a;
}
.select > .label::after {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 10px;
height: 20px;
width: 20px;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAbklEQVRIie2PMQqAMAxFXwfP6qJVPIjYzcOKdUkhQ0BaCoLkLS3k818CjuN8ztApYzIDl7xvmalFsAIZuIFozKPMMrC0CAJwKIkuGVX5KdkmLEm3ci1JSlLKU49yLSmXVG1es0EANvnvInKcP/AA784fpjlWwNQAAAAASUVORK5CYII=") center no-repeat;
background-size: contain;
transition: 0.3s all;
}
.select.active > .label::after{
transform: translateY(-50%) rotate(180deg);
}
.select > .options {
width: 100%;
list-style: none;
padding: 0;
margin: 0;
position: absolute;
top: calc(100% + 4px);
z-index: 1;
background-color: #f7f7f7;
border-radius: 10px;
overflow: hidden;
overflow: auto;
max-height: 0;
transition: 0.5s all cubic-bezier(0.77, 0, 0.175, 1);
opacity: 0;
visibility: hidden;
box-shadow: 0 2px 10px #0000001a;
}
.select.active > .options {
max-height: 300px;
opacity: 1;
visibility: visible;
}
.select > .options > li {
padding: 7px 10px;
text-transform: capitalize;
cursor: pointer;
transition: 0.5s all cubic-bezier(0.77, 0, 0.175, 1);
font-size: 13px;
}
.select > .options > li:hover,
.select > .options > li.current {
background: rgb(219, 219, 219);
}