-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
97 lines (85 loc) · 1.78 KB
/
style.css
File metadata and controls
97 lines (85 loc) · 1.78 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
96
97
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: url("https://wallpapercave.com/wp/wp9736911.jpg") no-repeat center center/cover;
}
.dropdown{
position: relative;
width: 300px;
height: 50px;
transition: 0.5s;
}
.dropdown.active{
margin-top: -200px;
}
.dropdown::before{
content: '';
position: absolute;
right: 20px;
top: 15px;
z-index: 10000;
width: 8px;
height: 8px;
border: 2px solid #333;
border-top: 2px solid #fff;
border-right: 2px solid #fff;
transform: rotate(-46deg);
transition: 0.5s;
pointer-events: none;
}
.dropdown.active::before{
top: 22px;
transform: rotate(-225deg);
}
.dropdown input{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: pointer;
background: #fff;
font-size: 20px;
border: none;
outline: none;
box-shadow: 0 5px 20px rgba(0,0,0,0.5);
padding: 12px 20px;
border-radius: 10px;
}
.dropdown .option{
position: absolute;
top: 70px;
width: 100%;
background: rgba(255,255,255,0.4);
backdrop-filter: blur(10px);
box-shadow: 0 30px 30px rgba(0,0,0,0.4);
border-radius: 10px;
overflow: hidden;
height: 0px;
transition: 0.4s;
}
.dropdown.active .option{
height: 238px;
}
.dropdown .option div{
padding: 12px 20px;
cursor: pointer;
}
.dropdown .option div:hover{
background: #62baea;
color: #fff;
}
.dropdown .option div i{
position: relative;
top: 4px;
font-size: 1.2em;
}