-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
97 lines (90 loc) · 2.17 KB
/
style.css
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:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*, *::after, *::before {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", serif;
color: #ccd9e1;
}
html {
font-size: 62.5%;
}
main {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
padding-top: 6rem;
}
.dropdown-container {
display: flex;
flex-direction: column;
align-items: center;
}
.btn {
border: none;
width: fit-content;
border-radius: .6rem;
font-size: 1.6rem;
color: white;
background-color: #141617;
display: flex;
align-items: center;
gap: .2rem;
padding-block: 1.2rem;
padding-left: 2.2rem;
padding-right: 1.8rem;
cursor: pointer;
img {
height: 2.2rem;
width: auto;
object-fit: contain;
}
}
.dropdown-list {
list-style: none;
display: grid;
width: 25rem;
gap: .8rem;
background-color: #1f2123;
border-radius: 1.2rem;
padding: .8rem;
li {
display: flex;
align-items: center;
justify-content: space-between;
border-radius: .8rem;
padding-inline: 1.8rem;
padding-block: 1.4rem;
background-color: transparent;
transition: background-color .3s ease, padding-inline .3s ease;
cursor: pointer;
a {
text-decoration: none;
color: white;
font-size: 1.6rem;
}
img {
height: 2rem;
width: auto;
object-fit: contain;
opacity: 0;
visibility: hidden;
transition: opacity .1s ease;
}
&:hover {
background-color: #2b2d2e;
padding-inline: 2.4rem;
img {
opacity: 1;
visibility: visible;
}
}
}
}
.dropdown {
margin-top: .8rem;
height: 0;
overflow: hidden;
transition: height .3s ease;
}