-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
86 lines (85 loc) · 1.72 KB
/
style.css
File metadata and controls
86 lines (85 loc) · 1.72 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
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
.container {
width: 200px;
position: relative;
margin-top: 50px;
}
.btn {
width: 100%;
height: 35px;
cursor: pointer;
position: relative;
display: flex;
}
.btn::before {
content: "Drop Down";
display: flex;
align-items: center;
width: 100%;
height: 100%;
background: white;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.062);
border: 2px solid #ff5f6d;
padding-left: 1em;
background: linear-gradient(to right, white 80%, #ff5f6d 20%);
}
.btn::after {
content: "\f062";
position: absolute;
right: 0;
display: flex;
align-items: center;
justify-content: center;
font-family: "Font Awesome 5 Free";
font-weight: 700;
width: 20%;
height: 110%;
color: white;
transform: rotate(180deg);
transition: all 0.4s;
}
.btn:checked::after {
transform: rotate(0deg);
}
.list {
position: absolute;
margin-top: 0.5em;
width: 100%;
height: 175px;
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
display: flex;
flex-direction: column;
transition: all 0.4s;
}
input:checked ~ .list {
clip-path: none;
}
.list a {
height: 25%;
display: flex;
align-items: center;
padding: 0.3em 0 0.3em 1em;
text-decoration: none;
margin: 0.3em 0;
background: white;
color: rgb(36, 36, 36);
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.062);
transition: background 0.4s;
}
.list a:hover {
background: #ff5f6d;
color: white;
}