Skip to content

Commit bf2af2a

Browse files
authored
Create index.css
1 parent cf2a9f3 commit bf2af2a

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

index.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
*{
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body{
8+
display: flex;
9+
justify-content: center;
10+
align-items: center;
11+
min-height: 100vh;
12+
}
13+
14+
.select{
15+
width: 100%;
16+
position: relative;
17+
max-width: 300px;
18+
}
19+
20+
.select select{
21+
display: none !important;
22+
background-color: #ffffff;
23+
}
24+
25+
.select > .label{
26+
padding: 10px 10px;
27+
border: 2px solid rgb(216, 216, 216);
28+
text-transform: capitalize;
29+
cursor: pointer;
30+
display: block;
31+
width: 100%;
32+
border-radius: 5px;
33+
background-color: #f7f7f7;
34+
transition: 0.3s all;
35+
}
36+
37+
.select > .options{
38+
width: 100%;
39+
list-style: none;
40+
padding: 0;
41+
margin: 0;
42+
border: 2px solid rgb(216, 216, 216);
43+
display: none;
44+
position: absolute;
45+
top: calc(100% + 2px);
46+
z-index: 1;
47+
background-color: #f7f7f7;
48+
border-radius: 5px;
49+
overflow: hidden;
50+
max-height: 300px;
51+
overflow: auto;
52+
}
53+
54+
.select.active > .options{
55+
display: block;
56+
}
57+
58+
.select > .options > li{
59+
padding: 7px 10px;
60+
text-transform: capitalize;
61+
cursor: pointer;
62+
transition: 0.3s all;
63+
}
64+
65+
.select > .options > li:hover,
66+
.select > .options > li.current{
67+
background: rgb(219, 219, 219);
68+
}

0 commit comments

Comments
 (0)